Simulator Crashing

Just today my simulator has started crashing shortly after loading a project.  It will load the project fine, then crash about 2-3 seconds after.  It started doing this after I played around with the iCloud plug-in, but now it will crash on any project I load whether it has iCloud or not.  I’ve uninstalled Corona, and downloaded the newest daily build, and have the same result.

No error message, just “Corona Simulator has stopped working”.  Does this on sample projects, any of my good projects, or my new iCloud test project.

Any ideas?

Can you look in your Mac’s “Console” app to see if there are any clues about why it’s crashing? Is there anything you can catch in the console window Corona SDK starts up just before it closes?

This is on a PC, is there a log file on there I can check?  Nothing in the console window other than normal info, no error message at all.

Have you rebooted your machine?  Did you reboot after uninstalling? 

Also, give us specifics:

  • OS you are running: Windows 7/8/10 or OSX 10.? ( I see… was typing as you were typing it seems. )
  • Exact version(s) of Corona, ex: 2016.2910 (the latest daily build).  I know this seems implied, but it is better to be clear about the exact version(s).

Have you added any debug messages to your main.lua to see if you get some output in the console before the crash? i.e. What steps have you taken to debug in addition to trying other projects and other versions of Corona.

Consider zipping up and sharing the project that caused this issue.

PS - What exact version of Corona were you using when this first happened?

I was assuming since the OP is trying to use iCloud, that he’s building for iOS, macOS or tvOS which can only be done on a Mac. If this is a PC, I’m not sure where to have the OP look, but cleaning out the plugins that have been downloaded for the sim could be useful.

Rob,

Is that stuff in the sandbox, or elsewhere? I can’t recall:

C:\Users???\AppData\Local\Corona Labs\Corona Simulator\Sandbox

Ah, negatory on that it’s here:

C:\Users\<machinename>\AppData\<user>\Corona Labs\Corona Simulator\Plugins

Windows 10, current build is 2910 (newest daily build).  Build that started with this error was the last public build, not sure version # of that.

I can get 1-2 seconds into a project and it crashes.  Then the next time I it may instantly crash. On the same code, it’s completely random.  Not worth it to upload code, it does this on default Corona example projects.

I do 99% of my development on a PC and then test/build on my Mac.  I don’t expect iCloud to work on my PC, but I also don’t it expect to break the entire simulator to death forever.

I have uninstalled, restarted, and reinstalled and still the same issue.  I’ve cleared out the Corona Labs directory in %appdata% too.

Was able to load several projects and it worked fine.  Closed the simulator, restarted, and back to crashing again.

I’d say memory/hardware issue, but everything else is working flawlessly on my PC.

Well, assuming there are no other changes in your system that happened at the same time I’m about out of ideas.

  • Do you have a virus scanner?  If so, have you tried temporarily disabling it and re-running?  
  • Have you tried running in safe mode (windows)?  
  • How about a software firewall?  
  • What does your system usage look like (task manager view of memory disk networks usage) when you run?  Anything notable?
  • Are you running the latest graphics drivers?
  • Have you tried a old version of Corona (just for giiggles?  You’ll have to uninstall first, but then go back about 3 months and see what happens.)
    • If you can identify a ‘before’ and ‘after’ version where this does and does not happen, I think it would make the issue easier to find, but if you go back several months and this still happens, I would start to suspect a system issue.

_ I’m just throwing out ideas now.   _

_ -Ed Out _

This seems to be the issue, but not necessarily the drivers themselves.  I updated my AMD video drivers a few days ago, and I just noticed that it installed Raptr and Plays.tv alongside the new drivers.  They appear to be video recording tools for sharing to social media, kind of like Nvidia’s Shadow Play.  Had no clue it installed them, but once I removed those and restarted the simulator is working perfect again.

Thanks for all the good advice/feedback.

Can you look in your Mac’s “Console” app to see if there are any clues about why it’s crashing? Is there anything you can catch in the console window Corona SDK starts up just before it closes?

This is on a PC, is there a log file on there I can check?  Nothing in the console window other than normal info, no error message at all.

Have you rebooted your machine?  Did you reboot after uninstalling? 

Also, give us specifics:

  • OS you are running: Windows 7/8/10 or OSX 10.? ( I see… was typing as you were typing it seems. )
  • Exact version(s) of Corona, ex: 2016.2910 (the latest daily build).  I know this seems implied, but it is better to be clear about the exact version(s).

Have you added any debug messages to your main.lua to see if you get some output in the console before the crash? i.e. What steps have you taken to debug in addition to trying other projects and other versions of Corona.

Consider zipping up and sharing the project that caused this issue.

PS - What exact version of Corona were you using when this first happened?

I was assuming since the OP is trying to use iCloud, that he’s building for iOS, macOS or tvOS which can only be done on a Mac. If this is a PC, I’m not sure where to have the OP look, but cleaning out the plugins that have been downloaded for the sim could be useful.

Rob,

Is that stuff in the sandbox, or elsewhere? I can’t recall:

C:\Users???\AppData\Local\Corona Labs\Corona Simulator\Sandbox

Ah, negatory on that it’s here:

C:\Users\<machinename>\AppData\<user>\Corona Labs\Corona Simulator\Plugins

Windows 10, current build is 2910 (newest daily build).  Build that started with this error was the last public build, not sure version # of that.

I can get 1-2 seconds into a project and it crashes.  Then the next time I it may instantly crash. On the same code, it’s completely random.  Not worth it to upload code, it does this on default Corona example projects.

I do 99% of my development on a PC and then test/build on my Mac.  I don’t expect iCloud to work on my PC, but I also don’t it expect to break the entire simulator to death forever.

I have uninstalled, restarted, and reinstalled and still the same issue.  I’ve cleared out the Corona Labs directory in %appdata% too.

Was able to load several projects and it worked fine.  Closed the simulator, restarted, and back to crashing again.

I’d say memory/hardware issue, but everything else is working flawlessly on my PC.

Well, assuming there are no other changes in your system that happened at the same time I’m about out of ideas.

  • Do you have a virus scanner?  If so, have you tried temporarily disabling it and re-running?  
  • Have you tried running in safe mode (windows)?  
  • How about a software firewall?  
  • What does your system usage look like (task manager view of memory disk networks usage) when you run?  Anything notable?
  • Are you running the latest graphics drivers?
  • Have you tried a old version of Corona (just for giiggles?  You’ll have to uninstall first, but then go back about 3 months and see what happens.)
    • If you can identify a ‘before’ and ‘after’ version where this does and does not happen, I think it would make the issue easier to find, but if you go back several months and this still happens, I would start to suspect a system issue.

_ I’m just throwing out ideas now.   _

_ -Ed Out _

This seems to be the issue, but not necessarily the drivers themselves.  I updated my AMD video drivers a few days ago, and I just noticed that it installed Raptr and Plays.tv alongside the new drivers.  They appear to be video recording tools for sharing to social media, kind of like Nvidia’s Shadow Play.  Had no clue it installed them, but once I removed those and restarted the simulator is working perfect again.

Thanks for all the good advice/feedback.