Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Console window randomly closes on Mac
Started by sporkfin Sep 29 2019 08:43 AM

- - - - -
7 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 711 posts
  • Corona SDK

For a while now I've had a problem where my console window disappears and I have to quit and restart Corona to reactivate the console.  I started paying more attention to it lately and found that it seems to be closing randomly - or after a period of use.

 

At first I thought it was related to my use of multiple monitors so I tried

 

window >> bring all to front  &  window >> center

 

That didn't help.  This has been a persistent problem for at least a year but restarting Corona is no big deal - unless I'm in the middle of a super debug session and I need the content from the console that has just disappeared, which is what is happening now.

 

Has anyone else experienced this or found a solution?



[TOPIC: post.html]
#2

bamazy

[GLOBAL: userInfoPane.html]
bamazy
  • Contributor

  • 135 posts
  • Corona SDK

The exact same thing has been happening to me for a long time too. I also have to quit and restart Corona. I haven't paid attention to it to find if it follows a pattern or not. 



[TOPIC: post.html]
#3

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,307 posts
  • Corona SDK

This is has been around for at least a year. don't worry and keep coding.



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,539 posts
  • Enterprise

I've noticed it will close if you flood it with messages, like prints inside an enterFrame listener.  If anyone can find other causes let us know.

 

Rob



[TOPIC: post.html]
#5

Alan PlantPot

[GLOBAL: userInfoPane.html]
Alan PlantPot
  • Contributor

  • 928 posts
  • Corona SDK

I've also had this problem for at least a year, usually just a minor inconvenience but still annoying.

 

Prints in enterFrame listeners certainly make it more likely to happen but even when I've commented out all repeating prints such as that, it still crashes after some time. Maybe a memory issue?



[TOPIC: post.html]
#6

R2robot

[GLOBAL: userInfoPane.html]
R2robot
  • Observer

  • 20 posts
  • Corona SDK

Same!    Especially when I turn all the print statements on in my game.  *poof* 



[TOPIC: post.html]
#7

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 711 posts
  • Corona SDK

When I have print statements turned up to the max is when I'm debugging  :(



[TOPIC: post.html]
#8

R2robot

[GLOBAL: userInfoPane.html]
R2robot
  • Observer

  • 20 posts
  • Corona SDK

I forgot that you can launch without the console.  It feels more natural to me to have logging displayed in the terminal anyway.  So I've gone back to launching the simulator with a script like this:

 

"/Applications/Corona/Corona Simulator.app/Contents/MacOS/Corona Simulator" -no-console yes &

 

screenshot: tmux split window with vim and console logging below

 

 

 

 

 

Attached Thumbnails

  • terminalConsole.png

  • agramonte and sporkfin like this


[topic_controls]
[/topic_controls]