ilkerccom/bitcrackrandomiser

error when running on an amd pc

Opened this issue · 8 comments

Unhandled exception. System.ArgumentNullException: String reference not set to an instance of a String. (Parameter 's')
at System.Text.Encoding.GetBytes(String s)
at System.Text.UTF8Encoding.UTF8EncodingSealed.GetBytes(String s)
at BitcrackRandomiser.Helpers.Helper.SHA256Hash(String data) in C:\Users\ilker\source\repos\bitcrackrandomiser\BitcrackRandomiser\Helpers\Helper.cs:line 168
at BitcrackRandomiser.Helpers.Flagger.Flag(Settings settings, String hex, Int32 gpuIndex, String proofKey, String gpuName) in C:\Users\ilker\source\repos\bitcrackrandomiser\BitcrackRandomiser\Helpers\Flagger.cs:line 25
at BitcrackRandomiser.Randomiser.JobFinished(String targetAddress, String hex, Settings settings, Boolean keyFound, Int32 gpuIndex) in C:\Users\ilker\source\repos\bitcrackrandomiser\BitcrackRandomiser\Randomiser.cs:line 272
at BitcrackRandomiser.Randomiser.OutputReceivedHandler(Object o, DataReceivedEventArgs e, String targetAddress, List`1 proofValues, String hex, Settings settings, Process process, Int32 gpuIndex) in C:\Users\ilker\source\repos\bitcrackrandomiser\BitcrackRandomiser\Randomiser.cs:line 301
at BitcrackRandomiser.Randomiser.<>c__DisplayClass8_0.b__0(Object o, DataReceivedEventArgs s) in C:\Users\ilker\source\repos\bitcrackrandomiser\BitcrackRandomiser\Randomiser.cs:line 209
at System.Diagnostics.Process.ErrorReadNotifyUser(String data)
at System.Diagnostics.AsyncStreamReader.FlushMessageQueue(Boolean rethrowInNewThread)
--- End of stack trace from previous location ---
at System.Diagnostics.AsyncStreamReader.<>c.b__18_0(Object edi)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()

Use Bitcrack v0.30 for AMD gpus. Vanitysearch doesnt support AMD, cuda only.

bitcrack

Got same problem donet is last version, and in settings it is configured to use bitcrack and not vanitysearch

i've got the same problem. latest 6.0 SDK and bitcrack version 0.30. the problem is the same as above. string s.

Running into the same issue when both running vanitysearch and bitcrack.

Using GTX 3080 and latest dotnet 6.0 SDK

[2024-08-25-21:53:42] [Info] Scan completed.                                                                                    Unhandled exception. System.ArgumentNullException: String reference not set to an instance of a String. (Parameter 's')
   at System.Text.Encoding.GetBytes(String s)
   at BitcrackRandomiser.Helpers.Helper.SHA256Hash(String data) in /app/cloned/bitcrackrandomiser/BitcrackRandomiser/Helpers/Helper.cs:line 168
   at BitcrackRandomiser.Helpers.Flagger.Flag(Settings settings, String hex, Int32 gpuIndex, String proofKey, String gpuName) in /app/cloned/bitcrackrandomiser/BitcrackRandomiser/Helpers/Flagger.cs:line 25
   at BitcrackRandomiser.Randomiser.JobFinished(String targetAddress, String hex, Settings settings, Boolean keyFound, Int32 gpuIndex) in /app/cloned/bitcrackrandomiser/BitcrackRandomiser/Randomiser.cs:line 272
   at BitcrackRandomiser.Randomiser.OutputReceivedHandler(Object o, DataReceivedEventArgs e, String targetAddress, List`1 proofValues, String hex, Settings settings, Process process, Int32 gpuIndex) in /app/cloned/bitcrackrandomiser/BitcrackRandomiser/Randomiser.cs:line 301
   at BitcrackRandomiser.Randomiser.<>c__DisplayClass8_0.<Scan>b__0(Object o, DataReceivedEventArgs s) in /app/cloned/bitcrackrandomiser/BitcrackRandomiser/Randomiser.cs:line 209
   at System.Diagnostics.Process.ErrorReadNotifyUser(String data)
   at System.Diagnostics.AsyncStreamReader.FlushMessageQueue(Boolean rethrowInNewThread)
--- End of stack trace from previous location ---
   at System.Diagnostics.AsyncStreamReader.<>c.<FlushMessageQueue>b__18_0(Object edi)
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
   at System.Threading.Thread.StartCallback()
Aborted

bitcrack

Got same problem donet is last version, and in settings it is configured to use bitcrack and not vanitysearch

Using AMD or NVidia?

i've got the same problem. latest 6.0 SDK and bitcrack version 0.30. the problem is the same as above. string s.

The problem seems to be related to AMD and OpenCL. I will do a test on AMD based systems soon. I will give information about the subject.

Running into the same issue when both running vanitysearch and bitcrack.

Using GTX 3080 and latest dotnet 6.0 SDK

[2024-08-25-21:53:42] [Info] Scan completed.                                                                                    Unhandled exception. System.ArgumentNullException: String reference not set to an instance of a String. (Parameter 's')
   at System.Text.Encoding.GetBytes(String s)
   at BitcrackRandomiser.Helpers.Helper.SHA256Hash(String data) in /app/cloned/bitcrackrandomiser/BitcrackRandomiser/Helpers/Helper.cs:line 168
   at BitcrackRandomiser.Helpers.Flagger.Flag(Settings settings, String hex, Int32 gpuIndex, String proofKey, String gpuName) in /app/cloned/bitcrackrandomiser/BitcrackRandomiser/Helpers/Flagger.cs:line 25
   at BitcrackRandomiser.Randomiser.JobFinished(String targetAddress, String hex, Settings settings, Boolean keyFound, Int32 gpuIndex) in /app/cloned/bitcrackrandomiser/BitcrackRandomiser/Randomiser.cs:line 272
   at BitcrackRandomiser.Randomiser.OutputReceivedHandler(Object o, DataReceivedEventArgs e, String targetAddress, List`1 proofValues, String hex, Settings settings, Process process, Int32 gpuIndex) in /app/cloned/bitcrackrandomiser/BitcrackRandomiser/Randomiser.cs:line 301
   at BitcrackRandomiser.Randomiser.<>c__DisplayClass8_0.<Scan>b__0(Object o, DataReceivedEventArgs s) in /app/cloned/bitcrackrandomiser/BitcrackRandomiser/Randomiser.cs:line 209
   at System.Diagnostics.Process.ErrorReadNotifyUser(String data)
   at System.Diagnostics.AsyncStreamReader.FlushMessageQueue(Boolean rethrowInNewThread)
--- End of stack trace from previous location ---
   at System.Diagnostics.AsyncStreamReader.<>c.<FlushMessageQueue>b__18_0(Object edi)
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
   at System.Threading.Thread.StartCallback()
Aborted

This problem usually occurs when it cannot find the "proof of work" addresses. Is the problem resolved or is it still ongoing?