enerc / VulkanXMRMiner

Vulkan SPIR-V miner for Cryptonight
GNU General Public License v3.0
32 stars 17 forks source link

Pool connection only working sporadically #20

Open Froghut opened 4 years ago

Froghut commented 4 years ago

The miner often cannot connect to the pool with the following error message:

Connecting to pool.aeon.semipool.com:22204 ... done!
Mining pools failed to respond
Login fails: {"method":"login","params":{"login":"XXX","pass":"XXX","rigid":"","agent":"vulkan XMR miner"},"id":1}

Error: 10038
setsockopt error
Mining pool connection lost.... will retry in 10 seconds

It does manage to connect sometimes, and once connected works well until it connects to the dev pool and then tries to reconnect to the normal pool again, when the error occurs again most of the time.

BigslimVdub commented 4 years ago

yes still broken on 0.4.1 release

Mining pool connection lost.... will retry in 10 seconds Driver API version 1.1.119 try to reconnect to mining pool Connecting to fastpool.xyz:10067 ... done! Mining pools failed to respond Login fails: {"method":"login","params":{"login":"walletaddress","pass":"Vulkan","rigid":"","agent":"vulkan XMR miner"},"id":1} Error: 10038 setsockopt error

another pool:

Mining pool connection lost.... will retry in 10 seconds Driver API version 1.1.119 try to reconnect to mining pool Connecting to k12.mine.zergpool.com:4459 ... done! Mining pools failed to respond Login fails: {"method":"login","params":{"login":"ltcaddress","pass":"c=LTC,mc=AEON,sd=1000000","rigid":"","agent":"vulkan XMR miner"},"id":1} Error: 10038 setsockopt error

Using Nvidia card with latest drivers 441.66

enerc commented 4 years ago

I missed that point: "The socket() function on Windows returns INVALID_SOCKET (which is (SOCKET)(~0)) on error, while other platforms return (int)-1 instead."

If you can compile, can you change code in network.cpp to // Create socket int soc = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (soc == INVALID_SOCKET && index == 0) { exitOnError("Can't create socket"); return false; }

You might also try to add a usleep(1000) at the end of the function lookForPool() to see if the error might be that the server is taking time to open the connection. (I don't have a Windows platform now to chek it). It has nothing to do with AMD/Nvidia. Pure network issue.

BigslimVdub commented 4 years ago

I could not get to compile on windows or linux last time I tried, failed at 10% or so.

Let me try here if I get a chance.

BigslimVdub commented 4 years ago

Can’t get to build on windows however I am able to connect just fine with only cpu use with all 3 release versions of miner. As soon as I use gpu (nvidia) the miner crashes when it connects.

STSMiner commented 4 years ago

Compile fails..... Results of fail due to not finding some files...

2>httpConsole.cpp
2>D:\CCMiner Programs Source Code\VulkanXMRMiner-master\VulkanXMRMiner-master\VulkanXMRMiner-master\src\httpConsole.cpp(27,10): fatal error C1083: Cannot open include file: 'netinet/in.h': No such file or directory
2>k12CpuMiner.cpp
2>D:\CCMiner Programs Source Code\VulkanXMRMiner-master\VulkanXMRMiner-master\VulkanXMRMiner-master\src\k12CpuMiner.cpp(21,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
2>log.cpp
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\ostream(743,1): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
2>D:\CCMiner Programs Source Code\VulkanXMRMiner-master\VulkanXMRMiner-master\VulkanXMRMiner-master\src\log.cpp(28): message : see reference to function template instantiation 'std::basic_ostream<char,std::char_traits<char>> &std::operator <<<std::char_traits<char>>(std::basic_ostream<char,std::char_traits<char>> &,const char *)' being compiled
2>main.cpp
2>D:\CCMiner Programs Source Code\VulkanXMRMiner-master\VulkanXMRMiner-master\VulkanXMRMiner-master\src\main.cpp(20,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
2>miner.cpp
2>D:\CCMiner Programs Source Code\VulkanXMRMiner-master\VulkanXMRMiner-master\VulkanXMRMiner-master\src\miner.cpp(22,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
2>mvulkan.cpp
2>D:\CCMiner Programs Source Code\VulkanXMRMiner-master\VulkanXMRMiner-master\VulkanXMRMiner-master\src\mvulkan.cpp(508,10): warning C4477: 'printf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'size_t'
2>D:\CCMiner Programs Source Code\VulkanXMRMiner-master\VulkanXMRMiner-master\VulkanXMRMiner-master\src\mvulkan.cpp(508,10): message : consider using '%zu' in the format string
2>D:\CCMiner Programs Source Code\VulkanXMRMiner-master\VulkanXMRMiner-master\VulkanXMRMiner-master\src\mvulkan.cpp(509,10): warning C4477: 'printf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'size_t'
2>D:\CCMiner Programs Source Code\VulkanXMRMiner-master\VulkanXMRMiner-master\VulkanXMRMiner-master\src\mvulkan.cpp(509,10): message : consider using '%zu' in the format string
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\ostream(372,1): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\ostream(365): message : while compiling class template member function 'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned __int64)'
2>D:\CCMiner Programs Source Code\VulkanXMRMiner-master\VulkanXMRMiner-master\VulkanXMRMiner-master\src\mvulkan.cpp(184): message : see reference to function template instantiation 'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned __int64)' being compiled
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\ostream(638): message : see reference to class template instantiation 'std::basic_ostream<char,std::char_traits<char>>' being compiled
2>network.cpp
2>D:\CCMiner Programs Source Code\VulkanXMRMiner-master\VulkanXMRMiner-master\VulkanXMRMiner-master\src\network.cpp(27,10): fatal error C1083: Cannot open include file: 'netinet/in.h': No such file or directory
2>slow_hash.cpp
2>D:\CCMiner Programs Source Code\VulkanXMRMiner-master\VulkanXMRMiner-master\VulkanXMRMiner-master\src\slow_hash.cpp(43,10): fatal error C1083: Cannot open include file: 'sys/mman.h': No such file or directory
2>spirv.cpp
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\ostream(299,1): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\ostream(292): message : while compiling class template member function 'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned int)'
2>D:\CCMiner Programs Source Code\VulkanXMRMiner-master\VulkanXMRMiner-master\VulkanXMRMiner-master\src\spirv.cpp(45): message : see reference to function template instantiation 'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned int)' being compiled
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\ostream(638): message : see reference to class template instantiation 'std::basic_ostream<char,std::char_traits<char>>' being compiled
2>Generating Code...
2>Done building project "miner.vcxproj" -- FAILED.```

```3>CUSTOMBUILD : CMake error : Unable to read from file 'libgcc_s_seh-1.dll': Can't FindFirstFileW
3>libstdc++-6.dll
3>CUSTOMBUILD : CMake error : Unable to read from file 'libstdc++-6.dll': Can't FindFirstFileW
3>libwinpthread-1.dll
3>CUSTOMBUILD : CMake error : Unable to read from file 'libwinpthread-1.dll': Can't FindFirstFileW
3>CUSTOMBUILD : CMake error : Problem creating tar: vulkanXMRMiner.zip
3>Done building project "zip.vcxproj" -- FAILED.
4>------ Rebuild All started: Project: ALL_BUILD, Configuration: RelWithDebInfo x64 ------
4>Building Custom Rule D:/CCMiner Programs Source Code/VulkanXMRMiner-master/VulkanXMRMiner-master/VulkanXMRMiner-master/CMakeLists.txt
========== Rebuild All: 2 succeeded, 2 failed, 0 skipped ==========