ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ethminer crashing with C++ std::vector error

Voklen opened this issue · comments

Describe the bug
When I launch ethminer it starts to set everything up and then crashes with this error message:

ethminer 0.19.0-17+commit.ce52c740.dirty
Build: linux/release/gnu

 i 21:18:19 ethminer Configured pool eth-eu2.nanopool.org:9999
 i 21:18:19 ethminer Selected pool eth-eu2.nanopool.org:9999
 i 21:18:19 ethminer Stratum mode : Eth-Proxy compatible
 i 21:18:19 ethminer Established connection to eth-eu2.nanopool.org [213.32.74.157:9999]
 i 21:18:19 ethminer Spinning up miners...
cl 21:18:19 cl-0     Using Device : 2b:00.0 gfx1012:xnack- OpenCL 2.0  Memory : 7.98 GB (8573157376 B)
 i 21:18:19 cl-0     Adjusting CL work multiplier for 11 CUs. Adjusted work multiplier: 20,025
 i 21:18:19 ethminer Epoch : 461 Difficulty : 10.00 Gh
 i 21:18:19 ethminer Job: 9a7c21a8… eth-eu2.nanopool.org [213.32.74.157:9999]
 i 21:18:21 ethminer Job: 9a7c21a8… eth-eu2.nanopool.org [213.32.74.157:9999]
cl 21:18:21 cl-0     Generating split DAG + Light (total): 4.60 GB
cl 21:18:21 cl-0     OpenCL kernel
cl 21:18:21 cl-0     Loading binary kernel /usr/local/bin/kernels/ethash_gfx1012:xnack-_lws128_exit.bin
 X 21:18:21 cl-0     Failed to load binary kernel: /usr/local/bin/kernels/ethash_gfx1012:xnack-_lws128_exit.bin
 X 21:18:21 cl-0     Falling back to OpenCL kernel...
cl 21:18:21 cl-0     Creating DAG buffer, size: 4.60 GB, free: 3.38 GB
cl 21:18:21 cl-0     Creating light cache buffer, size: 73.62 MB
cl 21:18:21 cl-0     Loading kernels
/usr/include/c++/11.1.0/bits/stl_vector.h:1045: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = hsa_signal_s; _Alloc = std::allocator<hsa_signal_s>; std::vector<_Tp, _Alloc>::reference = hsa_signal_s&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Aborted (core dumped)

To Reproduce
Steps to reproduce the behavior:

  1. Compile ethminer on a clean install of arch
  2. Run ethminer
  3. See error

Expected behavior
The miner should run without crashing

Environment (please complete the following information):

  • Operating System: Arch Linux
  • Kernel: 5.15.10-arch1-1
  • Hardware: AMD Ryzen 3 3100, AMD RX 5500xt 8GB, 16 GB RAM
  • Ethminer Version 0.19.0-17+commit.ce52c740.dirty
  • Ethminer options used: ethminer -P stratum1+tcp://.@eth-eu2.nanopool.org:9999

Additional context
This happened on my Arch installation before and even after doing a complete wipe and reinstall of Arch, this error still persists

It was a problem on my end. For anybody else with this problem, install the opencl-amd AUR package instead of rocm-opencl-runtime.