# Occasional crash of Solar2d

**URL:** <https://forums.solar2d.com/t/occasional-crash-of-solar2d/356915>\
**Category:** Daily Builds and Public Releases\
**Created:** [October 26, 2024, 7:39pm UTC](https://forums.solar2d.com/t/occasional-crash-of-solar2d/356915 "2024-10-26T19:39:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmarques42](https://forums.solar2d.com/user_avatar/forums.solar2d.com/dmarques42/32/190_2.png) [@dmarques42](https://forums.solar2d.com/u/dmarques42)\
**Post date:** [October 26, 2024, 7:39pm UTC](https://forums.solar2d.com/t/occasional-crash-of-solar2d/356915/1 "2024-10-26T19:39:33Z")

</div>

I occasionally get a full crash on load/reload of a project, usually from a simple typo, usually in main.lua, but sometimes in the first scene called by main. Solar2d just crashes and disappears, no message.

My fix (works 100% of the time) is to start build 3617. That will show the error without crashing. I fix the bug, then can go back to the latest version.

This has been a problem for I think the last 10 builds or so. I keep forgetting to report it because my workaround is fine.

---

<div class="post-metadata">

**Author:** ![StarCrunch](https://forums.solar2d.com/user_avatar/forums.solar2d.com/starcrunch/32/67_2.png) [@StarCrunch](https://forums.solar2d.com/u/StarCrunch)\
**Post date:** [October 27, 2024, 2:35am UTC](https://forums.solar2d.com/t/occasional-crash-of-solar2d/356915/2 "2024-10-27T02:35:57Z")

</div>

This is on Mac?

I’ve probably run into this (seemed like more than 10 builds going, though 😃 ), and @clang mentioned [https://github.com/coronalabs/corona/issues/310](https://github.com/coronalabs/corona/issues/310) something about the unwind going bad (he mentioned this on Discord but the comment at the end of the link seems to explain it). Sounds like an annoying bug hunt but probably an easy fix in the end.

---

<div class="post-metadata">

**Author:** ![dmarques42](https://forums.solar2d.com/user_avatar/forums.solar2d.com/dmarques42/32/190_2.png) [@dmarques42](https://forums.solar2d.com/u/dmarques42)\
**Post date:** [October 27, 2024, 3:40am UTC](https://forums.solar2d.com/t/occasional-crash-of-solar2d/356915/3 "2024-10-27T03:40:04Z")

</div>

Yes, Mac. Yes, annoying but not a big deal. I logged it because I have a new collaborator who was going to give up on Solar2d when he ran into this until I told him the fix.

Yes, probably more than 10 builds, but I didn’t want to say what I wasn’t sure about.

---

<div class="post-metadata">

**Author:** ![colinmorgan](https://forums.solar2d.com/user_avatar/forums.solar2d.com/colinmorgan/32/241_2.png) [@colinmorgan](https://forums.solar2d.com/u/colinmorgan)\
**Post date:** [October 27, 2024, 8:06pm UTC](https://forums.solar2d.com/t/occasional-crash-of-solar2d/356915/4 "2024-10-27T20:06:08Z")

</div>

Here’s a workaround from Discord that involves disabling the console and routing the output Terminal.

- Disable Solar2d console so errors show up in terminal:  
`defaults write com.coronalabs.Corona\_Simulator no-console YES`

- Start from command like this (use current build number):  
`/Applications/Corona-3710/Corona\ Simulator.app/Contents/MacOS/Corona\ Simulator`

- Re-enable Solar2d console when done:  
`defaults delete com.coronalabs.Corona\_Simulator no-console`

It’s a bit fiddly, but has the advantage of not needing to revert to an ancient version of Solar2D for debugging. (And it’s way better than what I’d been doing which was running screen capture on the console and then watching the video to try to see the error message flash by. 🤣)

---

<div class="post-metadata">

**Author:** ![dmarques42](https://forums.solar2d.com/user_avatar/forums.solar2d.com/dmarques42/32/190_2.png) [@dmarques42](https://forums.solar2d.com/u/dmarques42)\
**Post date:** [October 27, 2024, 10:53pm UTC](https://forums.solar2d.com/t/occasional-crash-of-solar2d/356915/5 "2024-10-27T22:53:55Z")

</div>

Thank you, I will try it. Console on terminal has a few other advantages, though minor. Thanks.

[Later: works great! Thank you.]
