GMS 2.3+ How to make exception_unhandled_handler useful?

SnoutUp

Member
Hello there,

I've been dreaming about crashing my games nicely for a long time and decided to spend my Sunday trying to work something out with that new exception_unhandled_handler, but... failed. Now it's somewhat decent on Windows, since I can add a little joke to the crash message to make it look less threatening, but if I display it via show_message it means that players don't get an option to copy the output easily without taking a screenshot. I tried using show_error hoping that it will use the old error dialog which is more accessible, but for some reason show_error invokes unhandled exception (doesn't matter if abort flag was set to true or false) and that crashes the game even harder.

After giving up on Windows, I was hoping I'd be able to set up that exception handler on Android and send the crash log to GameAnalytics or at least strip all those "#" symbols out of error message, so it would fit on screen when players take screenshots for reporting, but after crashing the game exits in a way that it kills all dialogs and likely webservice calls instantly.

How do you use it? Was anyone able to set it up on mobile?

I guess I'll try sending crashes to GameAnalytics on desktop version and hope at least that works.

On a related note, maybe it's time to update the default crash template? Because it looks like a cruel joke on mobile.

1606657010139.png
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
The way you'd handle it, regardless of platform, is by saving the error message into a file and then checking if such a file exists on game start, asking the player if they want to send an error report or not.
 

SnoutUp

Member
The way you'd handle it, regardless of platform, is by saving the error message into a file and then checking if such a file exists on game start, asking the player if they want to send an error report or not.
Ah, alright, that's a good option, but it would mean completely silent crash on mobile..? I guess that's a decent trade off as long as I'm getting the data and can fix more crashes.
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
Ah, alright, that's a good option, but it would mean completely silent crash on mobile..? I guess that's a decent trade off as long as I'm getting the data and can fix more crashes.
That might be a thing to report - perhaps implementation-specific
 
Top