Troubles with IDE - simulator locks up, can't debug (on Mac - fine on Windows)

Thank you for the guidance!

OK, I lied…not the latest daily build… Here’s the version of CoronaSDK: Version 2015.2646 (2015.5.27)

Here’s the Corona Editor info.

Corona Editor for Sublime Text Version: 1.5.1 Installed: 2015-03-17 09:17:49 Corona Editor is the official Corona SDK plugin for Sublime Text [Sublime Text 3083/stable/osx/x64]

Change the path would be quite difficult, as I cannot easily change “Macintosh HD” without screwing up a lot of other links in my system!

Rob, Projects will run with Corona Simulator and also run fine when just “Run” from within the editor. 

The error occurs when attempting to run the Corona debugger from within the Corona Editor (in Sublime Text).  The error occurs on the first line of code regardless of the code (same as reported by the user “euphemismism” above).

I hope this helps.

Rob, One more data point: running the debugger from within Lua Glider also works without error.  The reported error appears to be specific to the Corona Editor plugin for Sublime Text.  Thanks.

Sorry to hear you’re having trouble with Corona Editor.  Can you PM me the Sublime Text console output (for the entire session) when this happens?  Type Ctrl+` to open the Sublime Text console.  Also, open Corona Editor > About Corona Editor… before copying the console and that will put version info in the console.  At this stage, I would definitely recommend using Sublime Text 3 rather than 2.

Note that there is always a virtual breakpoint on the first line of code in your app so I think that explains the behavior you are seeing with it stopping on the require statement.  If you put a print() statement before the require() does that change anything?  Is the require() loading one of your files or a third party library?  Does this problem occur with the Sample Apps?  If so, which one?

I am having this same issue with the debugger. I’m using the latest build 2682 and latest version of Corona Editor, 1.5.1, and the latest version of Sublime 3, OSX.

I tried removing spaces from path, but still getting the same error. Here is the path that the console is Sublime 3 shows:

~/Dropbox/Apps/projects/NewApps

I am on a Mac, so it could be the “Macintosh HD” space, but I’d rather not mess with that…

I think this is probably unrelated, but weird things happen when, in Sublime, I “Run Project” while a .lua file is active which is in a subdirectory relative to main.lua. The game launches, but I get unexpected behavior, such as nil object errors. If I run the exact same project while main.lua is active, everything works fine. If I move the file to the same directory as main.lua, everything works fine.

There are no spaces in the subdirectory’s name, or in any of the .lua filenames. 

I can’t believe more people aren’t reporting problems with the debugger? I’ve tried it on both Windows and Mac, even with sample projects, and it is very problematic. 

I removed all spaces from my path and was finally able to debug.

Ok, I can debug, but then it hangs and I have to restart Sublime Text 3.

Hello all,

even when I’m not expert on this, I can notify that this problem occurs only the first time you run a project. The second time works just fine. Next one fails, next one works.

Is quite annoying to be honest.

I’ve tried as well with Sublime Text 3 and occurs the same behavior.

Hope this can be fixed. Anyway, running the project directly on the simulator works fine. So my recomendation is just to have the simulator with the project open and then setup it to run on any change. With that, just save your project and it will run directly.

The problem with that is that you cannot use the debug function… 

Best regards,

/JGG

Hello, I have the same problems I read above.

My situation is like this:

Brand new installation of Sublime Text 2 (

Loaded the main.lua file that without the debugger just run fine.

As soon as I issue the command Corona Editor -> Corona Debugger -> Run

I receive this pop up screen from Sublime: 

Unexpected Response from Simulator:

202 Paused /Users/Home/Documents/

Corona SDK Projects/Prova 2/main.lua 8

Check Console for error messages (OK Button)

Note: ‘Prova 2’ is the name of the project and in line 8 there is this statement: 

local scene = composer.newScene()

When I press the OK and I look to the console:

copyright © 2009-2015  C o r o n a   L a b s   I n c .

2015-09-13 18:38:26.233 Version: 3.0.0

2015-09-13 18:38:26.233 Build: 2015.2646

2015-09-13 18:38:26.308 Platform: iPad / x86_64 / 10.10.5 / NVIDIA GeForce GT 750M OpenGL Engine / 2.1 NVIDIA-10.4.2 310.41.35f01 / 2015.2646

2015-09-13 18:38:26.370 Loading project from:   ~/Documents/Corona SDK Projects/Prova 2

2015-09-13 18:38:26.371 Project sandbox folder: ~/Library/Application Support/Corona Simulator/Prova 2-BFA8A3B6E5893342894B579CA3E86A5B

Of course I’m not able to understand what’s going on.

So I press OK and …  it hangs everything in the ‘page 1’ module that is called from main.lua with the following messages on the console and in which I toggled a breakpoint 

2015-09-13 18:50:41.122 set_breakpoint(/Users/Home/Documents/Corona SDK Projects/Prova 2/page1.lua,15)

2015-09-13 18:51:56.155 RUN: breakpoints: {"/Users/Home/Documents/Corona SDK Projects/Prova 2/page1.lua":{“15”:true}}

2015-09-13 18:51:56.194 CFNetwork SSLHandshake failed (-9806)

2015-09-13 18:51:56.542 CFNetwork SSLHandshake failed (-9802)

2015-09-13 18:51:56.836 CFNetwork SSLHandshake failed (-9824)

2015-09-13 18:51:56.859 NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)

After this message the Simulator hangs completely with a coloured rounded icon that continue spinning and it cannot be stopped with cmd-W as usual.

I have to use ‘force quit’ using the apple menu or otherwise I have to quite Sublime Text that it quits Simulator.

In anycase the environment is very unstable.

What I described above is not always happening.It depends on how you quit the applications. It seems to me that something continue to be in memory because when I quit Sublime and I reopen it keeps in the modules the breakpoints I set before quitting that seems strange to me as I think it should keep the breakpoints only for the session of debugging.

If I redo the whole sequence sometime I have ‘stack’ tab in Sublime Text 2 that keeps saying ‘Running…’ but never stops in the breakpoints I have set.

Thanks for any suggestion you can give me.

Andrea

Just tried Sublime 3 with Corona Editor, and it is still unusable. It would be nice to be able to debug!

You should be able to debug with Corona Editor.  It supports setting break points, stepping in and out of functions, watching variable, etc.

How is it not working?

Rob

mimetic,

I also had a problem running Corona debugger in Sublime 3 (reported above).  Perry Clarke discovered that I had a space in my project path which caused the debugger to hang.  Eliminating the space in the directory name solved the problem.

Pete

Unexpected response from Simulator: 202 Paused /Volumes/Macintosh HD/Users/dgross/Corona Projects/photobook/main.lua 10 Check Console for error messages.

Well, it starts with this…which might be just the initial break. So, I tell it to continue (run), but it is so slow I can’t tell what’s happening.

Before, it was freezing (Sublime was freezing), so I gave up.

It is taking 2 minutes to run what takes .3 seconds in simulator.

So…I don’t feel I can count on it.

There used to be an issue with spaces in pathnames but I thought that was fixed a while back.

Which version of Corona Editor are you running?   Corona Editor > About Corona Editor…

Also, which version of CoronaSDK?

I saw the reference to pathnames, but I didn’t see how it applied. That is, in the whole path? Or somewhere in some config file? Too vague to help.

Latest CoronaSDK, both Sublime 2 & 3, etc.

Just too unstable to use.

If I knew how else to report to you, I would. Please advise.

The issue was with spaces in the project path as the original poster noted.

There are two spaces in your path:

/Volumes/Macintosh HD/Users/dgross/Corona Projects/photobook/main.lua

You can help by giving me the version info I asked for :slight_smile:

Which version of Corona Editor are you running?  Issue this command in Sublime Text  Corona Editor > About Corona Editor… , either screenshot the dialog that results or copy the same info from the Sublime Text console (Ctrl+`) and post it here.

 

Also, specifically which version of CoronaSDK?  The “latest” Public Release, the “latest” Daily Build?  I’m looking for a version number.

Thank you for the guidance!

OK, I lied…not the latest daily build… Here’s the version of CoronaSDK: Version 2015.2646 (2015.5.27)

Here’s the Corona Editor info.

Corona Editor for Sublime Text Version: 1.5.1 Installed: 2015-03-17 09:17:49 Corona Editor is the official Corona SDK plugin for Sublime Text [Sublime Text 3083/stable/osx/x64]

Change the path would be quite difficult, as I cannot easily change “Macintosh HD” without screwing up a lot of other links in my system!