[Solved] :) UNHANDLED EXCEPTION

Bug reports and questions about running Virtual Radar Server on Linux
Post Reply
Nevermind
Posts: 28
Joined: Thu Sep 11, 2014 12:36 am

[Solved] :) UNHANDLED EXCEPTION

Post by Nevermind » Sat Jan 07, 2017 8:43 am

Hello forum,

please excuse the title, but I have no idea how I should name it.
We recently received this error and VRS stops working. What happens here and what can be done to fix it?
mono --version
Mono JIT compiler version 4.6.2 (Stable 4.6.2.16/ac9e222 Fri Jan 6 12:37:37 CET 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. http://www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
Jan 6 20:11:57 mono[6535]: [ERROR] FATAL UNHANDLED EXCEPTION: System.ExecutionEngineException: ExecutionContext_ExceptionInAsyncLocalNotification ---> System.Threading.ThreadAbortException
Jan 6 20:11:57 mono[6535]: at (wrapper managed-to-native) System.Object:InternalGetHashCode (object)
Jan 6 20:11:57 mono[6535]: at System.Object.GetHashCode () [0x00000] in <6b836ba8e75d4463a67bb3c5f340849c>:0
Jan 6 20:11:57 mono[6535]: at System.Collections.Generic.ObjectEqualityComparer`1[T].GetHashCode (T obj) [0x0000d] in <6b836ba8e75d4463a67bb3c5f340849c>:0
Jan 6 20:11:57 mono[6535]: at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x0001c] in <6b836ba8e75d4463a67bb3c5f340849c>:0
Jan 6 20:11:57 mono[6535]: at System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <6b836ba8e75d4463a67bb3c5f340849c>:0
Jan 6 20:11:57 mono[6535]: at System.Threading.ExecutionContext.OnAsyncLocalContextChanged (System.Threading.ExecutionContext previous, System.Threading.ExecutionContext current) [0x00119] in <6b836ba8e75d4463a67bb3c5f340849c>:0
Jan 6 20:11:57 mono[6535]: --- End of inner exception stack trace ---
Jan 6 20:11:57 mono[6535]: at System.Environment.FailFast (System.String message, System.Exception exception) [0x00007] in <6b836ba8e75d4463a67bb3c5f340849c>:0
Jan 6 20:11:57 mono[6535]: at System.Threading.ExecutionContext.OnAsyncLocalContextChanged (System.Threading.ExecutionContext previous, System.Threading.ExecutionContext current) [0x0016e] in <6b836ba8e75d4463a67bb3c5f340849c>:0
Jan 6 20:11:57 mono[6535]: at System.Threading.ExecutionContext.SetExecutionContext (System.Threading.ExecutionContext executionContext, System.Boolean preserveSyncCtx) [0x00066] in <6b836ba8e75d4463a67bb3c5f340849c>:0
Jan 6 20:11:57 mono[6535]: WARNING: The runtime version supported by this application is unavailable.
Jan 6 20:11:57 mono[6535]: Using default runtime: v4.0.30319

pavelkonir
Posts: 11
Joined: Mon Nov 21, 2016 11:40 am

Re: [Solved] :) UNHANDLED EXCEPTION

Post by pavelkonir » Mon May 15, 2017 7:53 am

I have the same problem. How did you solve it?

Nevermind
Posts: 28
Joined: Thu Sep 11, 2014 12:36 am

Re: [Solved] :) UNHANDLED EXCEPTION

Post by Nevermind » Sun May 21, 2017 4:35 pm

We have installed the last preview. :)

Chriso
Posts: 44
Joined: Sat Oct 13, 2012 9:46 pm
Contact:

Re: [Solved] :) UNHANDLED EXCEPTION

Post by Chriso » Sun Jul 22, 2018 1:46 pm

I have the latest Preview v3 (2018-06-24 20:43:43 UTC) and I have the same problem.

Code: Select all

[ERROR] FATAL UNHANDLED EXCEPTION: System.ExecutionEngineException: ExecutionContext_ExceptionInAsyncLocalNotification ---> System.Threading.ThreadAbortException
  at (wrapper managed-to-native) System.Object:InternalGetHashCode (object)
  at System.Object.GetHashCode () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Collections.Generic.ObjectEqualityComparer`1[T].GetHashCode (T obj) [0x0000d] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x0001c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Threading.ExecutionContext.OnAsyncLocalContextChanged (System.Threading.ExecutionContext previous, System.Threading.ExecutionContext current) [0x00119] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
   --- End of inner exception stack trace ---
  at System.Environment.FailFast (System.String message, System.Exception exception) [0x00007] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Threading.ExecutionContext.OnAsyncLocalContextChanged (System.Threading.ExecutionContext previous, System.Threading.ExecutionContext current) [0x0016e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Threading.ExecutionContext.SetExecutionContext (System.Threading.ExecutionContext executionContext, System.Boolean preserveSyncCtx) [0x00066] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
Mono version:

Code: Select all

Mono JIT compiler version 4.8.1 (Stable 4.8.1.0/22a39d7 Wed Apr 12 12:00:23 UTC 2017)

agw
Posts: 2130
Joined: Fri Feb 17, 2012 3:20 am

Re: [Solved] :) UNHANDLED EXCEPTION

Post by agw » Mon Jul 23, 2018 9:15 pm

Do you know what causes it, how to reproduce it?

Chriso
Posts: 44
Joined: Sat Oct 13, 2012 9:46 pm
Contact:

Re: [Solved] :) UNHANDLED EXCEPTION

Post by Chriso » Mon Jul 23, 2018 10:15 pm

Unfortunately, I have no idea.
Sometimes the VRS works for 1 hour, and sometimes it works several minutes and it pops up.

Chriso
Posts: 44
Joined: Sat Oct 13, 2012 9:46 pm
Contact:

Re: [Solved] :) UNHANDLED EXCEPTION

Post by Chriso » Mon Jul 30, 2018 5:53 pm

Next error and VRS turned off

Code: Select all

Unhandled Exception Caught
System.OutOfMemoryException: Out of memory
  at (wrapper alloc) System.Object:AllocVector (intptr,intptr)
  at System.Net.HttpConnection.BeginReadRequest () [0x0000b] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Net.EndPointListener.ProcessAccept (System.Net.Sockets.SocketAsyncEventArgs args) [0x00095] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Net.EndPointListener.OnAccept (System.Object sender, System.Net.Sockets.SocketAsyncEventArgs e) [0x00000] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Net.Sockets.SocketAsyncEventArgs.OnCompleted (System.Net.Sockets.SocketAsyncEventArgs e) [0x00014] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Net.Sockets.SocketAsyncEventArgs.Complete () [0x00000] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Net.Sockets.Socket.<AcceptAsyncCallback>m__0 (System.IAsyncResult ares) [0x000a0] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Net.Sockets.SocketAsyncResult+<Complete>c__AnonStorey0.<>m__0 (System.Object _) [0x00000] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00019] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00096] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0

[ERROR] FATAL UNHANDLED EXCEPTION: System.OutOfMemoryException: Out of memory
  at (wrapper alloc) System.Object:AllocVector (intptr,intptr)
  at System.Net.HttpConnection.BeginReadRequest () [0x0000b] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Net.EndPointListener.ProcessAccept (System.Net.Sockets.SocketAsyncEventArgs args) [0x00095] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Net.EndPointListener.OnAccept (System.Object sender, System.Net.Sockets.SocketAsyncEventArgs e) [0x00000] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Net.Sockets.SocketAsyncEventArgs.OnCompleted (System.Net.Sockets.SocketAsyncEventArgs e) [0x00014] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Net.Sockets.SocketAsyncEventArgs.Complete () [0x00000] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Net.Sockets.Socket.<AcceptAsyncCallback>m__0 (System.IAsyncResult ares) [0x000a0] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Net.Sockets.SocketAsyncResult+<Complete>c__AnonStorey0.<>m__0 (System.Object _) [0x00000] in <5641e4edad4f4464ba58c620a7b8ea48>:0
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00019] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00096] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0

agw
Posts: 2130
Joined: Fri Feb 17, 2012 3:20 am

Re: [Solved] :) UNHANDLED EXCEPTION

Post by agw » Wed Aug 22, 2018 8:47 pm

Sorry for the delay in replying.

Regarding the ThreadAbortException instances, they look a lot like the exceptions this guy has reported in mono's github:

https://github.com/mono/mono/issues/8716

Having said that he's reporting it as a problem under mono 5.12. I have been running the VRS 3 preview continuously under mono 5.12 on a Pi since the last preview release, so whatever it is isn't an intrinsic problem with 5.12. Also my setup is fairly simple, one push receiver and one rebroadcast server.

Post Reply