ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.96k stars 2.28k forks source link

Ethminer exits with error code 1073741819 #1371

Closed fenlasonb closed 6 years ago

fenlasonb commented 6 years ago

ethminer.exe -U -P stratum1+ssl://0x8d36ea933dd02aeffb22318125a1d9583aefbd01.CrypteyMiney@us1.ethermine.org:5555 -v 9 pause

outputs to this:

C:\Users\CrypteyMiney\Desktop\Miners\ETH\Nvidia>ethminer.exe -U -P stratum1+ssl://0x8d36ea933dd02aeffb22318125a1d9583aefbd01.CrypteyMiney@us1.ethermine.org:5555 -v 9 m 11:27:10|main | ethminer version 0.14.0 m 11:27:10|main | Build: windows / release +git. 24c65cf cu 11:27:10|main | Using grid size 8192 , block size 128

C:\Users\CrypteyMiney\Desktop\Miners\ETH\Nvidia>pause Press any key to continue . . .

Anythoughts?

C:\Users\CrypteyMiney\Desktop\Miners\ETH\Nvidia\bin>ethminer.exe --list-devices -U

Listing CUDA devices. FORMAT: [deviceID] deviceName [0] GeForce GTX 1070 Ti Compute version: 6.1 cudaDeviceProp::totalGlobalMem: 8589934592 Pci: 0000:05:00 [1] GeForce GTX 1070 Ti Compute version: 6.1 cudaDeviceProp::totalGlobalMem: 8589934592 Pci: 0000:06:00

C:\Users\CrypteyMiney\Desktop\Miners\ETH\Nvidia\bin>

AndreaLanfranchi commented 6 years ago

You're not on version 15 but on version 14

m 11:27:10|main | ethminer version 0.14.0

fenlasonb commented 6 years ago

So weird thought i updated. Updating now to verify if working.

fenlasonb commented 6 years ago

C:\Users\CrypteyMiney\Desktop\bin>ethminer.exe -U -P stratum1+ssl://0x8d36ea933dd02aeffb22318125a1d9583aefbd01.CrypteyMiney@us1.ethermine.org:5555 -v 9 m 11:32:32 main ethminer 0.15.0 m 11:32:32 main Build: windows/release cu 11:32:32 main Using grid size: 8192, block size: 128

C:\Users\CrypteyMiney\Desktop\bin>pause Press any key to continue . . .

fenlasonb commented 6 years ago

@AndreaLanfranchi

C:\Users\CrypteyMiney\Desktop\bin>ethminer.exe -U -P stratum1+ssl://0x8d36ea933dd02aeffb22318125a1d9583aefbd01.CrypteyMiney@us1.ethermine.org:5555 -v 9 m 11:35:05 main ethminer 0.16.0.dev1 m 11:35:05 main Build: windows/release cu 11:35:05 main Using grid size: 8,192, block size: 128

C:\Users\CrypteyMiney\Desktop\bin>pause Press any key to continue . . .

Also testing on 16... i must be doing something wrong

AndreaLanfranchi commented 6 years ago

Please modify your .bat file like this

ethminer.exe -U -P stratum1+ssl://0x8d36ea933dd02aeffb22318125a1d9583aefbd01.CrypteyMiney@us1.ethermine.org:5555 -v 9
echo %ERRORLEVEL%
pause

and report back the error code which is printed out

fenlasonb commented 6 years ago

@AndreaLanfranchi

C:\Users\CrypteyMiney\Desktop\bin>ethminer.exe -U -P stratum1+ssl://0x8d36ea933dd02aeffb22318125a1d9583aefbd01.CrypteyMiney@us1.ethermine.org:5555 -v 9 m 11:39:13 main ethminer 0.16.0.dev1 m 11:39:13 main Build: windows/release cu 11:39:13 main Using grid size: 8,192, block size: 128

C:\Users\CrypteyMiney\Desktop\bin>echo -1073741819 -1073741819

C:\Users\CrypteyMiney\Desktop\bin>pause Press any key to continue . . .

AndreaLanfranchi commented 6 years ago

It's a windows error. Not much we can do as we're not sure which is the cause.

Please read from here https://github.com/ethereum-mining/ethminer/issues/1165#issuecomment-394129880

AndreaLanfranchi commented 6 years ago

Probably you have applied some windows updates

fenlasonb commented 6 years ago

Hello Sir.

I have confirmed thje last windows update was 6/8/18. Very strange as this was working well past.

fenlasonb commented 6 years ago

C:\Windows\servicing\Packages reports no updates past 6/5/18

AndreaLanfranchi commented 6 years ago

Have you installed or update manually some app ? Have you changed your hardware config ? Something has changed lately ?

fenlasonb commented 6 years ago

The strange part is nothing has changed.

Not sure. i am currently going to redeploy windows 10 and not update a single thing.

Will keep u informed.

fenlasonb commented 6 years ago

Update. Re installed windows disabled updates via services.msc gpo policy and via gui. Miner was working.

Rebooted the PC now miner has stopped working with same exit code as mentioned.

fenlasonb commented 6 years ago

also tried workaround noted in #1165 (comment)

C:\Users\CrypteyMiney\Desktop\bin>ethminer.exe -U -P stratum1+ssl://0x8d36ea933dd02aeffb22318125a1d9583aefbd01.CrypteyMiney@us1.ethermine.org:5555 -v 9 m 17:33:09 main ethminer 0.16.0.dev1 m 17:33:09 main Build: windows/release cu 17:33:09 main Using grid size: 8,192, block size: 128

C:\Users\CrypteyMiney\Desktop\bin>echo %ERRORLEVEL% -1073741819

also tested with bat file

C:\Users\CrypteyMiney\Desktop\bin>ETHminerNvidia_only.bat

C:\Users\CrypteyMiney\Desktop\bin>ethminer.exe -U -P stratum1+ssl://0x8d36ea933dd02aeffb22318125a1d9583aefbd01.CrypteyMiney@us1.ethermine.org:5555 -v 9 m 17:31:21 main ethminer 0.16.0.dev1 m 17:31:21 main Build: windows/release cu 17:31:21 main Using grid size: 8,192, block size: 128

C:\Users\CrypteyMiney\Desktop\bin>echo -1073741819 -1073741819

ChronoXNL commented 6 years ago

As far as i've been able to tell, manually setting your VM size (large enough to handle the mem footprint of your cards), should be sufficient. It even works when you haven't restarted your miner.

I think the latest patch from Win 10 adjusted the VM mechanism, returning an error when VM size is not enough instead of just automagically increasing the VM size. I cannot confirm if this is the case however.

fenlasonb commented 6 years ago

I just adjusted to virtual Memory to be 26gb No noted changed on exit code. 4 1070tis

webprophet commented 6 years ago

26gb VM should be good enough. I have a rig w 8 -1070ti with 30 gig and it works fine. The only other things that come to mind on the -1073741819 error are UAC, NVidia drivers, or Visual Studio redistributables. For UAC you could try switching between admin and a newly created admin account to rule out UAC (Antivirus tosses this error when they corrupt UAC). For Nvidia, reinstall and make sure you dont have any "other sound controllers" in device manager instead of "NVIDIA High Definition Audio" (video games toss the same error). Lastly, you could try reinstalling C++ Redistributable (cmd.exe can generically toss this error with corrupted C++). Good luck. ps~ I hope you have run checkdisk and all that. :)

fenlasonb commented 6 years ago

Welp, i have already tried with a new admin account to rule out a UAC issue. I am re installing windows 1 more time via usb key.

Will report back :(

lesjokolat commented 6 years ago

@AndreaLanfranchi I am also getting this error. windows 10, 16 gig ram, 20 gig vm, latest windows, ad 18.7.1 amd driver.

C:\Users\peter\Downloads\ethminer-0.16.0.dev2-windows-amd64\bin>ethminer.exe -G -P http://etc.ethertrench.com:8889/0x78e371c6bd0a74c3255152d0418aa457cea5b784/logan1 --farm-recheck 500 --cl-local-work 256 --cl-global-work 12564 -v 9 m 18:08:50 main ethminer 0.16.0.dev2 m 18:08:50 main Build: windows/release i 18:08:50 main Found suitable OpenCL device [Fiji] with 4,294,967,296 bytes of GPU memory i 18:08:50 main Found suitable OpenCL device [Fiji] with 4,294,967,296 bytes of GPU memory i 18:08:50 main Found suitable OpenCL device [Fiji] with 4,294,967,296 bytes of GPU memory i 18:08:50 main Found suitable OpenCL device [gfx900] with 8,573,157,376 bytes of GPU memory i 18:08:50 main Configured pool etc.ethertrench.com:8889 i 18:08:50 main Selected pool etc.ethertrench.com:8889 i 18:08:50 main Connected to etc.ethertrench.com i 18:08:50 main Spinning up miners... cl 18:08:50 cl-0 No work. Pause for 3 s. cl 18:08:50 cl-1 No work. Pause for 3 s. cl 18:08:50 cl-2 No work. Pause for 3 s. cl 18:08:50 cl-3 No work. Pause for 3 s. i 18:08:51 getwork Job: #c7eea5eb... etc.ethertrench.com i 18:08:51 getwork Pool difficulty: 2.00K megahash i 18:08:51 getwork New epoch 209 cl 18:08:53 cl-2 Platform: AMD Accelerated Parallel Processing cl 18:08:53 cl-0 Platform: AMD Accelerated Parallel Processing cl 18:08:53 cl-1 Platform: AMD Accelerated Parallel Processing cl 18:08:53 cl-2 Device: Fiji / OpenCL 2.0 AMD-APP (2639.5) cl 18:08:53 cl-0 Device: Fiji / OpenCL 2.0 AMD-APP (2639.5) cl 18:08:53 cl-1 Device: Fiji / OpenCL 2.0 AMD-APP (2639.5) cl 18:08:53 cl-3 Platform: AMD Accelerated Parallel Processing cl 18:08:53 cl-3 Device: gfx900 / OpenCL 2.0 AMD-APP (2639.5) i 18:08:54 cl-3 Adjusting CL work multiplier for 64 CUs.Adjusted work multiplier: 22,336 i 18:08:54 cl-2 Adjusting CL work multiplier for 64 CUs.Adjusted work multiplier: 22,336 i 18:08:54 cl-1 Adjusting CL work multiplier for 64 CUs.Adjusted work multiplier: 22,336 i 18:08:54 cl-0 Adjusting CL work multiplier for 64 CUs.Adjusted work multiplier: 22,336 cl 18:08:55 cl-3 OpenCL kernel cl 18:08:55 cl-2 OpenCL kernel cl 18:08:55 cl-1 OpenCL kernel cl 18:08:55 cl-0 OpenCL kernel m 18:08:55 main Speed 0.00 Mh/s gpu0 0.00 gpu1 0.00 gpu2 0.00 gpu3 0.00 [A0] Time: 00:00 cl 18:08:56 cl-3 Loading binary kernel C:\Users\Peter\Downloads\ethminer-0.16.0.dev2-windows-amd64\bin/kernels/ethash_gfx900_lws256.bin X 18:08:56 cl-3 Failed to load binary kernel: C:\Users\Peter\Downloads\ethminer-0.16.0.dev2-windows-amd64\bin/kernels/ethash_gfx900_lws256.bin X 18:08:56 cl-3 Falling back to OpenCL kernel... cl 18:08:56 cl-3 Creating light cache buffer, size: 44,170,432 cl 18:08:56 cl-3 Creating DAG buffer, size: 2,826,959,488 cl 18:08:56 cl-3 Loading kernels cl 18:08:56 cl-3 Writing light cache buffer cl 18:08:56 cl-3 Creating buffer for header. cl 18:08:56 cl-3 Creating mining buffer cl 18:08:56 cl-0 Loading binary kernel C:\Users\Peter\Downloads\ethminer-0.16.0.dev2-windows-amd64\bin/kernels/ethash_fiji_lws256.bin X 18:08:56 cl-0 Failed to load binary kernel: C:\Users\Peter\Downloads\ethminer-0.16.0.dev2-windows-amd64\bin/kernels/ethash_fiji_lws256.bin X 18:08:56 cl-0 Falling back to OpenCL kernel... cl 18:08:56 cl-0 Creating light cache buffer, size: 44,170,432 cl 18:08:56 cl-0 Creating DAG buffer, size: 2,826,959,488 cl 18:08:56 cl-0 Loading kernels cl 18:08:56 cl-0 Writing light cache buffer cl 18:08:56 cl-0 Creating buffer for header. cl 18:08:56 cl-0 Creating mining buffer cl 18:08:57 cl-1 Loading binary kernel C:\Users\Peter\Downloads\ethminer-0.16.0.dev2-windows-amd64\bin/kernels/ethash_fiji_lws256.bin X 18:08:57 cl-1 Failed to load binary kernel: C:\Users\Peter\Downloads\ethminer-0.16.0.dev2-windows-amd64\bin/kernels/ethash_fiji_lws256.bin X 18:08:57 cl-1 Falling back to OpenCL kernel... cl 18:08:57 cl-1 Creating light cache buffer, size: 44,170,432 cl 18:08:57 cl-1 Creating DAG buffer, size: 2,826,959,488 cl 18:08:57 cl-1 Loading kernels cl 18:08:57 cl-1 Writing light cache buffer cl 18:08:57 cl-1 Creating buffer for header. cl 18:08:57 cl-1 Creating mining buffer cl 18:08:57 cl-2 Loading binary kernel C:\Users\Peter\Downloads\ethminer-0.16.0.dev2-windows-amd64\bin/kernels/ethash_fiji_lws256.bin X 18:08:57 cl-2 Failed to load binary kernel: C:\Users\Peter\Downloads\ethminer-0.16.0.dev2-windows-amd64\bin/kernels/ethash_fiji_lws256.bin X 18:08:57 cl-2 Falling back to OpenCL kernel... cl 18:08:57 cl-2 Creating light cache buffer, size: 44,170,432 cl 18:08:57 cl-2 Creating DAG buffer, size: 2,826,959,488 cl 18:08:57 cl-2 Loading kernels cl 18:08:57 cl-2 Writing light cache buffer cl 18:08:58 cl-2 Creating buffer for header. cl 18:08:58 cl-2 Creating mining buffer i 18:08:58 cl-3 2.63281 GB of DAG data generated in 1,910 ms. cl 18:08:58 cl-3 Switch time: 7,187,793 us. i 18:08:59 cl-0 2.63281 GB of DAG data generated in 2,764 ms. cl 18:08:59 cl-0 Switch time: 8,566,104 us. i 18:08:59 getwork Job: #09596348... etc.ethertrench.com cl 18:09:00 cl-0 Switch time: 213,312 us. cl 18:09:00 cl-3 Switch time: 1,082 us. i 18:09:00 cl-1 2.63281 GB of DAG data generated in 2,773 ms. cl 18:09:00 cl-1 Switch time: 160,101 us. cl 18:09:00 cl-1 Switch time: 328,897 us. i 18:09:00 cl-2 2.63281 GB of DAG data generated in 2,762 ms. cl 18:09:00 cl-2 Switch time: 676,132 us. m 18:09:00 main Speed 8.95 Mh/s gpu0 0.00 gpu1 0.00 gpu2 0.00 gpu3 8.95 [A0] Time: 00:00 cl 18:09:00 cl-2 Switch time: 845,545 us. m 18:09:05 main Speed 55.24 Mh/s gpu0 12.27 gpu1 11.46 gpu2 9.82 gpu3 21.69 [A0] Time: 00:00 i 18:09:06 cl-1 Solution: 0x6ab9209e032bfe9b i 18:09:06 cl-1 **Accepted 130 ms. etc.ethertrench.com m 18:09:10 main Speed 80.09 Mh/s gpu0 18.02 gpu1 17.30 gpu2 16.52 gpu3 28.24 [A1] Time: 00:00 m 18:09:15 main Speed 94.42 Mh/s gpu0 21.37 gpu1 21.04 gpu2 20.18 gpu3 31.82 [A1] Time: 00:00 m 18:09:20 main Speed 103.98 Mh/s gpu0 23.56 gpu1 23.29 gpu2 22.78 gpu3 34.36 [A1] Time: 00:00 m 18:09:25 main Speed 128.38 Mh/s gpu0 29.15 gpu1 29.07 gpu2 28.37 gpu3 41.79 [A1] Time: 00:00 m 18:09:30 main Speed 146.74 Mh/s gpu0 33.97 gpu1 33.89 gpu2 33.40 gpu3 45.48 [A1] Time: 00:00 m 18:09:35 main Speed 148.69 Mh/s gpu0 33.94 gpu1 34.43 gpu2 34.50 gpu3 45.82 [A1] Time: 00:00 i 18:09:39 cl-2 Solution: 0x6ab9219e45a3e94b X 18:09:39 getwork Failed getting work! i 18:09:39 main Disconnected from etc.ethertrench.com

C:\Users\Peter\Downloads\ethminer-0.16.0.dev2-windows-amd64\bin>echo -1073740940 -1073740940

C:\Users\Peter\Downloads\ethminer-0.16.0.dev2-windows-amd64\bin>pause Press any key to continue . . .

could path output of binary kernels be issue, some parts use forward slash

lesjokolat commented 6 years ago

Just wanted to update, I changed to stratum, and used last couple of Dev 16 releases the error went away. On windows 10, AMD drivers 18.6.1, 18.7.1, 18.8.1. I also think all the recent stratum updates made are amazing just wanted to thank the devs for giving me a product I can switch from CM and Phoenix. I have never mined faster and more stable than here!

lesjokolat commented 6 years ago

@jean-m-cyr

Another one to close I think. I has same message but all stratum fixes and tweaks to my start up removed this as an issue.

jean-m-cyr commented 6 years ago

Closing