Corona Simulator crashes after Open for Build

Hi folks,

everytime I do a Open for Build, the Corona Simulator crashes after creating the app.
I am running XCode 3.1.4
Component versions
Xcode IDE: 1203.0
Xcode Core: 1204.0
ToolSupport: 1186.0
This is the crash report i get:

_Process: Corona Simulator [1741]
Path: /Applications/Corona/Corona Simulator.app/Contents/MacOS/Corona Simulator
Identifier: com.anscamobile.Corona_Simulator
Version: ??? (1.0)
Code Type: X86 (Native)
Parent Process: launchd [320]

Interval Since Last Report: 5246091 sec
Crashes Since Last Report: 64
Per-App Interval Since Last Report: 29736 sec
Per-App Crashes Since Last Report: 16

Date/Time: 2010-04-05 11:04:41.502 +0200
OS Version: Mac OS X 10.5.8 (9L31a)
Report Version: 6
Anonymous UUID: 80590F36-D58A-446E-9AFA-D1329F34D529

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

Thread 0 Crashed:
0 libobjc.A.dylib 0x9092e68c objc_msgSend + 28
1 com.apple.Foundation 0x9316042a _nsnote_callback + 106
2 com.apple.CoreFoundation 0x9510447a __CFXNotificationPost + 362
3 com.apple.CoreFoundation 0x95104753 _CFXNotificationPostNotification + 179
4 com.apple.Foundation 0x9315d680 -[NSNotificationCenter postNotificationName:object:userInfo:] + 128
5 com.apple.Foundation 0x93166ed8 -[NSNotificationCenter postNotificationName:object:] + 56
6 com.apple.AppKit 0x96670c97 -[NSNavView _handleSelectionChanged] + 77
7 com.apple.Foundation 0x9316042a _nsnote_callback + 106 [import]uid: 5712 topic_id: 723 reply_id: 300723[/import]_

Couple of troubleshooting questions:

Are you using a hackintosh? ** We don’t support hackintoshes.
is the time of your computer synched to apple clock? (see preferences panel synch clock)
Are there any non roman characters in your app name? like ñ ü ?
Carlos
[import]uid: 24 topic_id: 723 reply_id: 1440[/import]

Hi Carlos,

  1. I am using a regular Imac build in 2008.
  2. My time is synced with time.euro.apple.com
    We recently had the summer saving time switch.
  3. No non roman characters in the app name.

Michael [import]uid: 5712 topic_id: 723 reply_id: 1447[/import]

Can you run the “corona terminal” and look at the output in the window and fwd that to me?

Are you on snowleapord?

Carlos [import]uid: 24 topic_id: 723 reply_id: 1449[/import]

No, I am running 10.5.8, that’s Leopard I think.

Here are with the output:

Last login: Mon Apr 5 23:22:07 on ttys001
/Applications/Corona/Corona\ Terminal ; exit;
noname:~ mikehart$ /Applications/Corona/Corona\ Terminal ; exit;
adding: embedded.mobileprovision (deflated 31%)
adding: main.lu (deflated 47%)
adding: sprite.lu (deflated 58%)
adding: ui.lu (deflated 50%)
Archive: /var/folders/3X/3XzYIlnAGwmNYuZ64m-cwU+++TI/-Tmp-//1270504019/output.zip
creating: /Users/mikehart/Desktop/CometCrusher.app/
inflating: /Users/mikehart/Desktop/CometCrusher.app/CometCrusher
linking: /Users/mikehart/Desktop/CometCrusher.app/CodeResources -> _CodeSignature/CodeResources
inflating: /Users/mikehart/Desktop/CometCrusher.app/embedded.mobileprovision
inflating: /Users/mikehart/Desktop/CometCrusher.app/MainWindow.nib
creating: /Users/mikehart/Desktop/CometCrusher.app/_CodeSignature/
inflating: /Users/mikehart/Desktop/CometCrusher.app/_CodeSignature/CodeResources
inflating: /Users/mikehart/Desktop/CometCrusher.app/ResourceRules.plist
inflating: /Users/mikehart/Desktop/CometCrusher.app/resource.car
inflating: /Users/mikehart/Desktop/CometCrusher.app/Info.plist
extracting: /Users/mikehart/Desktop/CometCrusher.app/PkgInfo
finishing deferred symbolic links:

/Users/mikehart/Desktop/CometCrusher.app: replacing invalid existing signature
/Users/mikehart/Desktop/CometCrusher.app: signed bundle with Mach-O thin (armv6) [com.whiteskygames.CometCrusher]
/Applications/Corona/Corona Terminal: line 9: 2280 Bus error “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*
logout

[Process completed]
[import]uid: 5712 topic_id: 723 reply_id: 1450[/import]

I think we may know what the problem is… is there a way you could send us the project so we can try it out here?

carlos [import]uid: 24 topic_id: 723 reply_id: 1452[/import]

Sure I can. Which email address should I sent it to? [import]uid: 5712 topic_id: 723 reply_id: 1459[/import]

support@anscamobile.com

:slight_smile:

c [import]uid: 24 topic_id: 723 reply_id: 1468[/import]

Ok, email was sent.

Michael [import]uid: 5712 topic_id: 723 reply_id: 1469[/import]

Looking into it [import]uid: 24 topic_id: 723 reply_id: 1473[/import]

I believe this has been fixed, but I’m entering it as bug #117 so we can verify that. [import]uid: 3007 topic_id: 723 reply_id: 1988[/import]

Mike

We believe that we have this bug is closed.

Is this still happening for you?

Carlos [import]uid: 24 topic_id: 723 reply_id: 2180[/import]

Hi Mike and Carlos,
I am experiencing the same issue.

When I am building for an iPad the Simulator crashes after the build is done (and works ok) with the following error message:


/Applications/Corona2.0-Beta7/Corona Terminal: line 9: 81326 Segmentation fault “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*
logout

If I do the same build for iPhone it ends up with the following error, but build is ok:


/Applications/Corona2.0-Beta7/Corona Terminal: line 9: 90456 Bus error “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*
logout

After the Android build it generates the following one:

BUILD SUCCESSFUL
Total time: 25 seconds
Invalid memory access of location 0x31 eip=0x94859ed7

/Applications/Corona2.0-Beta7/Corona Terminal: line 9: 92550 Bus error “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*
logout

[Process completed]

I am on Snow Leopard.
I hope it helps to fix it.

Regards,
Dusan
[import]uid: 5411 topic_id: 723 reply_id: 5252[/import]

Can you reproduce this in beta8?

Can you send a system profiler save (xml is fine) to support @ anscamobile . com if you can. [import]uid: 3 topic_id: 723 reply_id: 5349[/import]

Great, it looks like that it’s ok now.
I am able to build it for all three devices (Nexus One, iPhone and iPad) in Beta8 without any error during the building process.

The only problem that am experiencing and not related to this issue is shifted screen on Android device (and Simulator too) when I use for Android the following property in config file:
application = {
content = {
width= 320,
height= 480,
scale = “letterbox”
}
}

Then the whole screen is shifted 40 pixels down. When I use image of 320x534 px as a background it works properly in Beta6 for Android (480x800) but not in Beta8. I guess it’s because changes in automatic scaling behavior.
So I would need to change all graphics/code or to use old Beta6.

Or do you know simple trick that would fix it?

Overall Beta8 is really big improvement and thank you so much for all fixes and features! :slight_smile:

Dusan
[import]uid: 5411 topic_id: 723 reply_id: 5354[/import]

@dpavlica – that new behavior is by design: all the content scaling modes now default to centering rather than top-left alignment.

Therefore, when “letterbox” scaling from iPhone to Droid, you’ll get the extra space split between top and bottom, rather than of all the extra spacing being at the bottom.

But! Now you can CHOOSE the alignment when scaling, using new xAlign and yAlign properties in config.lua. So you can get your old top-left alignment behavior back again, without rewriting your code at all.

However, looks like we still need to update the docs ( http://developer.anscamobile.com/content/configuring-projects#Dynamic_Content_Scaling ), so I’ll update this thread shortly when the docs are in place. [import]uid: 3007 topic_id: 723 reply_id: 5356[/import]

That’s exactly what I needed and it works as a magic! (yAlign = “top” parameter http://developer.anscamobile.com/content/application-configuration-options)
I should read release notes more carefully next time :wink:

Now I have the same code with a bit of adjustment running great on all three devices (Android, iPhone and iPad).

You are awesome guys! :slight_smile:

Thanks,
Dusan
[import]uid: 5411 topic_id: 723 reply_id: 5357[/import]

To be true, since about 6-8 weeks I didn’t do anything serious in Corona. I’ll let you know if that problem still exists for me. [import]uid: 5712 topic_id: 723 reply_id: 5360[/import]