Corona builds and iOS 4.3 crashes

I have an iPad app live on iTunes that users are reporting crashes on start. These users are all using iOS 4.3. I am seeing intermittent crashes myself on my devices running 4.3 but not 4.2.1 and earlier. I have built the app with the most recent Corona build as well as older versions that I trust more. Is anyone else seeing crashes or bugs on 4.3 devices? I’d like to update my iTunes app so my customers stop posting 1 star ratings but I need some details on if there’s a Corona side issue.

[import]uid: 21456 topic_id: 8445 reply_id: 308445[/import]

Well this is worrisome. I’ve updated my phone to 4.3.1 and my apps aren’t crashing, but then I haven’t played long enough to notice intermittent crashes.

Make sure to report the bug to Ansca; links at the bottom of this page:
http://www.anscamobile.com/community/ [import]uid: 12108 topic_id: 8445 reply_id: 30304[/import]

My app was rejected today because it crashes on 4.3.1 :frowning: It works fine on 3.x, 4.0, 4.1 and 4.2. I used Corona SDK build 312.

Can someone from Ansca please comment on this? I am basically stuck with a finished game and cannot upload it to Appstore :frowning: [import]uid: 15443 topic_id: 8445 reply_id: 30721[/import]

Wow sorry to hear that Vamarius. I hope Ansca responds soon and can help you out. Couple of things I did not sure if they’re helpful is that my audio was causing iOS Memory warnings. I was able to clear those. I also ran my app through the iOS Simulator as well as Corona’s and looked at both terminal and Xcode console to see if any other warnings appeared. Good luck getting the app up. Do they allow you to fix the binary and re-upload? [import]uid: 21456 topic_id: 8445 reply_id: 30727[/import]

The app is in “Rejected” mode and I have again the “Ready to upload binary” button active, so not sure if they will place the new binary (whenever I am ready to upload it) in the normal queue or give it high priority, no mentioning about this in their email.

I am using Facebook, no OpenFeint. Also physics engine, but nothing special. Directory class 1.2, UI and that’s it. I am using the old media.playEventSound, can this be an issue on 4.3.1 ?

Any ideas? [import]uid: 15443 topic_id: 8445 reply_id: 30730[/import]

Ansca has been trying to push developers away from it’s Media.Event api in favor of the Audio api. This is what it says at the bottom of the Media Event Sound page from Ansca “Note: It is recommended that the newer Corona Audio APIs, using openAL, be used for playing back audio. http://developer.anscamobile.com/reference/audio

I have myself experienced some weird issues with it (media sounds) on 4.3 where there was no issue on 4.2.1. Also I believe that if you’re using an audio format that needs to be software decoded by iOS that can take up memory. Being that you’re using media.event your sounds might be short alerts but if they’re long you might want to use the audio api. This might also be helpful in regards to best sound practices on iOS to avoid having audio issues.

Sounds like you upload the binary again though. If it they don’t clear it out maybe the button to reject it yourself is still available thereby allowing you to upload it again faster. Good luck.

http://www.sparrow-framework.org/2010/06/sound-on-ios-best-practices/ [import]uid: 21456 topic_id: 8445 reply_id: 30736[/import]

Please make sure to submit a bug with all the requested information here:
http://developer.anscamobile.com/content/bug-submission

If it isn’t in our bug database, we may never know about these problems or lose track of them.

[import]uid: 7563 topic_id: 8445 reply_id: 30834[/import]

Strangest thing: I tried today on an iPod Touch on 4.1.3 and it works fine, no crashes. I would fill in a bug, but no idea how to reproduce it, which piece of code to look at or what actually causes it. I can only show you the crash log that Apple sent, any ideas?

“We found that your app crashed when launched on iPhone 4 running iOS 4.3.1”

[code]
Hardware Model: iPhone3,1
Code Type: ARM (Native)
Parent Process: launchd [1]

Date/Time: 2011-04-04 11:54:00.985 -0700
OS Version: iPhone OS 4.3.1 (8G4)
Report Version: 104

Exception Type: 00000020
Exception Codes: 0x8badf00d
Highlighted Thread: 0

Application Specific Information:
MyApp failed to launch in time

Elapsed total CPU time (seconds): 2.910 (user 1.480, system 1.430), 14% CPU
Elapsed application CPU time (seconds): 0.260, 1% CPU

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x34d54c00 0x34d45000 + 64512
1 libsystem_kernel.dylib 0x34d54758 0x34d45000 + 63320
2 AudioToolbox 0x3095d6ae 0x3094f000 + 59054
3 AudioToolbox 0x3095d316 0x3094f000 + 58134
4 AudioToolbox 0x30a38150 0x3094f000 + 954704
5 MyApp 0x0006e8a0 0x1000 + 448672
6 MyApp 0x0006ea28 0x1000 + 449064
7 MyApp 0x000714f4 0x1000 + 460020
8 MyApp 0x0000f428 0x1000 + 58408
9 MyApp 0x0000ed5c 0x1000 + 56668
10 MyApp 0x0000fc80 0x1000 + 60544
11 UIKit 0x3565e856 0x35629000 + 219222
12 UIKit 0x35658b5e 0x35629000 + 195422
13 UIKit 0x3562d7d0 0x35629000 + 18384
14 UIKit 0x3562d20e 0x35629000 + 16910
15 UIKit 0x3562cc4c 0x35629000 + 15436
16 GraphicsServices 0x35410e70 0x3540c000 + 20080
17 CoreFoundation 0x35a5da90 0x359e8000 + 481936
18 CoreFoundation 0x35a5f838 0x359e8000 + 489528
19 CoreFoundation 0x35a60606 0x359e8000 + 493062
20 CoreFoundation 0x359f0ebc 0x359e8000 + 36540
21 CoreFoundation 0x359f0dc4 0x359e8000 + 36292
22 UIKit 0x35657d42 0x35629000 + 191810
23 UIKit 0x35655800 0x35629000 + 182272
24 MyApp 0x000040c2 0x1000 + 12482
25 MyApp 0x0000408c 0x1000 + 12428

Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x34d57fbc 0x34d45000 + 77756
1 libdispatch.dylib 0x32d5c094 0x32d56000 + 24724
2 libdispatch.dylib 0x32d5d04a 0x32d56000 + 28746
3 libdispatch.dylib 0x32d5c60a 0x32d56000 + 26122
4 libsystem_c.dylib 0x329af58a 0x3297b000 + 214410
5 libsystem_c.dylib 0x329afbbc 0x3297b000 + 215996

Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x34d54c00 0x34d45000 + 64512
1 libsystem_kernel.dylib 0x34d54758 0x34d45000 + 63320
2 CoreFoundation 0x35a5e2b8 0x359e8000 + 484024
3 CoreFoundation 0x35a60562 0x359e8000 + 492898
4 CoreFoundation 0x359f0ebc 0x359e8000 + 36540
5 CoreFoundation 0x359f0dc4 0x359e8000 + 36292
6 WebCore 0x33b58292 0x33b52000 + 25234
7 libsystem_c.dylib 0x329ae30a 0x3297b000 + 209674
8 libsystem_c.dylib 0x329afbb4 0x3297b000 + 215988

Unknown thread crashed with unknown flavor: 5, state_count: 1 [import]uid: 15443 topic_id: 8445 reply_id: 30853[/import]

“MyApp failed to launch in time”

Looks like something caused the app to take to long to load and it was killed. [import]uid: 7563 topic_id: 8445 reply_id: 30856[/import]