How to get better debug for IOS

Hi there,
may first small game does run fine on the simulator.
also no probs on android.

But it crashes on iOS after i refresh my game scene.
(all seems fine, till i touch the screen, than it crash)

i tried to debug with the Xcode console

and got

: index => 2 action => clicked
Aug 9 00:23:30 unknown UIKitApplication:ChippyGame[0x21cf][903] : Texture Memory: 0
Aug 9 00:23:34 unknown ReportCrash[907] : Formulating crash report for process ChippyGame[903]
Aug 9 00:23:34 unknown com.apple.launchd[1] : (UIKitApplication:ChippyGame[0x21cf]) Job appears to have crashed: Bus error: 10
Aug 9 00:23:34 unknown SpringBoard[30] : Application 'Chippy Game' exited abnormally with signal 10: Bus error: 10
Aug 9 00:23:34 unknown ReportCrash[907] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/ChippyGame_2011-08-09-002333_Chris-iPhone4.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0

thats all.... how could i get a better report?

thx
chris

double post !

you posted this on the New Users Start here ... tsk tsk..

/var/mobile/Library/Logs/CrashReporter/Chippy << look under there or the console log

.c

hi carlos,
sorry for double post and thanks for fast reply!

the report i did sent was from the console :) thats all i got.

and /var/mobile/Library ....

i can't find it on my Mac i search with spotlight and in the
/var on the mac is no /mobile/Library
... is it maybe saved on my mobile (if so how could i reach it.. its not jailbreaked)

feel a bit lost now and debugging by always uploading and testing on device is quit a longtime job :)

hope you can help

greets and thx
chris

what happens when you run in the xcode simulator?

.c

wohh, now you got me :)

i never did it run on the Xcode simulator... to be true, i don't even know how to do!

I always copied that .app in my iTunes and synchronized with my devices.
than when the app was running i watched with Xcode console for the output
i got because i implemented in my .lua files

io.output():setvbuf("no")

...
the output from the Xcode console i posted into my first post here in the forum
now i found a way to copy that plist crash log from my phone to my mac (also by synchronizing)

result: a lot of undefined hex codes and that

CrashReporter Key: f478cd6e876c174399bd1c5d4cf149a2b617ac30
Hardware Model: iPhone3,1
Process: ChippyGame [903]
Path: /var/mobile/Applications/6AFA9F07-9CBE-4BC6-A299-C1280B438CFC/ChippyGame.app/ChippyGame
Identifier: ChippyGame
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]

Date/Time: 2011-08-09 00:23:33.992 +0300
OS Version: iPhone OS 4.3.5 (8L1)
Report Version: 104

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

maybe you can see anything, i don't.

you could let me know how to test in Xcode Simulator and I will tell you what I get :)

thx for all your help

chris

build->xcode simulator

ok.. now i feel a bit dump... i never saw that build -> Xcode simulator :)

thanks for your help... it started now in the simulator
and also does crash there (fine in Corona simulator and on android devices)

where would be the console output from the Xcode simulator?
i don't see a simulator console in xcode organizer

hmmm, what next... i am willed to provide whatever is needed /smile/

xcode-run->console

xcode-run->console

app in iOS simulator,

console output:

09.08.11 02:21:08,794 UIKitApplication:ChippyGame[0x5e6b]: index => 1 action => clicked
09.08.11 02:21:08,794 UIKitApplication:ChippyGame[0x5e6b]: Texture Memory: 0
09.08.11 02:21:11,593 com.apple.launchd.peruser.501: (UIKitApplication:ChippyGame[0x5e6b][17219]) Job appears to have crashed: Segmentation fault: 11
09.08.11 02:21:11,594 SpringBoard: Application 'Chippy Game' exited abnormally with signal 11: Segmentation fault: 11
09.08.11 02:21:11,596 SpringBoard: Error deserializing wallpaper image: Error Domain=CPBitmapErrorDomain Code=0 "The operation couldn’t be completed. (CPBitmapErrorDomain error 0 - No data provided to CPBitmapCreateImagesFromData)" UserInfo=0x706b080 {NSDescription=No data provided to CPBitmapCreateImagesFromData}
09.08.11 02:21:11,699 ReportCrash: Saved crash report for ChippyGame[17219] version ??? (???) to /Users/chris/Library/Logs/DiagnosticReports/ChippyGame_2011-08-09-022111_Chris-iMac.crash

>>

Process: ChippyGame [17219]
Path: /Users/USER/Library/Application Support/iPhone Simulator/*/ChippyGame.app/ChippyGame
Identifier: ChippyGame
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: launchd [273]

Date/Time: 2011-08-09 02:21:10.804 +0300
OS Version: Mac OS X 10.7 (11A511)
Report Version: 9

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000cc69d064

VM Regions Near 0xcc69d064:
Stack 00000000bf800000-00000000c0000000 [ 8192K] rw-/rwx SM=COW
-->
Submap 00000000ffff0000-00000000ffff2000 r-x/r-x process-only submap

Application Specific Information:
iPhone Simulator 238.2, iPhone OS 4.3.2 (iPhone/8H7)
iPhone Simulator 238.2, iPhone OS 4.3.2 (iPhone/8H7)

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ChippyGame 0x001afcf6 0x1000 + 1764598
1 ChippyGame 0x001b4cfd 0x1000 + 1785085
2 ChippyGame 0x001b4f2c 0x1000 + 1785644
3 ChippyGame 0x001d5c28 0x1000 + 1920040
4 ChippyGame 0x00013165 0x1000 + 74085
5 ChippyGame 0x0001365d 0x1000 + 75357
6 UIKit 0x0193b0f4 forwardMethod2 + 92
7 UIKit 0x0193b0f4 forwardMethod2 + 92
8 UIKit 0x01891d41 -[UIWindow _sendTouchesForEvent:] + 395
9 UIKit 0x01872c37 -[UIApplication sendEvent:] + 447
10 UIKit 0x01877f2e _UIApplicationHandleEvent + 7576
11 GraphicsServices 0x02853992 PurpleEventCallback + 1550
12 CoreFoundation 0x02255944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
13 CoreFoundation 0x021b5cf7 __CFRunLoopDoSource1 + 215
14 CoreFoundation 0x021b2f83 __CFRunLoopRun + 979
15 CoreFoundation 0x021b2840 CFRunLoopRunSpecific + 208
16 CoreFoundation 0x021b2761 CFRunLoopRunInMode + 97
17 GraphicsServices 0x028521c4 GSEventRunModal + 217
18 GraphicsServices 0x02852289 GSEventRun + 115
19 UIKit 0x0187bc93 UIApplicationMain + 1160
20 ChippyGame 0x000030b5 0x1000 + 8373
21 ChippyGame 0x00003055 0x1000 + 8277

are you building for iPad or iPhone -

are you building universal?

.c

last test was always universal

now i tested with only iPhone

and:

same result.. crash

how big r your assets? can you put them on a dropbox somewhere? or ftp site?

don't email me if they are bigger than 5mb

cicaza at you know where dot com

.c

if i zip my project its 2 mb

so i would just email it to you?

fine? just confirm!

thx

send .

.c

just a sec... it looks i found it !!

a simple

print "moved" --for console output

made the problem. it came called when i dragged an object.

it did not affected android, but iOS has probs with it.

for me it would be solved.... but should it useful for ur debugging
i still can send you my code.

greets
chris

if working - no need - i can move to something else - glad to hear it works

.c

shhhhhh......

out commenting that print ("moved')
did only helped for the iOS Simulator

on real device still crash...

ok... zip file is on the way.. in a min

greets
chris

views:1727 update:2011/10/11 22:13:38
corona forums © 2003-2011