keep crashing on iOS

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Adrien
Posts: 26
Joined: Fri Jan 09, 2015 9:55 am

keep crashing on iOS

Post by Adrien » Sat Apr 11, 2015 11:08 am

Hello all,

So I've been developing my app (Gridle) on iOS and I always used to crash from time to time (only crashes on iOS, works perfectly in the IDE).
I'm pretty sure this is because of the database call in my code (no crashes when it's all commented out).

In the beginning I had direct mysql calls to my distant server, now I work with a SQLite cache database and URL calls for a php API running the MySQL queries and returning JSONs.

The crash logs were all looking like:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000006
Triggered by Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 CoreFoundation 0x29ca3dc9 CFRelease + 21
1 CoreFoundation 0x29d38de1 __CFArrayReleaseValues + 181
2 CoreFoundation 0x29ca3fa1 CFRelease + 493
3 CoreFoundation 0x29d61a6d __CFRunLoopRun + 1445
4 CoreFoundation 0x29caf3bd CFRunLoopRunSpecific + 473
5 CoreFoundation 0x29caf1cf CFRunLoopRunInMode + 103
6 GraphicsServices 0x310670a5 GSEventRunModal + 133
7 UIKit 0x2d2bd7ad UIApplicationMain + 1437
8 Gridle 0x0027199d 0xdd000 + 1657245
9 Gridle 0x000e43a4 0xdd000 + 29604
....
So I told myself, well, that's probably because the connexion to the SQLite DB isn't working well or something.. So I'll make try / catch statements around every single DB call, and write down the error in some debug field within the app.

Well, unfortunately, it keeps crashing, but now the crash reports look like this (I added the colors):
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: KERN_PROTECTION_FAILURE at 0x000000019b28cec8
Triggered by Thread: 3
...
Thread 3 Crashed:
0 ??? 0x000000019b28cec8 0 + 6898110152
1 Gridle 0x00000001001cf580 0x10003c000 + 1652096
2 Gridle 0x00000001004431e8 0x10003c000 + 4223464
....
I feel really lost.

Anyone has a clue?

I can't have an app that keeps crashing on a regular basis..



Thanks!

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: keep crashing on iOS

Post by jacque » Sat Apr 11, 2015 7:25 pm

It's a bug. See this: http://quality.runrev.com/show_bug.cgi?id=15084

In some cases it only happens if acceleratedRendering is turned on. If your app uses that, you could try not setting that. In other cases it doesn't make any difference, and if that is your situation then you can either wait for the fix, or revert to an older version of LC where it doesn't happen.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: keep crashing on iOS

Post by Dixie » Sun Apr 12, 2015 9:17 am

It seems that at the moment that running liveCode stacks in an iOS simulator is a waste of time... too many things do not work in the simulator... even little things like the systembeep not working becomes annoying... the best that you can do right now is make your standalone and just test it by putting it straight onto an iPhone or iPad...

The phrase 'wait for the fix' has become an unwelcome mantra...

Asha
Posts: 21
Joined: Tue Apr 01, 2014 1:02 pm

Re: keep crashing on iOS

Post by Asha » Mon Apr 20, 2015 9:04 pm

After months of hard work, I want to upload my app to the appstore, but I can't because of this issue, will be solved soon?

Thank so much!!
English is not my mother tongue

Asha
Posts: 21
Joined: Tue Apr 01, 2014 1:02 pm

Re: keep crashing on iOS

Post by Asha » Thu Apr 23, 2015 4:45 pm

I'll really apreciate if somebody of the staff talk about this issue and when or how to solve it.

Thank so much!! :P
English is not my mother tongue

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: keep crashing on iOS

Post by jacque » Thu Apr 23, 2015 5:03 pm

Click on the link to the bug database above and add yourself to the cc: list. That way you will receive emails every time the status changes and you can follow the progress.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Asha
Posts: 21
Joined: Tue Apr 01, 2014 1:02 pm

Re: keep crashing on iOS

Post by Asha » Thu Apr 23, 2015 5:33 pm

Thank you Jacque!!
English is not my mother tongue

Post Reply

Return to “Databases”