Simulator causing brand new Mac Mini to crash?

@Corona 

I can’t be 100% sure of this yet, but disabling the zoomBlur shader from the app when in the simulator seems like it may have stopped the crash (it’s possible that I’ve just got lucky and it will still crash at some point). It has definitely stopped the mis-rendered text issue, as that was reproducible very quickly before no longer seems to be happening.  

So perhaps there is something in the zoomBlur shader specifically which the latest Mac hardware (or Mojave) doesn’t work well with?

Thank you! I believe you are 100% correct. I think you should mark that is the correct answer. My Mojave machine has the zoomBlur disabled.

So did you previously have zoomBlur on as well? And then disabling it fixes the issues you were having?

Out of interest, what hardware are you using? In case it’s a useful reference to anyone at Corona I’m using:

Mac Mini (2018) running Mojave 10.14.3.

CPU: 3 GHz Intel Core i5

RAM: 8 GB 2667 MHz DDR4

GPU: Intel UHD Graphics 630 1536 MB

We had similar issues with new macbooks pro. I tracked it down that it involves nested masks. For example, Device Sking involves mask, as well as text. If you’re using device skin, try select “borderless” variant and see if crashing still occurs.

I was trying to fix it, but it seems that there’s something wrong with Intel graphics driver which is causing crashes.

Changing to borderless sim didn’t make any difference. 

Does “nested masks” in this context include newText objects? My understanding is that behind the scenes all text objects are basically masked bitmaps. 

I don’t think we have many manually masked objects (the odd container, newMask etc here and there) in general, and even fewer which are nested but I’m not 100% sure without checking.  

Usually it’s a mask on a group, with text object inside. It seems like when doing it, memory gets corrupted on GPU somehow.

I assume the issue you already knew was the one described here: 

https://forums.coronalabs.com/topic/73147-newest-fastest-macbook-pro-has-a-serious-simulator-display-problem/page-4

The descriptions there are identical to what I’ve been seeing. It’s possible that the borderless sim would prevent crashes, earlier I only checked for distorted text as that seems to be a precursor to the crashing. I know that disabling shaders in the sim seems to “fix” the problem for us, so I’d rather not do too much testing of borderless sim with shaders in case it still crashes. The crashes can’t be good in the long term so I’m keen to just avoid them for now.

It’s crazy that the OS/hardware allows it to reach the point where it crashes the whole machine, the most you would expect is for it to force quit Corona.

When I was trying to pinpoint this issue you posted, I saw all signs of system memory corruption occasionally, like random screen corruptions, rebooting, even kernel panic once. It was very hard to track down what exactly causing it, because, well, everything stops working :slight_smile:

I’m pretty sure at this point that issue is with OpenGL with Intel graphics driver for macOS.

I agree, my machine would freeze for over 5 mins - I had to forcibly shut it down with the power button. When I went back to check the logs there was no logging of any kind during that time - so the entire OS was completely frozen. 

Well done Apple…

Hey. I recently stumbled on similar issue in another game. Could you try downloading and telling if you see crazy glitching in this one?

Try to switch to windowed mode too

Yeah, that went crazy for me too. The screen was flickering constantly and it was almost impossible to see what I was doing (just trying to exit the app was hard work).