OpenHome Forum
Unhandled exception AssertionFailed - Printable Version

+- OpenHome Forum (http://forum.openhome.org)
+-- Forum: OpenHome (/forumdisplay.php?fid=1)
+--- Forum: Net (/forumdisplay.php?fid=5)
+--- Thread: Unhandled exception AssertionFailed (/showthread.php?tid=1581)



Unhandled exception AssertionFailed - simoncn - 20-03-2017 10:25 PM

I recently received the following error message while shutting down MinimServer on Windows:

ohNet fatal error: Unhandled exception AssertionFailed at Os/Windows/SignalHandlers.cpp:19 in thread TimerManager

_OhNetLibraryStartCombined@4
RtlRaiseStatus
RtlRaiseStatus
KiUserExceptionDispatcher
_OhNetLibraryStartCombined@4
_OhNetLibraryStartCombined@4

After producing this output, ohNet crashed with an access violation. I repeated the same steps but the error didn't occur again. Does the above output provide any useful pointers?


RE: Unhandled exception AssertionFailed - simonc - 22-03-2017 11:37 AM

I'd guess that this shows a race on shutdown that can cause freed memory to be accessed.

ohNet fatal error: Unhandled exception AssertionFailed at Os/Windows/SignalHandlers.cpp:19 in thread TimerManager

says that ohNet has caught a Windows structured exception of type EXCEPTION_ACCESS_VIOLATION. This could be caused by accessing freed or otherwise invalid memory but we can't say for sure. The stack has been trashed by this point - the call stack that follows this message is nonsense.

I haven't seen any similar issues from our tests. I'll keep an eye out for anything similar though.