Hi all,
I’d like some help to understand what is going on with my game.
I’m testing it on:
- iPhone 4s with iOS 5.0
- iPhone 3GS with iOS 4.3.5
and using Corona build 2012.744
On the iPhone 4s I don’t have any issue, while on the 3GS I have several, listed in the following:
- stuttering background music
It happens often in game start up and resume, but not only, and I’m using:
gameMusic = audio.loadStream(“game_theme.mp3”, {bufferSize=8192, maxQueueBuffers=12, startupBuffers=4, buffersQueuedPerUpdate=2})
The mp3 is encoded at 96kbps.
I’m suspecting this depends in some way from ads (I’m using inneractive) because I see some improvements when I disable them.
Is there anything I can do/investigate to solve this issue?
2) the app often quits while resuming from background
Here is the typical crashlog:
Incident Identifier: 60A5D03E-8E3C-4D9B-8D1D-88215EDAAB4F
CrashReporter Key: 8e084f52a2b8340b9008d671420ef85de31af4e8
Hardware Model: iPhone2,1
Process: match3 [1909]
Path: /var/mobile/Applications/1471F573-29A7-43B3-911E-EF89D1C43B2C/match3.app/match3
Identifier: match3
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-03-10 11:16:30.878 +0100
OS Version: iPhone OS 4.3.5 (8L1)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x8badf00d
Highlighted Thread: 0
Application Specific Information:
match3 failed to resume in time
Elapsed total CPU time (seconds): 9.560 (user 5.040, system 4.520), 94% CPU
Elapsed application CPU time (seconds): 3.390, 33% CPU
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem\_kernel.dylib 0x32856c00 mach\_msg\_trap + 20
1 libsystem\_kernel.dylib 0x32856758 mach\_msg + 44
2 QuartzCore 0x333801fe CA::Render::wait\_fences(unsigned int, unsigned long) + 42
3 QuartzCore 0x333572b8 CA::Context::commit\_transaction(CA::Transaction\*) + 456
4 QuartzCore 0x33356fd0 CA::Transaction::commit() + 184
5 QuartzCore 0x33362df8 CA::Transaction::flush() + 40
6 QuartzCore 0x33362dc6 +[CATransaction flush] + 22
7 UIKit 0x31bcdea0 PrepareAppAndDoSpringboardSnapshottingWithBlock + 544
8 UIKit 0x31bcdc66 -[UIApplication \_saveSnapshotWithName:] + 42
9 UIKit 0x31bccf10 -[UIApplication \_handleApplicationSuspend:eventInfo:] + 1028
10 UIKit 0x31b66af2 -[UIApplication handleEvent:withNewEvent:] + 1910
11 UIKit 0x31b6620e -[UIApplication sendEvent:] + 38
12 UIKit 0x31b65c4c \_UIApplicationHandleEvent + 5084
13 GraphicsServices 0x311a5e70 PurpleEventCallback + 660
14 GraphicsServices 0x311a5efa PurpleEventSignalCallback + 10
15 CoreFoundation 0x334e7a72 \_\_CFRUNLOOP\_IS\_CALLING\_OUT\_TO\_A\_SOURCE0\_PERFORM\_FUNCTION\_\_ + 6
16 CoreFoundation 0x334e9758 \_\_CFRunLoopDoSources0 + 376
17 CoreFoundation 0x334ea4e4 \_\_CFRunLoopRun + 224
18 CoreFoundation 0x3347aebc CFRunLoopRunSpecific + 224
19 CoreFoundation 0x3347adc4 CFRunLoopRunInMode + 52
20 GraphicsServices 0x311a5418 GSEventRunModal + 108
21 GraphicsServices 0x311a54c4 GSEventRun + 56
22 UIKit 0x31b90d62 -[UIApplication \_run] + 398
23 UIKit 0x31b8e800 UIApplicationMain + 664
24 match3 0x000edb5c 0xeb000 + 11100
25 match3 0x000edb14 0xeb000 + 11028
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem\_kernel.dylib 0x32859fbc kevent + 24
1 libdispatch.dylib 0x311d2032 \_dispatch\_mgr\_invoke + 706
2 libdispatch.dylib 0x311d303a \_dispatch\_queue\_invoke + 86
3 libdispatch.dylib 0x311d25ea \_dispatch\_worker\_thread2 + 186
4 libsystem\_c.dylib 0x3370258a \_pthread\_wqthread + 258
5 libsystem\_c.dylib 0x33702bbc start\_wqthread + 0
Thread 2 name: WebThread
Thread 2:
0 libsystem\_kernel.dylib 0x32856c00 mach\_msg\_trap + 20
1 libsystem\_kernel.dylib 0x32856758 mach\_msg + 44
2 CoreFoundation 0x334e82b8 \_\_CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x334ea562 \_\_CFRunLoopRun + 350
4 CoreFoundation 0x3347aebc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3347adc4 CFRunLoopRunInMode + 52
6 WebCore 0x3555c27e RunWebThread(void\*) + 382
7 libsystem\_c.dylib 0x3370130a \_pthread\_start + 242
8 libsystem\_c.dylib 0x33702bb4 thread\_start + 0
Thread 3:
0 libsystem\_kernel.dylib 0x32856c00 mach\_msg\_trap + 20
1 libsystem\_kernel.dylib 0x32856758 mach\_msg + 44
2 CoreFoundation 0x334e82b8 \_\_CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x334ea562 \_\_CFRunLoopRun + 350
4 CoreFoundation 0x3347aebc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3347adc4 CFRunLoopRunInMode + 52
6 Foundation 0x326be7f6 +[NSURLConnection(NSURLConnectionReallyInternal) \_resourceLoadLoop:] + 206
7 Foundation 0x326b1382 -[NSThread main] + 38
8 Foundation 0x327235c6 \_\_NSThread\_\_main\_\_ + 966
9 libsystem\_c.dylib 0x3370130a \_pthread\_start + 242
10 libsystem\_c.dylib 0x33702bb4 thread\_start + 0
Thread 4 name: AURemoteIO::IOThread
Thread 4:
0 libsystem\_kernel.dylib 0x32856c00 mach\_msg\_trap + 20
1 libsystem\_kernel.dylib 0x32856758 mach\_msg + 44
2 AudioToolbox 0x3361e824 AURemoteIO::IOThread::Run() + 80
3 AudioToolbox 0x33624342 AURemoteIO::IOThread::Entry(void\*) + 2
4 AudioToolbox 0x3355948a CAPThread::Entry(CAPThread\*) + 138
5 libsystem\_c.dylib 0x3370130a \_pthread\_start + 242
6 libsystem\_c.dylib 0x33702bb4 thread\_start + 0
Thread 5 name: com.apple.CFSocket.private
Thread 5:
0 libsystem\_kernel.dylib 0x32858c60 \_\_select + 20
1 CoreFoundation 0x334ed8f2 \_\_CFSocketManager + 582
2 libsystem\_c.dylib 0x3370130a \_pthread\_start + 242
3 libsystem\_c.dylib 0x33702bb4 thread\_start + 0
Thread 6:
0 libsystem\_kernel.dylib 0x328593ec \_\_workq\_kernreturn + 8
1 libsystem\_c.dylib 0x337026d8 \_pthread\_wqthread + 592
2 libsystem\_c.dylib 0x33702bbc start\_wqthread + 0
Unknown thread crashed with unknown flavor: 5, state\_count: 1
I also have a question about memory.
The average memory level of the game (with collectgarbage(‘count’)) is about 900, the maximum level 1300.
Are they good? Is there a maximum we should keep in mind to avoid memory warnings?
I’m particularly interested because I frequently see memory warning on the iPhone 3GS.
Thanks in advance!
[import]uid: 47531 topic_id: 23098 reply_id: 323098[/import]