MightyPirates / OpenComputers

Home of the OpenComputers mod for Minecraft.
https://oc.cil.li
Other
1.59k stars 431 forks source link

[1.6.2.7 / OpenOS 1.6.1] Silent errors #2326

Closed Pizzn closed 7 years ago

Pizzn commented 7 years ago

I have noticed several times that the OS rarely prints errors. Most of the time the causing program just stops working without any output to stdout/stderr. Illustrated with assert: mc-assert

OC: 1.6.2.7, MC 1.10.2, Forge 2185 Tested in a fresh world with /oc_sc.

Edit: Seems to be happening only when using LuaJ instead of the native libs.

gamax92 commented 7 years ago

Yeah, this is just an issue with LuaJ being terrible at everything, and giving correct stacktraces (or anything at all) is one of them. If possible you should be use the natives over LuaJ always.

Pizzn commented 7 years ago

Ah, so this is more of a shortcoming of LuaJ? The only reason why I'm using it is that the native libs render robots unusable for me (#2302), whereas with LuaJ robots are at least booted again.

payonel commented 7 years ago

I'll investigate to see if there is anything better openos can do in this situation

payonel commented 7 years ago

there is nothing more i am getting from luaj for this