Featured Android game crashes in libcocos2dcpp.so

OK chasing this line in the 2nd stack trace:

Stack frame #06 pc 0004d767 /system/lib/libdvm.so (dvmDecodeIndirectRef(Thread*,_jobject*)+146)

Led me to this stackoverflow question, which might help. In such situations you need to search for key elements of the stack trace to see if others have faced something similar. There is also this question (from this very forum), which is similar.

As far as the stringDescribesSPGame() method is concerned, you could probably be more defensive and avoid passing nullptr through to strstr(), which I’m fairly sure is the issue there:

static bool stringDescribesSPGame(const char *desc) {
    bool retval = false;
    if (desc && *desc) {
        const char *eoi = strstr(desc, " on a");
        retval = (eoi - desc <= 13);
    }
    return retval;
}