[Solved] EventSessionUpnp::Run unexpected execution
|
31-12-2016, 04:56 PM
(This post was last modified: 06-01-2017 07:03 PM by ChriD.)
Post: #1
|
|||
|
|||
[Solved] EventSessionUpnp::Run unexpected execution
Hi,
I get following exception sometimes Code: Unhandled exception AssertionFailed at OpenHome/Net/ControlPoint/Upnp/EventUpnp.cpp:182 in thread EventSession 2 What may be the problem here? |
|||
04-01-2017, 09:25 AM
Post: #2
|
|||
|
|||
RE: EventSessionUpnp::Run unexpected execution
Callbacks that run when a property changes are not allowed to throw. This assertion fails if one of them does throw.
The immediate fix would be to review all of your code, adding try...catch blocks as appropriate. I can see this'll be a bit of a pain to maintain. Later, I'll change ohNet to silently consume any exceptions instead. |
|||
05-01-2017, 01:31 PM
Post: #3
|
|||
|
|||
RE: EventSessionUpnp::Run unexpected execution
Ok, Thanks! I'll check this.
I thought i have added try catch blocks in every callback. I may have forgotten one |
|||
06-01-2017, 07:03 PM
Post: #4
|
|||
|
|||
RE: EventSessionUpnp::Run unexpected execution
I've digged a little deeper and i found out that it happens sometimes on a renderer on the "AVTRansport" "LastChanged" event
And the throw comes from the Os/Windows/SignalHandlers.cpp on line 19 (EXCEPTION_ACCESS_VIOLATION) So in fact the problem was that i used an undefined pointer in some case (shame on me) and therfore the callback crashed |
|||
« Next Oldest | Next Newest »
|