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

CUDA error in func 'search' at line 361 : the launch timed out and was terminated. #239

Closed AndreaLanfranchi closed 6 years ago

AndreaLanfranchi commented 7 years ago

Hi all, first of all thank you for this excellent miner.

I am experiencing this issue : most likely due to overclocking problems it happens from time to time to register these events (I'm on several rigs with 6x NVIDIA Gtx 1050 Ti)

CUDA error in func 'search' at line 361 : the launch timed out and was terminated.  ✘ 08:23:31|CUDA4  Error CUDA mining: the launch timed out and was terminated CUDA error in func 'search' at line 361 : the launch timed out and was terminated.  ✘ 08:23:31|CUDA5  Error CUDA mining: the launch timed out and was terminated CUDA error in func 'search' at line 361 : the launch timed out and was terminated.  ✘ 08:23:31|CUDA2  Error CUDA mining: the launch timed out and was terminated CUDA error in func 'search' at line 361 : the launch timed out and was terminated.  ✘ 08:23:31|CUDA1  Error CUDA mining: the launch timed out and was terminated CUDA error in func 'search' at line 361 : the launch timed out and was terminated.  ✘ 08:23:31|CUDA3  Error CUDA mining: the launch timed out and was terminated CUDA error in func 'search' at line 361 : the launch timed out and was terminated.  ✘ 08:23:31|CUDA0  Error CUDA mining: the launch timed out and was terminated

All 6 cards get affected by the same error and from there on the program reports hashing at 0MH/s until it gets a new job (I'm on stratum @ nanopool) which is the moment when the process gets zombied and the rig becomes unresponsive

 m 08:23:32|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:33|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:34|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:35|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:36|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:37|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:38|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:39|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:40|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:41|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:42|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:43|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:44|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:45|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:46|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:47|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:48|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:49|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:50|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:51|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:52|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:53|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:54|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:55|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:56|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:57|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:58|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:23:59|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:00|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:01|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:02|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:03|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:04|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:05|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:06|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:07|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:08|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:09|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:10|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:11|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:12|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:13|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:14|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:15|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:16|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:17|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:18|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:19|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:20|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:21|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:22|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:23|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:24|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:25|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:26|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:27|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:28|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:29|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  m 08:24:30|ethminer Mining on #b0affd83… : 0.00MH/s [A206+2:R19+0:F0]  ℹ 08:24:31|stratum  Received new job #b0affd83  ℹ 08:24:31|stratum  Received new job #25f2f0e9

For the sake of precision I'm on Ubuntu 16.04.2 LTS with NVIDIA drivers version 381.22 and CUDA 8 To be precise it's this package https://github.com/Cyclenerd/ethereum_nvidia_miner

Any idea about how to get around this ? (I've tried to reduce overclocking values but it keeps happening).

Thank you.

dro162 commented 7 years ago

Same problem. Crashes about 20 minutes after starting. Sometimes doesn't for a few hours. 4x 8 GB Nvidia GTX 1070 Nvidia driver 375.66 - No overclocking Ubuntu 17.04

Usually just use ethminer --cuda Same problem with ethminer --farm-recheck 2000 -cuda -farm http://127.0.0.1:8545/rig1 --cuda-parallel-hash 4

JDrepository commented 7 years ago

With "--farm-recheck 200" This does not happen to me

smurfy commented 7 years ago

Having the same problem, while ethminer is faster than claymore, i always switch back to claymore after a while because its more stable.

It crashes randomly.

7x GTX 1070 . Driver Version: 381.22 ArchLinux

A quick fix could be just terminate the application if an error occurs. (maybe with different return codes) With this its easy to have an endless loop start script for linux and windows. (the miner starts without problems if i terminate it with crtl+c and restart it)

JDrepository commented 7 years ago

Already tried using: https://github.com/derubm/Ethminer_Watchdog

hcbraun commented 7 years ago

Does the Nvidia driver log anything? You can check with: journalctl _TRANSPORT=kernel | grep -i nvrm Table with XID error codes: http://docs.nvidia.com/deploy/xid-errors/

smurfy commented 7 years ago

@hcbraun Nope nothing at the time of the crash @Git1Hub2 I think at the moment, everyone who is having this error is on linux. The watchdog linked is windows only?

derubm commented 7 years ago

@smurfy it is windows only, but you can easily use the code to build something working on linux.

Jacxz commented 6 years ago

I don't think it is only on Linux, I just got this on Windows 10 with 4 x GTX 1060.

CUDA error in func 'ethash_cuda_miner::search' at line 348 : the launch timed out and was terminated.
CUDA error in func 'ethash_cuda_miner::search' at line 348 : the launch timed out and was terminated.
CUDA error in func 'ethash_cuda_miner::search' at line 348 : the launch timed out and was terminated.
  X  02:22:34|CUDA2     Error CUDA mining: the launch timed out and was terminated
  X  02:22:34|CUDA3     Error CUDA mining: the launch timed out and was terminated
  X  02:22:34|CUDA0     Error CUDA mining: the launch timed out and was terminated
CUDA error in func 'ethash_cuda_miner::search' at line 348 : the launch timed out and was terminated.
  X  02:22:34|CUDA1     Error CUDA mining: the launch timed out and was terminated
DeadManWalkingTO commented 6 years ago

After #757 (added --exit parameter to exit whenever an error occurred) you can use a watchdog.

Try ETHminerWatchDogDmW Windows7/8/10 [32/64] & Linux (Any Dist/Any Ver/Any Arch) (#735).

Check and feedback please. Thank you!

Goranbol commented 6 years ago

Wtf ?? Anybody has a solution ,maybe ? Cuda error in func 'quark_blake512_cpu_setBlock_80' at line 547 : the launch timed out and was terminated.

AndreaLanfranchi commented 6 years ago

It's always related to excessive overclocking.

SolWax commented 5 years ago

Excessive overclocking is not it. Read. You posted this error related to 3 others and one guy said his gpu was "out the box".

ddobreff commented 5 years ago

quark_blake512_cpu_setBlock_80 This is not ethminer!