Android binaries crash in post-callipygous nightlies
Brought to you by:
bob_the_hamster,
teeemcee
I just tried rebuilding a new apk for Void Pyramid using the latest nightly. The apk appears to build okay, and installs fine, but on the first run it crashes. It seems like the file-unzipping bit goes okay, but the crash happens before the title screen appears.
Here is an adb logcat from a few seconds before and after the crash
I bisected this and found that the crash starts with svn revision 8000
"Full FB 0.24+ support: Replace OPEN with OPENFILE nearly everywhere."
I am wondering if I need a new copy of freebasic-for-android?
By coincidence I was going to start work on a new FB-1.06-for-Android branch tonight, although no, it should not have been necessitated by any of my changes. This time, I'll actually run the FB testcases (although crosscompiling them will probably be a nuisance).
I can guess that the problem may be to do with openfiles in filelayer.cpp again. Even in the FB 0.90 android fork there was something wrong with constructors, destructors didn't seem to run at all, and other bugs - recall that for some reason the gfxbackend global gets set to "sd" instead of "sdl".
I can confirm this is fixed in revision 8148
Yay!
Marking fixed