Exception C0000194 when the app is backgrounded (Win 10 Phone)

Hello!

We are getting a lot of exception C0000194 when our app is backgrounded on a Lumia 920 with Windows 10. It does not happen 100% of the time and it does not appear to come from any of our code.

Examples from when we get it:

  • Attempting to log into Facebook or Twitter
  • Holding the back button to see running apps, then tapping back to go back to our app.
  • Tap the start button to go to the home screen, tap our app.

Seems like this can occur any time our app is backgrounded and we are attempting to multitask something on the OS.

Using Unity 5.2.4f1. I will test on Unity 5.4.0b18 next. I have crash dumps available if they help. I will try to submit a bug after I test on Unity 5.4.0b18.

Here’s what I’m seeing in our crash dump. This was still on Unity 5.2.4f1. The stacktrace goes through ProjectName.dll!ProjectName.Program.Main(string[ ] args) but I’m pretty sure this function was not written by us. I assume it was generated by Unity?

Still occurs on Unity 5.4.0b18. It does not occur with a new project so something in our project must be causing it. I’m not sure what, the crash dump isn’t telling me much. Ticket # 799612.

It appears to have something to do with how I’m scheduling toast notifications or live tiles. When I disable that feature we don’t seem to get this exception. I’m guessing this exception only occurs specifically when we have notifications to schedule. More testing tomorrow.

You’re looking at a wrong thread in the dump. It’s not where it’s crashing.

It looks like you didn’t attach any project to the bug report…