Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Termination because of unhandled exception #1065

Open
alllinux opened this issue Sep 3, 2018 · 1 comment
Open

Termination because of unhandled exception #1065

alllinux opened this issue Sep 3, 2018 · 1 comment

Comments

@alllinux
Copy link

alllinux commented Sep 3, 2018

Hi, first off all great work for that peace of coinserver.

I am running on debian strech latest version and have the following mono version running:

Mono JIT compiler version 5.14.0.177 (tarball Mon Aug 6 09:13:21 UTC 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(3.6.0svn-mono-/)
GC: sgen (concurrent by default)
When I get an UpdateTip: new best=00000000000000000012c897454f11c4a627bb48eec92e9ab156a3b823438c06 height=539818 version=0x20000000 log2_work=89.593139 tx=339094338 date='2018-09-03 18:33:48' progress=0.999998 cache=23.8MiB(178318txo) warning='7 of last 100 blocks have unexpected version'

The debug.log of the CoiniumServer shows this error message:

09/03/2018 20:43:28 +02:00 [Fatal] [Program] [global] Terminating because of unhandled exception!
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.Dictionary2+Enumerator[TKey,TValue].MoveNext () [0x00013] in <2943701620b54f86b436d3ffad010412>:0 at System.Linq.Enumerable+SelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00029] in <7aa7d6192efc4d31a9896d7a49ef2104>:0
at System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00059] in <7aa7d6192efc4d31a9896d7a49ef2104>:0 at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Boolean& found) [0x00045] in <7aa7d6192efc4d31a9896d7a49ef2104>:0
at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00000] in <7aa7d6192efc4d31a9896d7a49ef2104>:0
at CoiniumServ.Mining.MinerManager.Remove (CoiniumServ.Server.Mining.Stratum.Sockets.IConnection connection) [0x0006c] in <8bb94b2d076d4444a6813e48dd9d8164>:0
at CoiniumServ.Server.Mining.Stratum.StratumServer.OnClientDisconnect (System.Object sender, CoiniumServ.Server.Mining.Stratum.Sockets.ConnectionEventArgs e) [0x00027] in <8bb94b2d076d4444a6813e48dd9d8164>:0
at CoiniumServ.Server.Mining.Stratum.Sockets.SocketServer.OnClientDisconnect (CoiniumServ.Server.Mining.Stratum.Sockets.ConnectionEventArgs e) [0x0000a] in <8bb94b2d076d4444a6813e48dd9d8164>:0
at CoiniumServ.Server.Mining.Stratum.Sockets.SocketServer.RemoveConnection (CoiniumServ.Server.Mining.Stratum.Sockets.IConnection connection) [0x0008c] in <8bb94b2d076d4444a6813e48dd9d8164>:0
at CoiniumServ.Server.Mining.Stratum.Sockets.SocketServer.ReceiveCallback (System.IAsyncResult result) [0x00054] in <8bb94b2d076d4444a6813e48dd9d8164>:0
at System.Net.Sockets.SocketAsyncResult+<>c.b__27_0 (System.Object state) [0x0000b] in :0
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () <0x7f0580efbc80 + 0x0003a> in <2943701620b54f86b436d3ffad010412>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <2943701620b54f86b436d3ffad010412>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () <0x7f0580efbb00 + 0x00005> in <2943701620b54f86b436d3ffad010412>:0

After a little time and a lot of hashing, this happend:

09/03/2018 20:49:08 +02:00 [Error] [StratumServer] [Bitcoin] Send
System.Net.Sockets.SocketException (0x80004005): The socket has been shut down
at System.Net.Sockets.Socket.Send (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags) [0x00016] in :0
at CoiniumServ.Server.Mining.Stratum.Sockets.SocketServer.Send (CoiniumServ.Server.Mining.Stratum.Sockets.Connection connection, System.Byte[] buffer, System.Int32 start, System.Int32 count, System.Net.Sockets.SocketFlags flags) [0x00034] in <8bb94b2d076d4444a6813e48dd9d8164>:0

Do you have a clue?

Thanks,
Stephan

@Mentors4EDU
Copy link

@bonesoul Seen alot of nancy socket errors lately preventing miners from joining

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants