iOS4 problems?

I just tested a game that I’ve been working on in my just-updated iPod Touch, which of course I updated to iOS4. The game worked great before, but now there’s an issue. It works fine in the beginning, and then after a little bit of play it just closes. The game was exported for iPhone 3.

Are there any known issues with iOS4 compatibility? [import]uid: 6678 topic_id: 1282 reply_id: 301282[/import]

This is the first report I’ve heard of as far as a iOS4 specific issue like that.

What does the log say in the organizer after the app closes? [import]uid: 3 topic_id: 1282 reply_id: 3473[/import]

This is what the log reads when it closes:

SpringBoard[40] : Application ‘my app name’ exited abnormally with signal 6: Abort trap

ReportCrash[331] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/myappname_2010-06-25-161345_iPod.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0

And here is the crash report, and please let me know if you need any more information:
Incident Identifier: 8F7E882B-D591-4ABE-B3A1-2B320AE3B965
CrashReporter Key: 2edd48193bb674195fa5a35ec189faefb797fb57
Hardware Model: iPod2,1
Process: myappname [330]
Path: /var/mobile/Applications/D15D662A-A289-45D1-AD85-37B60503E63D/myapp.app/myappname
Identifier: myappname
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]

Date/Time: 2010-06-25 16:13:45.632 -0400
OS Version: iPhone OS 4.0 (8A293)
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0

Thread 0 Crashed:
0 libSystem.B.dylib 0x00088c24 kill + 8
1 libSystem.B.dylib 0x00088c12 kill + 4
2 libSystem.B.dylib 0x00088c06 raise + 10
3 libSystem.B.dylib 0x0009f902 abort + 54
4 libSystem.B.dylib 0x0008c356
assert_rtn + 166
5 CoreGraphics 0x00022ab0 color_space_state_dealloc + 48
6 CoreFoundation 0x00003652 _CFRelease + 174
7 CoreFoundation 0x00003566 CFRelease + 74
8 CoreGraphics 0x000026a4 CGColorSpaceRelease + 12
9 ImageIO 0x000069a8 _CGImagePlusFinalize + 44
10 CoreFoundation 0x00003652 _CFRelease + 174
11 CoreFoundation 0x00003566 CFRelease + 74
12 CoreFoundation 0x00077bc6 CFTypeCollectionRelease + 8
13 CoreFoundation 0x000669a8
CFDictionaryReleaseValue + 22
14 CoreFoundation 0x000b777c CFBasicHashDrain + 268
15 CoreFoundation 0x00066a44
CFDictionaryDeallocate + 2
16 CoreFoundation 0x00003652 _CFRelease + 174
17 CoreFoundation 0x00003566 CFRelease + 74
18 ImageIO 0x00029fb8 releaseInfoPNG + 24
19 ImageIO 0x00020bd8 ImageProviderReleaseInfoCallback + 48
20 CoreGraphics 0x0002dfcc image_provider_finalize + 20
21 CoreFoundation 0x00003652 _CFRelease + 174
22 CoreFoundation 0x00003566 CFRelease + 74
23 CoreGraphics 0x000044bc CGImageProviderRelease + 12
24 CoreGraphics 0x00013cd4 image_finalize + 100
25 CoreFoundation 0x00003652 _CFRelease + 174
26 CoreFoundation 0x00003566 CFRelease + 74
27 myappname 0x0000a382 0x1000 + 37762
28 myappname 0x00013d90 0x1000 + 77200
29 myappname 0x00013c90 0x1000 + 76944
30 myappname 0x00012d98 0x1000 + 73112
31 myappname 0x00010b88 0x1000 + 64392
32 myappname 0x000127f8 0x1000 + 71672
33 myappname 0x0000bd10 0x1000 + 44304
34 myappname 0x0000c7e4 0x1000 + 47076
35 myappname 0x00013e6c 0x1000 + 77420
36 myappname 0x000140ec 0x1000 + 78060
37 myappname 0x00011acc 0x1000 + 68300
38 myappname 0x0000a6fa 0x1000 + 38650
39 QuartzCore 0x000cbb2c CA::Display::DisplayLink::dispatch(unsigned long long, unsigned long long) + 216
40 IOMobileFramebuffer 0x00001880 IOMobileFramebufferVsyncNotifyFunc + 124
41 ??? 0x353f0c64 0 + 893324388
42 CoreFoundation 0x00069a28 CFMachPortPerform + 212
43 CoreFoundation 0x000742ac
CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 22
44 CoreFoundation 0x000761d6
CFRunLoopDoSource1 + 158
45 CoreFoundation 0x0007718e __CFRunLoopRun + 574
46 CoreFoundation 0x0001e0bc CFRunLoopRunSpecific + 220
47 CoreFoundation 0x0001dfca CFRunLoopRunInMode + 54
48 GraphicsServices 0x00003f88 GSEventRunModal + 188
49 UIKit 0x00007b40 -[UIApplication _run] + 564
50 UIKit 0x00005fb8 UIApplicationMain + 964
51 myappname 0x000026e0 0x1000 + 5856
52 myappname 0x0000267c 0x1000 + 5756

Thread 1:
0 libSystem.B.dylib 0x00034e84 kevent + 24
1 libSystem.B.dylib 0x00102a48 _dispatch_mgr_invoke + 88
2 libSystem.B.dylib 0x00102494 _dispatch_queue_invoke + 96
3 libSystem.B.dylib 0x00102634 _dispatch_worker_thread2 + 120
4 libSystem.B.dylib 0x0008b53c _pthread_wqthread + 392
5 libSystem.B.dylib 0x00082b6c start_wqthread + 0

Thread 2:
0 libSystem.B.dylib 0x00000ab0 mach_msg_trap + 20
1 libSystem.B.dylib 0x00002f94 mach_msg + 60
2 CoreFoundation 0x00074b18__CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x000770e0 __CFRunLoopRun + 400
4 CoreFoundation 0x0001e0bc CFRunLoopRunSpecific + 220
5 CoreFoundation 0x0001dfca CFRunLoopRunInMode + 54
6 WebCore 0x0000370c RunWebThread(void*) + 552
7 libSystem.B.dylib 0x0008af80 _pthread_start + 364
8 libSystem.B.dylib 0x0007d014 thread_start + 0

Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x3e1be26c
r4: 0x00000006 r5: 0x318ef0cc r6: 0x0000007f r7: 0x2fffe748
r8: 0x309a25d0 r9: 0x00000888 r10: 0x309a25ec r11: 0x000001f4
ip: 0x00000025 sp: 0x2fffe748 lr: 0x3185dc19 pc: 0x3185dc24
cpsr: 0x000a0010

Binary Images:
0x1000 - 0x49fff +myappname armv6 /var/mobile/Applications/D15D662A-A289-45D1-AD85-37B60503E63D/myappname.app/myappname
0xcc000 - 0xcdfff dns.so armv6 /usr/lib/info/dns.so
0x2fe00000 - 0x2fe28fff dyld armv6 /usr/lib/dyld
0x30021000 - 0x3007dfff libGLImage.dylib armv6 <4d09042d6dfd3c953a5c35fc9d765c7c> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
0x3009e000 - 0x301c6fff MusicLibrary armv6 <732057b3867dd3f90e600d1bcd217b2e> /System/Library/PrivateFrameworks/MusicLibrary.framework/MusicLibrary
0x301c7000 - 0x30364fff AudioToolbox armv6 <7ba1695e186fe8f284ab7f33fcd85d1d> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x3041e000 - 0x3043cfff libresolv.9.dylib armv6 <806782dbc2e4e7992c26bf32b4df0674> /usr/lib/libresolv.9.dylib
0x304f4000 - 0x3055afff libBLAS.dylib armv6 <9222c722e8fa6b004565e9f50fb611c4> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib
0x305a7000 - 0x305b6fff OpenGLES armv6 <5f718500ced9ed538f6d70a20ca9e7b8> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x305b7000 - 0x305f9fff CoreLocation armv6 /System/Library/Frameworks/CoreLocation.framework/CoreLocation
0x30659000 - 0x30692fff MobileCoreServices armv6 /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x306f0000 - 0x30733fff CoreTelephony armv6 <0a68cba6be455c7c40ab745a02f731c0> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x307b2000 - 0x30810fff CoreAudio armv6 <667e016db146b7b685c2df973b4eb1f2> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x30811000 - 0x30817fff MBX2D armv6 <14a44e9271c3e17812a8ae9b690fbee7> /System/Library/PrivateFrameworks/MBX2D.framework/MBX2D
0x30836000 - 0x309b9fff CoreGraphics armv6 <8fb72c9419ad2991e3883433a56474bd> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x309bf000 - 0x309c7fff IAP armv6 <393e2aa3ac1152c278788bdcdfcb0ae6> /System/Library/PrivateFrameworks/IAP.framework/IAP
0x30aba000 - 0x30b1cfff libsqlite3.dylib armv6 /usr/lib/libsqlite3.dylib
0x30b69000 - 0x30b69fff vecLib armv6 <9675978ea23f63d6a50ba3e86b51ca97> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x30c82000 - 0x30d66fff QuartzCore armv6 <68467edfafbe46cf156a09f981470c4c> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x30d6f000 - 0x30d8ffff libRIP.A.dylib armv6 <096f09bbc077685818857b1b5b778180> /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
0x30d96000 - 0x30de9fff libvDSP.dylib armv6 /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x30e09000 - 0x30e0bfff libAccessibility.dylib armv6 /usr/lib/libAccessibility.dylib
0x30e0c000 - 0x30e0dfff CoreSurface armv6 <0deb7e43538b2322b1393fef1c5a1590> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface
0x30e29000 - 0x30f43fff libicucore.A.dylib armv6 <32cb97fab65d624434be808e4d7f7fd5> /usr/lib/libicucore.A.dylib
0x3115c000 - 0x31160fff ApplePushService armv6 <7f70dc415a34acff93861da7eabb7ba4> /System/Library/PrivateFrameworks/ApplePushService.framework/ApplePushService
0x31162000 - 0x3152ffff libLAPACK.dylib armv6 <9ed24071d90c47c237b42c77a5475efe> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib
0x315ae000 - 0x31666fff ImageIO armv6 <00456ab6f056e5cc09947c1583de18bf> /System/Library/Frameworks/ImageIO.framework/ImageIO
0x3168c000 - 0x3168ffff CrashReporterSupport armv6 <45ad3a409dd6e9d3e7281b05a3819bc0> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x31759000 - 0x31765fff SpringBoardServices armv6 /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x31766000 - 0x3176afff libMobileGestalt.dylib armv6 <0049a3d14c57b4a1ea8d520fab571a92> /usr/lib/libMobileGestalt.dylib
0x3176b000 - 0x3176dfff IOMobileFramebuffer armv6 /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x317d5000 - 0x3190efff libSystem.B.dylib armv6 /usr/lib/libSystem.B.dylib
0x3193c000 - 0x31a10fff WebKit armv6 <3cb517d6a799c4722ace6679f2e85a6d> /System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x31a58000 - 0x31c99fff ProtocolBuffer armv6 <16f68d9ce4e4e5bc18b35148d68c369a> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer
0x31e3a000 - 0x31e3efff IOSurface armv6 <604ec9514f70a84f18a4c020b723ec57> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
0x31e3f000 - 0x31f04fff Celestial armv6 /System/Library/PrivateFrameworks/Celestial.framework/Celestial
0x31f3c000 - 0x31f47fff libbz2.1.0.dylib armv6 /usr/lib/libbz2.1.0.dylib
0x31f48000 - 0x31f84fff MBXGLEngine armv6 <2082a726c1a77ef068fed9a68aff7596> /System/Library/Frameworks/OpenGLES.framework/MBXGLEngine.bundle/MBXGLEngine
0x31f86000 - 0x31f91fff ITSync armv6 <61f4bfaae86f26d0ff9a30d3fe6eff5f> /System/Library/PrivateFrameworks/ITSync.framework/ITSync
0x31f93000 - 0x31f9dfff MobileWiFi armv6 <597094bba2fbd7ee1976bd5f38d93f4c> /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi
0x31f9e000 - 0x31fdefff ManagedConfiguration armv6 <4c318efb9d60754af1f1ba5eee715880> /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration
0x3200b000 - 0x3201cfff PersistentConnection armv6 /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection
0x3216a000 - 0x321b9fff Security armv6 /System/Library/Frameworks/Security.framework/Security
0x32233000 - 0x32285fff IOKit armv6 <861fd5d810381967e6a4d8c504fddc65> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x3235c000 - 0x33a75fff UIKit armv6 <6b1e7386ccb9170130465dd66e320a58> /System/Library/Frameworks/UIKit.framework/UIKit
0x33a76000 - 0x33a8afff libmis.dylib armv6 /usr/lib/libmis.dylib
0x33c07000 - 0x33c48fff VideoToolbox armv6 /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox
0x33c49000 - 0x33c57fff GraphicsServices armv6 <336ba68fec36155d87dcd5cc93cb69a5> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x341e7000 - 0x34207fff RawCamera armv6 <0d564a0ceaead3ed2c2ca062e6e86a9b> /System/Library/CoreServices/RawCamera.bundle/RawCamera
0x34209000 - 0x34239fff AppSupport armv6 /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x342b2000 - 0x342b9fff liblockdown.dylib armv6 /usr/lib/liblockdown.dylib
0x342ba000 - 0x342c0fff MobileKeyBag armv6 /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag
0x342d7000 - 0x34342fff libstdc++.6.dylib armv6 /usr/lib/libstdc++.6.dylib
0x34387000 - 0x34447fff MediaPlayer armv6 /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer
0x34448000 - 0x34449fff DataMigration armv6 /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration
0x3445f000 - 0x34555fff libxml2.2.dylib armv6 /usr/lib/libxml2.2.dylib
0x34556000 - 0x3455bfff libGFXShared.dylib armv6 <1fba30d031fdd1d3580a19d0e757f82a> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
0x3456e000 - 0x34573fff AssetsLibraryServices armv6 <82ebe32a298d9a3e2ff42c1fc4ed164b> /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices
0x345a8000 - 0x345b1fff AccountSettings armv6 <4933996569c9e94593eece3c59c83b38> /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings
0x345db000 - 0x345e3fff libgcc_s.1.dylib armv6 <480b2ebb3645728b3ddea392718b06f4> /usr/lib/libgcc_s.1.dylib
0x34638000 - 0x3463bfff ArtworkCache armv6 <094874c28571b2a61958a12d7ac1c909> /System/Library/PrivateFrameworks/ArtworkCache.framework/ArtworkCache
0x346c4000 - 0x347e5fff Foundation armv6 /System/Library/Frameworks/Foundation.framework/Foundation
0x347e9000 - 0x3498efff MediaToolbox armv6 <7abebed58aafad2637353798796827d3> /System/Library/PrivateFrameworks/MediaToolbox.framework/MediaToolbox
0x349c6000 - 0x349d8fff libbsm.0.dylib armv6 <890d82cf86a38274a40c7435941825b0> /usr/lib/libbsm.0.dylib
0x34a2d000 - 0x34a80fff CoreMedia armv6 <791607fdea84db935ec2983b646fd6ae> /System/Library/Frameworks/CoreMedia.framework/CoreMedia
0x34c47000 - 0x34c89fff AddressBook armv6 <8cdfdb51dfc5859a49e4e62f6f423458> /System/Library/Frameworks/AddressBook.framework/AddressBook
0x34e5d000 - 0x34f6dfff CFNetwork armv6 <1f59b619ceea0eaf7ba9ec3729c136d4> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x350c0000 - 0x35105fff CoreText armv6 /System/Library/Frameworks/CoreText.framework/CoreText
0x3510b000 - 0x3512afff Bom armv6 <9f17f2fdf0e7efd5740ff1d8637fc0b6> /System/Library/PrivateFrameworks/Bom.framework/Bom
0x35172000 - 0x35191fff EAP8021X armv6 /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X
0x35192000 - 0x35195fff MobileInstallation armv6 /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation
0x3519b000 - 0x351a7fff libkxld.dylib armv6 <564dcfd62a1a5430ec02feacf6334825> /usr/lib/system/libkxld.dylib
0x351a8000 - 0x351b6fff libz.1.dylib armv6 <712df47cb008c407ea7b3615d078cfc6> /usr/lib/libz.1.dylib
0x35237000 - 0x352ddfff libobjc.A.dylib armv6 /usr/lib/libobjc.A.dylib
0x352e0000 - 0x352edfff MobileBluetooth armv6 <294e5422ae7533dd6c64fb5fef3b86e8> /System/Library/PrivateFrameworks/MobileBluetooth.framework/MobileBluetooth
0x35348000 - 0x353e6fff ProofReader armv6 /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader
0x355bb000 - 0x355bbfff Accelerate armv6 <19360395982776b4e38e5a28acda450b> /System/Library/Frameworks/Accelerate.framework/Accelerate
0x355bc000 - 0x35719fff libGLProgrammability.dylib armv6 /System/Library/Frameworks/OpenGLES.framework/libGLProgrammability.dylib
0x357e8000 - 0x358d1fff JavaScriptCore armv6 <2c206f26fee7b7a93004b9f4e82b504b> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x35966000 - 0x3615dfff WebCore armv6 /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x362ab000 - 0x362e6fff libCGFreetype.A.dylib armv6 <51e05cea58bdf27356c29658b5b93e6d> /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib
0x363a0000 - 0x36477fff CoreFoundation armv6 <0ae5fe97433e816615033fbe19e5cf6e> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x36478000 - 0x36484fff CoreVideo armv6 <639962081f133b863b43981e3214c1e9> /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x36485000 - 0x364c7fff SystemConfiguration armv6 <9f8575eaec0d1428fe23a40f2f7dd2c5> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x36503000 - 0x36563fff GMM armv6 <8f383b3fb65b1dd4e9e46d6de455ff29> /System/Library/PrivateFrameworks/GMM.framework/GMM
[import]uid: 6678 topic_id: 1282 reply_id: 3475[/import]

Also being that it doesn’t seem like this is an out of memory issue, I assume this is actually a bug? [import]uid: 6678 topic_id: 1282 reply_id: 3477[/import]

Opened case #274. No, it should never crash. [import]uid: 54 topic_id: 1282 reply_id: 3497[/import]

I have some Crash Logs of alien horde … Maybe this relates to the same problem. Deleted them though :frowning: [import]uid: 6928 topic_id: 1282 reply_id: 3504[/import]

The crash logs, I still have but they are not from the game as such.

If you quickly try to reload a game straight after quitting it it will try to load and crash. I think it takes a few seconds to free the memory / close the app. These crashes are all OS4 related.

Im quite happy to work with you guys to resolve this issue, if you dont have the game im happy to give you the source code.

Ive only had 1 actual crash report from a purchaser and that could probably be my fault as corona did not crash, the game still ran but no more aliens came so m assuming the aliens.lua class crashed and corona carried on regardless! [import]uid: 5354 topic_id: 1282 reply_id: 3551[/import]

We’re looking into it, for sure. [import]uid: 54 topic_id: 1282 reply_id: 3552[/import]

Ive got no internet at home for the next week so I will help where I can.

Just so you guys know. Alien Horde been out 1 week now and sold 300+ copies. The crash reports that get submitted to iTunes Connect >

OS 3.2 - No Crash Reports
OS 3.1.3 - No Crash Reports
OS 3.1.2 - No Crash Reports
OS 3.1 - No Crash Reports
OS 4 - Some crash reports
All versions - no memory issues
This is all from Beta 5

OS4 crash reports

  1. CoreGraphics: color_space_state_dealloc 92% of submitted crashes
  2. CoreGraphics: color_space_state_dealloc + 22 4% of submitted crashes
  3. CoreGraphics: color_space_state_dealloc + 48 4% of submitted crashes

Like ive said above though these do not occur while the game is happening. I have a stress test version which runs at 10x speed and has unlimited life, the app carries on happily forever with no issues that ive found.

Eric I will email you the reports in a mo if it help you. [import]uid: 5354 topic_id: 1282 reply_id: 3553[/import]

In my game, during game play, this bug is a nasty one. It was pretty much ready for release, but now it’s not usable since it actually crashes every time. But, it seems a lot of apps that worked on 3.x aren’t working correctly on 4. I have a bunch on my iPod Touch that don’t even open. But I would really hope this is fixed very soon because right now I have to hold up a game that I was pretty much set to release. [import]uid: 6678 topic_id: 1282 reply_id: 3568[/import]

I managed to generate an error like that the other day while debugging and it made the app quit. The problem I had as trying to do a transition on an object that didnt exist. Does it quit the simulator as well? [import]uid: 5354 topic_id: 1282 reply_id: 3569[/import]

Interesting, but no, the simulator never quits, and I never get any errors or warnings in the terminal. Also, it seemed to work fine on 3.x and never crashed. I’m not using any transitions, but I wonder what else it could be, if anything I’m doing, but it really doesn’t seem like it. Thanks for the idea and please let me know if you have any other thoughts. [import]uid: 6678 topic_id: 1282 reply_id: 3570[/import]

Not really :wink:

I would separate out the different bits of the code and compile them separately to try to narrow down the issue, at least you will be able to submit some code with the bug report.

If you can narrow down the code block thats causing the issue I don’t mind having a go at debugging it.

The crashes ive seen like these are outside the error reporting capabilities of Corona as its not the actual lua code causing the crash but rather the corona engine attempting to do something it cant, possibly instructed to by lua. The simulator does sometimes quit in a similar way to the iPhone crash.

Are you trying to perform an operation on an object in an array that doesnt exist, like you just killed it enemy and removed it from the game but at some point in the future you are trying to perform an operation on it? [import]uid: 5354 topic_id: 1282 reply_id: 3571[/import]

Hmm, it doesn’t seem like that’s the case. Instead of going through a ton of code that I’m pretty positive was working, I’m having my friend test the exact same .app on his iPod Touch running 3.1. I’ll report back with what happens. [import]uid: 6678 topic_id: 1282 reply_id: 3574[/import]

Reading the OS4 documentation a while ago I did see apple had depreciated some core functions and added new ones to be used instead. That may be an issue. [import]uid: 5354 topic_id: 1282 reply_id: 3576[/import]

DFox, which Beta does your crash happen on? Beta 5? [import]uid: 26 topic_id: 1282 reply_id: 3579[/import]

Also, just to be clear, this isn’t “occasional” crashing. It’s automatic, during every single game, at what seems to a fairly random point during the beginning. I mean it’s probably not random but I can’t really determine when it’s happening. [import]uid: 6678 topic_id: 1282 reply_id: 3599[/import]

Yes, it’s beta 5. Also, I just heard back from my friend. He played the game for 20 minutes straight (iPhone OS 3) and no crashes. This confirms that it is the iOS4 causing the issues. [import]uid: 6678 topic_id: 1282 reply_id: 3598[/import]

Maybe related (guess not):

I have a crash every time I quit my application in iOS4 … But only if I use Game Edition Alpha. It does not happen when I build with Beta 5.

Crash Dump looks very similar to DFoxes one…

Thread 0 Crashed:
0 libSystem.B.dylib 0x000791d0 __kill + 8
1 libSystem.B.dylib 0x000791c0 kill + 4
2 libSystem.B.dylib 0x000791b2 raise + 10
3 libSystem.B.dylib 0x0008d6fa abort + 50
4 libSystem.B.dylib 0x0007b7fc __assert_rtn + 152
5 CoreGraphics 0x00018a1e color_space_state_dealloc + 22
6 CoreGraphics 0x0000182c color_space_state_release + 24
7 CoreGraphics 0x000189f0 cs_finalize + 108
8 CoreFoundation 0x000035dc _CFRelease + 160
9 CoreFoundation 0x00003502 CFRelease + 82
10 CoreGraphics 0x000021d0 CGColorSpaceRelease + 4
11 CoreGraphics 0x00020c2a image_provider_finalize + 14
[import]uid: 6928 topic_id: 1282 reply_id: 3601[/import]

DFox, the code is crashing in an area where we release the image data that’s no longer needed.

I modified Fishies to remove the bkgd in hopes of repro’ing your issue as this triggers the image data to be released. However, I’m not able to reproduce the crash.

Can you send your project files over to beta@anscamobile.com so we can repro the issue and determine the appropriate fix?

thanks,
walter
[import]uid: 26 topic_id: 1282 reply_id: 3605[/import]