-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
"Error in error handling" #2727
Comments
hmm, i traced |
Okay, I figured something out. The culprit was this cursed function that I used to convert floats to integers: function makeint(f)
return string.format("%.0f",f)|0
end (Luckily, Lua 5.3+ has a function By running
So, my findings are:
This wasn't the only breaking change I found: After resolving this error, I stumbled upon another similar one. I'll continue my investigations, even though it is quite difficult because I can't see which line the error originated from.... |
Found another deprecation: Nothing crashes for now, but I'll continue investigations later... |
I thought that the difference between 5.3 to 5.4 was smaller. I'll see if I can fix the error handler. We could also discuss if we want to revert to 5.3. |
I reverted to Lua 5.3, a lot of complaints. |
Note: Reverting to Lua 5.3 did not fix the error handling, it still only prints "error in error handling" in the current build 3002. I built the TIC-80 executable with the following options:
As Lua 5.4 deprecations aren't an issue anymore, I updated the issue title accordingly. |
Hmm, it's strange, maybe try to rebuild, or add |
I used your command, but |
i tried to reproduce the issue with a fresh cart, but somehow i just don't seem to figure out what causes it. In EMUUROM, i just need to do this in asdfTIC=function()
asdfasdf() -- produces the error
end
TIC=asdfTIC In a fresh cartridge, this does not produce the error! So I guess it's either about
Very perplexing. UPDATE: Okay, it is
to |
Gosh, I'm an idiot. No, it was not mode="demo debug"
demo=mode:find("demo")
debug=mode:find("debug") I'm using this So yeah, this isn't really a TIC-80 issue, and this issue can be closed. Still no idea why it broke the error reporting on the new TIC-80 version, instead of working fine previously, but this is easily fixed on my end by just renaming the variable. |
Maybe rare cases like this can happen when optimizing with O3 instead of O2, but that's just an untested possibility. |
Has something changed in error handling? In 1.2.2997-dev pro i got this error message when running my game, but in 1.2.2883-dev pro everything works normally.
I use Lua, and the relevant code seems to be on line 98 in
ldo.c
....The text was updated successfully, but these errors were encountered: