app crashes on device - works fine on corona

My app works fine on the Corona simulator but crashes on the device.

this is the error log:

Apr 11 16:33:43 unknown amfid[318] <error>: entitlement 'application-identifier' has value not permitted by a provisioning profile<br>Apr 11 16:33:44 unknown UIKitApplication:NavTrainer[0xabf3][317] <notice>: AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm' (0x00000C2C) 8.24-bit little-endian signed integer, deinterleaved<br>Apr 11 16:33:44 unknown kernel[0] <debug>: launchd[317] Builtin profile: container (sandbox)<br>Apr 11 16:33:44 unknown kernel[0] <debug>: launchd[317] Container: /private/var/mobile/Applications/20986498-01D4-4A2F-BEF2-22FA3CA5E215 [69] (sandbox)<br>

I isolated the problem to an area of my code where a sprite sheet is created:

<br>require "sprite"<br>local data = require ("windsock").getSpriteSheetData()<br><br>local sheet = sprite.newSpriteSheetFromData("windsock.png", data)<br>local set = sprite.newSpriteSet (sheet, 1, 12)<br>local windsock = sprite.newSprite(set)<br><br>windsock:play()<br>

when I replace that block of code with a simple rectangle display object instead of the sprite, the app does not crash, however I need the object to be animated.

I read that these problems often occur because of IOS being case-sensitive. I checked the spelling over and over of windsock.png and windsock.lua (created with imagePacker) and they are identical in case to my code.

Help anyone?
thanks [import]uid: 33608 topic_id: 8786 reply_id: 308786[/import]

what does your console output says?

need more description. can you get as much desc as you can?

thanks

c [import]uid: 24 topic_id: 8786 reply_id: 32029[/import]

Hi Carlos,
The Xcode console output is included in the top of my original post. Another
Thing I can probably add is that I use the director class for this app. Don’t know if
it has any relation to the problem. When I entirely replace the above block of code to

windsock = display.newRect(0,0,70,140)

Everything works fine (although now it’s not my sprite)

Running on the new (2011) macbook pro i7 13in if it helps.

App loads but freezes when the scene with the above is called. [import]uid: 33608 topic_id: 8786 reply_id: 32040[/import]

if those 8 lines causes the crash can you send me the 8 lines and the winsock (sprite) to my email

cicaza at you know were dot com

c [import]uid: 24 topic_id: 8786 reply_id: 32041[/import]

Just boarding an international flight will defiantly send it to you tommorow.
Thanks for the help! [import]uid: 33608 topic_id: 8786 reply_id: 32044[/import]

Problem solved and was completely unrelated to the sprite library.

I probably got lucky yesterday when it worked for the one time after I changed the code as described above. However, that was not a solution to the problem as it happened again. I finally found that it was a director transition conflicting with a transition.to call immediately when the screen loads.

I removed the transition.to and everything works fine. Sorry if I lead you in the wrong direction, Carlos, and thanks again for offering your help.
Amir [import]uid: 33608 topic_id: 8786 reply_id: 32167[/import]

Same problem, crashing on device

 lettersTarget.y = 558  
 lettersTarget.x = (\_W - lettersTarget.width) \* 0.5 - 10  
 lettersTarget.y = 800  
 transition.to(lettersTarget, {y=558, time=600, delay=0})  

This code is not crashing:

 --lettersTarget.y = 558  
 lettersTarget.x = (\_W - lettersTarget.width) \* 0.5 - 10  
 lettersTarget.y = 800  
 transition.to(lettersTarget, {y=558, time=600, delay=0})  

(commented out first assigment of .y property)

why does this happen?
[import]uid: 10077 topic_id: 8786 reply_id: 93279[/import]