Recursive requires crashes engine without error message (DEF-1578)

There’s a small bug I found today, where trying to build my project results in this error message:

“dmengine quit unexpectedly”

with no other information. It’s weird because the editor has been working swimmingly as I was playing around with it today.

The error was a complete showstopper, and I had to restart and reinstall the editor - to no avail. I tried running the HTML build but it wouldn’t load. I was however, able to inspect the console - Maximum call stack exceeded. This immediately tipped me off a possible infinite recursion.

Sure enough, my constants.lua file had require 'main/constants.lua' as the first line.

I think it would be great if we could catch this somehow, as there is no logs on the console nor the error log tab.

Thanks!

1 Like

This is a known issue that has been lying around in our backlog for quite some time: DEF-1578

2 Likes