Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Proper Lua Crash Logging for Gideros — Gideros Forum

Proper Lua Crash Logging for Gideros

bowerandybowerandy Guru
edited April 2013 in Plugins
Folks,

Some time ago, following @atilim 's request, I added Crittercism crash logging to my app under development. Imagine my surprise when I found nothing in the logs following several "crashes". This was, of course, because these crashes I'd experienced weren't actually caused by real exceptions at all but rather they were "just" Lua errors. Unfortunately, in such circumstances Gideros just prints a stack trace to the console and then exits normally. Nothing get's sent to Crittercism for later perusal.

Recently, I got down to sorting this out and I've now written a plugin that allows you to detect Lua crashes *and* get hold of the Lua stack trace when things went wrong. You can find full details and a download link for the plugin in this blog article:

http://bowerhaus.eu/blog/files/luacrashlogging.html

As you'll see if you read the article, I found that neither Crittercism nor BugSense are suitable for this purpose and I opted for Crashlytics. This is no bad thing, since it turns out that Crashlytics is now completely free to use.

Here's a short (two-line) stack dump that shows how it appears in the Crashlytics dashboard (newlines are replaced by *** markers):

image
Note that the plugin, as it stands, is written for iOS. However, there's nothing in there that should preclude an easy port to Android. If anyone manages to do this, please let me know.

best regards
+1 -1 (+6 / -0 )Share on Facebook

Comments

Sign In or Register to comment.