strobe
December 17, 2011, 8:49pm
#1
I try run helloword (latest github version) on ipod 2g with iOS 4.2.1 but it crashing on start.
Tests app running normally.
&
In cocos2d-1.0.1-x-0.10.0 version HelloWorld.mkb has error:
(…/) instead of (…/Classes)
and project compiling with many errors.
gzito
December 18, 2011, 1:26am
#2
Hi,
version 1.0.1-x-0.10.0 for Marmalade (a.k.a. Airplay SDK) is broken.
Latest version of HelloWorld on github has “…/Classes” in the mkb (https://github.com/cocos2d/cocos2d-x/blob/master/HelloWorld/marmalade/HelloWorld.mkb )
and runs fine on simulator and iPhone 3gs, provided that you create a “fonts” folder under HelloWorld/Resource and copy “Marker Felt.ttf” file into it.
strobe
December 18, 2011, 1:49am
#3
It running fine on simulator but crashed on device (github version). You use latest marmalade version 5.2 or other?
I try migrate my app that normally running with old 0.9x versions to github version, but it crashing. After I try run HelloWorld and it also crahing.
In Log dir appear only LowMemory-2011-12-18-040131.log :
Incident Identifier: 11BD2F68-3213-4843-B793-C46DC0E41960
CrashReporter Key: 714e959c8b77df555a3c3af6cc75b1878a49a372
Hardware Model: iPod2,1
OS Version: iPhone OS 4.2.1 (8C148)
Kernel Version: Darwin Kernel Version 10.4.0: Wed Oct 20 20:06:26 PDT 2010; root:xnu-1504.58.28~3/RELEASE_ARM_S5L8720X
Date: 2011-12-18 04:01:31 +0600
Time since snapshot: 6167 ms
Free pages: 248
Wired pages: 7050
Purgeable pages: 0
Largest process: cocos2dxHello
Processes
Name UUID Count resident pages
cocos2dxHello <17df26f56baa213f03465191468e9238> 16335 (jettisoned) (active)
ReportCrash 199
installd <74ba39313a7caa9c9ec3e9ef44d995f5> 292
lockbot <5f82f8905e040ac530a7177c16881863> 82
notification_pro <09713ae3ffd005129c959829885a3865> 91
afcd <2f24ad8fe1a0e447f4bb6f0784d13bba> 71
afcd <2f24ad8fe1a0e447f4bb6f0784d13bba> 69
afcd <2f24ad8fe1a0e447f4bb6f0784d13bba> 98
ptpd 290
lsd <71982b53b1eda4b01ab414531f15f794> 183
apsd 154
notifyd <03a00da2d3f506e8adcc6c39213308b9> 89
BTServer 130
CommCenter <3bd235ba820efd0f5b82d0662f737d3b> 191
SpringBoard <66affaffb6936ce0e0b7102f58ee0229> 2088 (active)
accessoryd 115
configd <90d4adfe5cb517527952874258944b29> 300
fairplayd.N72 82
mDNSResponder <17e948a218f87a2493804ecb69fe4953> 132
mediaserverd 466
lockdownd <7e97374ca1655fad28fd80247813ee7c> 265
syslogd 92
punchd 89
**End**
gzito
December 18, 2011, 2:33pm
#4
I’m using Marmalade 5.2.
I’m sorry, I don’t know why you’re experiencing crashes; HelloWorld is working right for me.
It could be helpful debugging on ARM emulator (QEMU), you might have more info about crash.
Regards,
G.
strobe
December 19, 2011, 11:38pm
#5
Unfortunately, in arm emulator all running normally.
I got some additional log from iPhone Configuration Utility:
Tue Dec 20 06:43:34 iPod-eugene SpringBoard[29] : MultitouchHID(21bb50) uilock state: 1 -> 0
Tue Dec 20 06:43:36 iPod-eugene MobileStorageMounter[2588] : (0x3e1b38b8) platform_supports_camera_import: Platform is NOT configured for camera import
Tue Dec 20 06:43:38 iPod-eugene kernel[0] : punchd[2589] Builtin profile: container (sandbox)
Tue Dec 20 06:43:38 iPod-eugene kernel[0] : punchd[2589] Container: /private/var/mobile/Applications/E3592D8D-8393-4898-A120-81724C738971 [69] (sandbox)
Tue Dec 20 06:43:39 iPod-eugene cocos2dxHello[2589] : Marmalade v5.2.0: main thread
Tue Dec 20 06:43:39 iPod-eugene SpringBoard[29] : Unable to get entitlements for client task. Error: Error Domain=NSMachErrorDomain Code=-536870160 "The operation couldnt be completed. (Mach error -536870160 - (iokit/common) data was not found)" UserInfo=0x3e656c0 {}
Tue Dec 20 06:43:39 iPod-eugene SpringBoard[29] : No valid 'aps-environment' entitlement string found for application 'cocos2dxHello': (null). Notifications will not be delivered.
Tue Dec 20 06:43:39 iPod-eugene cocos2dxHello[2589] : loader thread r9 = 0x00000000
Tue Dec 20 06:43:40 iPod-eugene SpringBoard[29] : Received memory warning. Level=1
Tue Dec 20 06:43:40 iPod-eugene cocos2dxHello[2589] : Received memory warning. Level=1
Tue Dec 20 06:43:40 iPod-eugene MobileMail[2516] : Received memory warning. Level=1
Tue Dec 20 06:43:40 iPod-eugene configd[27] : jetsam: kernel memory event (91), free: 368, active: 1606, inactive: 975, purgeable: 0, wired: 7223
Tue Dec 20 06:43:40 iPod-eugene configd[27] : jetsam: kernel termination snapshot being created
Tue Dec 20 06:43:41 iPod-eugene com.apple.launchd[1] (UIKitApplication:com.strobe.cocos2dxHello[0x883f][2589]) : (UIKitApplication:com.strobe.cocos2dxHello[0x883f]) Exited: Killed
Tue Dec 20 06:43:41 iPod-eugene com.apple.launchd[1] (UIKitApplication:com.apple.mobilemail[0x239c][2516]) : (UIKitApplication:com.apple.mobilemail[0x239c]) Exited: Killed
Tue Dec 20 06:43:41 iPod-eugene SpringBoard[29] : Application 'cocos2dxHello' exited abnormally with signal 9: Killed
Tue Dec 20 06:43:41 iPod-eugene SpringBoard[29] : Application 'Mail' exited abnormally with signal 9: Killed
Tue Dec 20 06:43:42 iPod-eugene ReportCrash[2590] : Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2011-12-20-064342.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Tue Dec 20 06:43:46 iPod-eugene MobileStorageMounter[2588] : (0x3e1b38b8) idle_timer_callback: Exiting after idle timeout
Tue Dec 20 06:44:12 iPod-eugene lockdownd[21] : 2ff68000 handle_connection: Could not receive USB message #6 from unknown. Killing connection
Tue Dec 20 06:44:12 iPod-eugene com.apple.mobile.lockdown[21] : Could not receive size of message
Tue Dec 20 06:44:41 iPod-eugene SpringBoard[29] : MultitouchHID(21bb50) uilock state: 0 -> 1
and I found article with problem like my in marmalade forum:
http://www.madewithmarmalade.com/node/1944
gzito
December 20, 2011, 2:07am
#6
Hi Evgeniy,
it looks like the device is running out of memory, I noticed that also SpringBoard & MobileMail apps received memory warning! iPod 2g has 128MB RAM, HelloWord icf setting defaults to 64MB, that is definitely too much.
Please, can you try to lower memory size, i.e. modify cocos2d-x\HelloWorld\Resource\app.icf as follows:
// 4MB
MemSize=4000000
Before running the test, ensure to close all opened apps (holding the home button for about 5 seconds)
Please, let me know.
G.
strobe
December 20, 2011, 2:20am
#7
thank you so much:)
Yes this tip working.
I guess this solution it would be nice to add to FAQ.