Building for Android (distribution) crashes Corona Simulator

I’ve tried build 644 and 652, and I get the same results. I’m selecting my private keystore, then when it starts trying to build, it shows me the Corona Simulator main menu for a second, then it crashes.

Building for android using the androiddebugkey works fine. Also, building for iOS works fine. The only problem seems to be when building for android and signing it for distribution.

Here’s an excerpt of the crash log:

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000008

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.anscamobile.Corona_Simulator 0x0000c295 0x1000 + 45717
1 com.apple.CoreFoundation 0x9bf2f091 -[NSObject performSelector:withObject:] + 65
2 com.apple.AppKit 0x942e4cb3 -[NSApplication sendAction:to:from:] + 232
3 com.apple.AppKit 0x942e4b90 -[NSControl sendAction:to:] + 102
4 com.apple.AppKit 0x942e4a93 -[NSCell _sendActionFrom:] + 160
5 com.apple.AppKit 0x942e3e50 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2295
6 com.apple.AppKit 0x94367351 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 501
7 com.apple.AppKit 0x942e2893 -[NSControl mouseDown:] + 943
8 com.apple.AppKit 0x942ab7b1 -[NSWindow sendEvent:] + 7533
9 com.apple.AppKit 0x942436ff -[NSApplication sendEvent:] + 4788
10 com.apple.AppKit 0x941d4c82 -[NSApplication run] + 1007
11 com.apple.AppKit 0x9446918a NSApplicationMain + 1054
12 com.anscamobile.Corona_Simulator 0x000032e5 0x1000 + 8933

Any help would be greatly appreciated, as I’m trying to ready my app for submission to the android market.

Thanks,
Dave [import]uid: 80784 topic_id: 17118 reply_id: 317118[/import]

I probably should have mentioned for completeness – I’m on a 2011 13" MacBook Air 1.7 Ghz with 4gb ram, running OS X Lion 10.7.2.

Thanks,
Dave [import]uid: 80784 topic_id: 17118 reply_id: 64381[/import]

I had a similar problem with Lion on my mac mini.
After uninstalling the latest version I decided to install the stable one. But no luck there.
The error still was coming up. In my case I had to uninstall the stable, reboot my mac and finally re-install the latest version (644 I think). It worked for me.
I’m just guessing this could help you, although I don’t really know what fixed it after all.
[import]uid: 12407 topic_id: 17118 reply_id: 64411[/import]

I tried your solution, but it didn’t work for me. :frowning:

I just tested something else – i built the ShapeTumbler sample project for android distribution and it worked fine! So now this is blowing my mind.

When it crashed this last time, I looked in the Corona terminal and saw this:

Invalid memory access of location 0x8 eip=0xc295
/Applications/CoronaSDK/simulator: line 9: 520 Bus error: 10 “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*

I’m not sure that’s helpful to anyone, but I’m at a loss. I’ve examined my build and config settings and there is really nothing out of the ordinary:

-- config.lua  
  
application =  
{  
 content =  
 {  
 width = 320,  
 height = 480,  
 scale = "letterbox",  
 audioPlayFrequency = 22050,  
 imageSuffix =  
 {  
 ["@1.5"] = 1.5,  
 ["@2"] = 1.8,  
 }  
 }  
}  
  
-- build.settings  
  
settings =   
{  
 orientation =  
 {  
 default = "landscapeRight",  
 supported =  
 {  
 "landscapeLeft", "landscapeRight"  
 }  
 },  
 iphone =  
 {  
 plist =  
 {  
 CFBundleIconFile = "Icon.png",  
 CFBundleIconFiles = {  
 "Icon.png" ,   
 "Icon@2x.png" ,   
 "Icon-72.png" ,   
 },  
 }  
 }  
}  

And again – building for android using the debug key is working fine. Anybody have any other ideas what’s going on?

Dave [import]uid: 80784 topic_id: 17118 reply_id: 64485[/import]

Well – I haven’t done anything today except cracked open my MacBook Air, and it let me build for distribution. I suspect there must have been a problem on the ansca side of things? At any rate, I’m happy it’s corrected!

Thanks,
Dave [import]uid: 80784 topic_id: 17118 reply_id: 64672[/import]