Corona.243 crashing

Hello, with the new Corona.243 I get the following crash when I try to run the simulator on anything (in other words, all the sample apps), I didn’t have this problem with previous versions of Corona:

dyld: Library not loaded: @rpath/SDL_sound.framework/Versions/A/SDL_sound
Referenced from: /Applications/Corona.243/Corona Simulator.app/Contents/MacOS/Corona Simulator
Reason: no suitable image found. Did find:
/Applications/Corona.243/Corona Simulator.app/Contents/MacOS/…/Frameworks/SDL_sound.framework/Versions/A/SDL_sound: unknown required load command 0x80000022
/Applications/Corona.243/simulator: line 9: 79861 Trace/BPT trap “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*

I’m running Leopard.

Thanks
[import]uid: 4044 topic_id: 4299 reply_id: 304299[/import]

Sorry to hear that, we haven’t run across this error before. I’ve filed a bug for an engineer to take a look. I’ll post back with any further info.

Tim [import]uid: 8196 topic_id: 4299 reply_id: 13387[/import]

This is probably because of some subtle difference between Leopard and Snow Leopard. Are you running PowerPC or Intel? What is the full version of Leopard you are running?

It looks like you are running Corona Simulator through a shell script. Does the crash still happen if you launch Corona Simulator.app directly (by double clicking it) instead of the Corona Terminal or simulator scripts?
[import]uid: 7563 topic_id: 4299 reply_id: 13399[/import]

Full version is 10.5.8, with Intel Core 2 Duo. Crash still happens when launching Corona Simulator.app directly, same message - here’s the dump:
Process: Corona Simulator [80306]
Path: /Applications/Corona.243/Corona Simulator.app/Contents/MacOS/Corona Simulator
Identifier: com.anscamobile.Corona_Simulator
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: launchd [65]

Interval Since Last Report: 12312650 sec
Crashes Since Last Report: 87
Per-App Interval Since Last Report: 0 sec
Per-App Crashes Since Last Report: 5

Date/Time: 2010-12-08 11:51:44.311 -0800
OS Version: Mac OS X 10.5.8 (9L31a)
Report Version: 6
Anonymous UUID: F913E6EB-2AD4-4ED3-A0E8-00B53F34F0DA

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0

Dyld Error Message:
Library not loaded: @rpath/SDL_sound.framework/Versions/A/SDL_sound
Referenced from: /Applications/Corona.243/Corona Simulator.app/Contents/MacOS/Corona Simulator
Reason: no suitable image found. Did find:
/Applications/Corona.243/Corona Simulator.app/Contents/MacOS/…/Frameworks/SDL_sound.framework/Versions/A/SDL_sound: unknown required load command 0x80000022

Thanks
[import]uid: 4044 topic_id: 4299 reply_id: 13407[/import]

Actually, I think I have an idea of what the problem is now. I may have forgot to set the Deployment target on the SDL_sound.framework to support 10.5.

I rebuilt a new version of the framework and placed it here:
http://www.assembla.com/spaces/SDL_sound_CoreAudio/documents/cC_5s-aWmr4ij5eJe5cbCb/download/cC_5s-aWmr4ij5eJe5cbCb

However, it might be a long shot for you to try without us shipping a new version. Normally, I would tell you to open up the Corona Simulator.app bundle and in Frameworks, replace the SDL_sound.framework with the one at the above link since it is dynamically linked. But we digitally sign our app so if you tamper with it, it may not run.

So, assuming that fails, you might try copying the framework from the link to /Library/Frameworks on your system. This is a long shot though. There is a remote chance that this copy will work as a fallback when the first fails to load.

When we do our next release though, you should delete this framework from /Library/Frameworks

[import]uid: 7563 topic_id: 4299 reply_id: 13408[/import]

I should also ask, is there a reason you haven’t upgraded to 10.6? For $29, Apple will gladly give you a faster and more stable version of their operating system.

Internally, we have been considering dropping PowerPC and 10.5 support for numerous reasons.
[import]uid: 7563 topic_id: 4299 reply_id: 13410[/import]

Thanks! Your rebuilt version of the framework placed directly in the app bundle worked (so I guess the digital signing didn’t interfere with it).

I haven’t had a reason to upgrade to Snow Leopard until now, but I suppose that is how it always goes with versioning (not just Corona)… I tend to not upgrade when money is involved until I need to. And maybe more importantly, “if it ain’t broke, don’t fix it!” I’ve had my fair share of problems from “upgrading” working setups into non-working ones :smiley:

Thanks again [import]uid: 4044 topic_id: 4299 reply_id: 13415[/import]

thank you for this post about the sdl sound framework. I had to download & use the framework you provided here to be able to launch corona at all, just downloaded it earlier today.
thanks [import]uid: 12994 topic_id: 4299 reply_id: 14746[/import]