Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

App Crash - Due to Database, memory, or what?

Hi

I do a search on a database and use the result-set to create rows for a table.
I remember to close the row and db objects but after one or 2 searches, the app crashes; both on emulator and device.

I got this error from iphone emulator:

eport Version: 6
Anonymous UUID: 85324730-A12A-4A95-90E8-9B156EB43761

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000020
Crashed Thread: 0

Thread 0 Crashed:
0 ??? 0x02ef5688 0 + 49239688
1 ??? 0x000a5c21 0 + 678945
2 ??? 0x000a595a 0 + 678234
3 ??? 0x000a4080 0 + 671872
4 ??? 0x00054db8 0 + 347576
5 ??? 0x016cee0c 0 + 23916044
6 ??? 0x016c6a43 0 + 23882307
7 ??? 0x0186d772 0 + 25614194
8 ??? 0x018699b0 0 + 25598384
9 ??? 0x016d69d7 0 + 23947735
10 ??? 0x016d6703 0 + 23947011
11 ??? 0x016c8f02 0 + 23891714
12 ??? 0x0005317a 0 + 340346
13 ??? 0x00076cbf 0 + 486591
14 ??? 0x00420b36 0 + 4328246
15 ??? 0x0307a8e1 0 + 50833633
16 ??? 0x03079c48 0 + 50830408
17 ??? 0x01396615 0 + 20538901
18 ??? 0x013966da 0 + 20539098
19 ??? 0x01689faf 0 + 23633839
20 ??? 0x0000301a 0 + 12314
21 ??? 0x00002e86 0 + 11910

Thread 1:
0 ??? 0x02ceb266 0 + 47100518
1 ??? 0x02cf2a5c 0 + 47131228
2 ??? 0x0307a382 0 + 50832258
3 ??? 0x03079c48 0 + 50830408
4 ??? 0x03751223 0 + 58004003
5 ??? 0x02d1c155 0 + 47300949
6 ??? 0x02d1c012 0 + 47300626

Thread 2:
0 ??? 0x02cf244e 0 + 47129678
1 ??? 0x02d1cdcd 0 + 47304141
2 ??? 0x0045c961 0 + 4573537
3 ??? 0x00031fee 0 + 204782
4 ??? 0x0041ff6d 0 + 4325229
5 ??? 0x0041fb08 0 + 4324104
6 ??? 0x02d1c155 0 + 47300949
7 ??? 0x02d1c012 0 + 47300626

Thread 3:
0 ??? 0x02cf244e 0 + 47129678
1 ??? 0x02d1cdcd 0 + 47304141
2 ??? 0x0011f5cd 0 + 1177037
3 ??? 0x0011f601 0 + 1177089
4 ??? 0x02d1c155 0 + 47300949
5 ??? 0x02d1c012 0 + 47300626

Thread 4:
0 ??? 0x02cf244e 0 + 47129678
1 ??? 0x02d1cdcd 0 + 47304141
2 ??? 0x0045c961 0 + 4573537
3 ??? 0x00031fee 0 + 204782
4 ??? 0x0041ff6d 0 + 4325229
5 ??? 0x0041fb08 0 + 4324104
6 ??? 0x02d1c155 0 + 47300949
7 ??? 0x02d1c012 0 + 47300626

Thread 5:
0 ??? 0x02cf244e 0 + 47129678
1 ??? 0x02d1cdcd 0 + 47304141
2 ??? 0x0045c961 0 + 4573537
3 ??? 0x00031fee 0 + 204782
4 ??? 0x0041ff6d 0 + 4325229
5 ??? 0x0041fb08 0 + 4324104
6 ??? 0x02d1c155 0 + 47300949
7 ??? 0x02d1c012 0 + 47300626

Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x061c2f20 ebx: 0x0004b86a ecx: 0x02f7dec4 edx: 0x00000000
edi: 0x00000000 esi: 0x02f7dec4 ebp: 0xbfffd318 esp: 0xbfffd1d8
ss: 0x0000001f efl: 0x00010202 eip: 0x02ef5688 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x00000020

Binary Images:
0x8fe00000 - 0x8fe2f48b dyld 97.1 (???) <42823f3b2755e135abeb7f8ac838a1f8> /usr/lib/dyld

What did I miss?

— asked April 15th 2010 by Peter Lum
  • app
  • crash
  • database
  • iphone
0 Comments

3 Answers

  • This doesn't help much, unfortunately. If you could post the relevant portion of code, though, somebody here might be able to spot the bug.

    — answered April 15th 2010 by Mark Burggraf
    permalink
    0 Comments
  • 2010-04-16 10:23:59.044 MyApp[6289:20b] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSCFString allKeys]: unrecognized selector sent to instance 0x61ed440'
    2010-04-16 10:23:59.044 NewDay[6289:20b] Stack: (
    51049563,
    49192507,
    51431483,
    51000950,
    50853570,
    309112,

    — answered April 16th 2010 by Peter Lum
    permalink
    0 Comments
  • It is hard for me to track because the crash happens after playing with the app for a while.. and at different times.

    Is there a Garbage collector I can call?

    — answered April 16th 2010 by Peter Lum
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.