New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac Simulator: Crashes and closes when error with image file path or name/extension #310
Comments
I noticed an additional type of error that also crashed the simulator on Mac: example: The error was I had the "newGroupName" misspelled inside the insert method and that threw the error and crashed the simulator. The only way to know what the error was, I had to do a screen recording of the console so I could see what the error was that flashed on the console before it crashed and closed. |
I couldn't reproduce this issue. Like, just having newGroupName = display.newGroup()
group:insert( newGroupNam ) Doesn't crash anything, I am getting regular error message saying
This code doesn't crash either: newGroupName = display.newGroup()
newGroupName:insert( asdf ) Error is
Also, tried original bug: display.newImage("neverExisted.png") only prints warning
|
Thank you for testing on your end. I start noticing these crashes on a new MacBook with the m1 chip. I recently transferred from an Intel MacBook and did not have these problems on the Intel. I am thinking these crashes could either be related to the simulator running on Apple Silicon MacBook, or some issue with transferring files/preferences from one Mac to another. Is the machine you are using a MacBook with an M1 chip? |
This should be fixed new builds |
Hi guys, I saw this was marked as fixed in build 3675. I am currently using build 3677 and am still experiencing Simulator crashing with errors. It is not happening with all errors and it is happening with different kinds of errors. For example one type of error that caused the crash was when inserting an object into a group, the object name was misspelled in the insert code: Another type of error that caused the crash was code inside of the onRowRender function for a widget newTableView. The code inside the renderer was creating a newText object and the reference to the table was incorrect: Most of the time the errors do display in the console but then the simulator and console crash and close so I am unable to read the error. I have to do a screen recording and then run the simulator again and then replay the recording to read the error. This behavior was new since going to a M1max apple from an intel apple. I wish I could provide more information for you but these seem like normal coding errors that should show in the console. Thank you. |
Should I open a new issue for this? |
No, will reopen this and look it over the weekend |
@jajern I tried the original code provide but can get it to crash on m1 Mac mini
|
@jajern Can provide a demo/code of what causes the crash |
|
@scottrules44 Sorry for the delay, I tested again today by placing the code below into line:86 of "tab1.lua" in the "Widget Demo" sample code project that ships with Corona-3680. Spelling the object name right provides no errors, spelling it wrong cause the simulator to crash and close. local nameTheGroup = display.newGroup() The only thing I can think to share is the Apple Crash Report with you. It does contain some information in there that says "Corona Simulator" so it may be of help for you? I cannot make anything of it, that is beyond me. I don't think there is anything of safety concern in that file but I would still rather not post the file here publicly. If you would like that file I can send it to you. |
@scottrules44 @jajern Screenshot from screen recording: Apple error report:
I did some research but no results. At first I thought it was related to |
@clang-clang-clang Thank you for mentioning that. I was starting to think I was the only one with the crashes and I needed to figure out what was wrong with my computer. :) |
@jajern @clang-clang-clang Screen.Recording.2022-10-01.at.11.16.46.AM.mov |
Odd, I will try to deep dive. |
Sorry for the delay. The reason was Reproduced using main.lua below, be aware that local namedGroup = display.newGroup()
display.getCurrentStage():insert( namedGroup_1 ) After crashed, message from console:
When in debug mode, If you google apple silicon exception uncaught, you'll find a lot of similar issues like xamarin/xamarin-macios#16546, root-project/root#7541. I hope it helps. |
Describe the bug
If there is an error with a file name or path in the written code for display.newImage the simulator crashes. When it crashes it also closes the console so the only way I was able to find the bug was by running s screen recording of the console so I could replay the video and pause it when the error message displayed before the sim crashed.
To Reproduce
Steps to reproduce the behavior:
Target platform and where build was made:
The text was updated successfully, but these errors were encountered: