10-26-2013 01:36 PM
I have an AIR app that worked fine on the Q10 developer device, running an earlier 10.2. I got reports that the app fails under a released 10.2. I tested it under the simulator (10.2.0.1791) and it starts up, displays fine for about a second and then exits. It does not seem to crash since I am not getting a crash notice in Flash Builder debugger.
Thoughts on what I can test?
Other AIR apps run fine in the simulator so it is something about one particular app after it starts.
10-26-2013 08:27 PM
10-27-2013 03:38 AM
Are you running a debug build on the latest sim and not getting even any unhandled exception messages?
I was curious about how to proceed in such a situation as well, since from time to time I've had crashes with similarly little info to go on. With a C program you'd typically load the core file into gdb and look at the stack trace prior to the crash .... but, a decent amount of googling didn't find me a similar way to retrieve a stack trace from an adl.core file.
If you end up needing to get a stack trace from your adl.core file and find out how to do it, please post here for the benefit of others.
10-27-2013 03:47 AM
BTW the most recent problem I had w/crash on startup had to do with ANE packaging that BB10 didn't like. I was trying to package the bbm.ane into an app using my usual commandline flow, which packages ANE's into the bar at the top level of the bar, next to the air folder, and luckily my air log file told me it couldn't find the bbm ANE (so, I didn't have to attempt to find the source of the problem via the adl.core file and a stack trace). Unfortunately it didn't say why it couldn't fine the bbm ANE, even though the ANE was clearly sitting right there in my bar file.
I looked at the BBM sample app's bar file on github and found that the bbm ANE was merged into the air folder. Historically, I had been using a commandline like:
blackberry-airpackager [... other arguments] -C <path to ANE file> <ANE file>
to package e.g. the QNXDevice.ane at the top level of the bar, with no problems.
But, for the bbm ANE, I apparently have to do:
blackberry-airpackager [... other arguments] -ane <ANE file>
which merges the bbm ANE down into my app's air folder.
10-27-2013 09:54 AM
All the ANE's are from the same version of the SDK.
The app runs fine on the Q10 deverloper phone running 10.2.0.341, but not the simulator running a later version of the OS.
The Q10 dev phone wont allow me to update to the current release of the OS via OTA.
10-27-2013 10:24 AM
So to make certain I had the latest, I re-installed to:
Running Flash Builder 4.6
If I change the -app.xml file name space from 3.1 to 3.5, I get:
Error occurred while packaging the application:
Error: AIR validation failed
So is it just being packaged wrong?
10-27-2013 10:31 AM