Corona Simulator Crashed[Segmentation Fault]

Hello Team,

I have one level1.lua class in which i have implement reload or goto “Home” scene functionality. On preCollision from bottom i have shown a Overlay where i have two buttons 1. Play again and 2. “Menu(Home)”.  In “enterScene” of reload.lua i have called my level1.lua scene which i have to reload.

I have properly remove all listneres and objects in preCollision of level1.lua and then showing overlay for relaod. But corona simulator getting crashed with error of segmentation fault.

Also, i have checked application on windows OS, its working fine there. 

Please check and let me know what should i do.

      

  if event.target.id == "reloadBtn" then                                      storyboard.hideOverlay("GameOver\_Overlay");             --storyboard.purgeAll();                        storyboard.gotoScene("reload");                              elseif(event.target.id == "homeBtn")then             local current\_scene\_name = storyboard.getCurrentSceneName();             -- storyboard.purgeScene(current\_scene\_name);             -- storyboard.removeAll();                 -- physics.stop()             local options =             {                 effect = "fade",                 time = 50,                                isModal = false,                            }             storyboard.hideOverlay("GameOver\_Overlay",options)               storyboard.purgeScene("level1")             storyboard.gotoScene( "menu", "fade", 0  )                      end  

Can you provide the text or the error, and the line specified in the error log itself? That would help to resolve the issue.

/Applications/CoronaSDK/Corona Terminal: line 9:   472 Segmentation fault: 11  “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” “$@”

logout

Check the filenames. Best practice is to use all lowercase names for all project files and assets.

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

This is 99% likely to be a case of the scene you are leaving and purging has a Runtime event listener still going and when you purged it, the object is removed, but the runtime listener is still trying to access it.  Other causes along this same line are onComplete functions (like transitions, audio.play, timers, etc.) finish after you leave the scene only to find the objects they are supposed to work on no longer exist.  This will almost always generate a SIGSEGV and drop your app and the simulator.

Rob

Can you provide the text or the error, and the line specified in the error log itself? That would help to resolve the issue.

/Applications/CoronaSDK/Corona Terminal: line 9:   472 Segmentation fault: 11  “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” “$@”

logout

Check the filenames. Best practice is to use all lowercase names for all project files and assets.

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

This is 99% likely to be a case of the scene you are leaving and purging has a Runtime event listener still going and when you purged it, the object is removed, but the runtime listener is still trying to access it.  Other causes along this same line are onComplete functions (like transitions, audio.play, timers, etc.) finish after you leave the scene only to find the objects they are supposed to work on no longer exist.  This will almost always generate a SIGSEGV and drop your app and the simulator.

Rob