altmp / altv-js-module

JS module for alt:V Multiplayer. Powered by NodeJS & v8
MIT License
54 stars 36 forks source link

FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal. #184

Closed Konders closed 5 months ago

Konders commented 2 years ago

Description of the problem

On windows server works fine When starting server on linux, he crashing every 1.5 minutes from start with error FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal. 1: 0x7feb1f7e429c node::Abort() [/opt/altv/modules/js-module/libnode.so.102] 2: 0x7feb1f6de33a [/opt/altv/modules/js-module/libnode.so.102] 3: 0x7feb201f81c1 v8::Utils::ReportApiFailure(char const*, char const*) [/opt/altv/modules/js-module/libnode.so.102] 4: 0x7feb1f75968d node::Environment::CheckImmediate(uv_check_s*) [/opt/altv/modules/js-module/libnode.so.102] 5: 0x7feb1fd2b641 [/opt/altv/modules/js-module/libnode.so.102] 6: 0x7feb1fd23899 uv_run [/opt/altv/modules/js-module/libnode.so.102] 7: 0x7feb3819c93e CNodeResourceImpl::OnTick() [/opt/altv/modules/js-module/libjs-module.so] 8: 0x56344c73a466 [./altv-server] 9: 0x56344c68ab8f [./altv-server] 10: 0x56344c68b753 [./altv-server] 11: 0x56344c74a8d3 [./altv-server] 12: 0x7feb39d51d0a __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6] 13: 0x56344c67c17e [./altv-server]

Reproduction steps

Cant describe repro - because we have huge gamemode and error doesnt provide js stack trace

Expected behaviour

Everything works fine or at least error referencing to the code line

Additional context

No response

Operating system

Ubuntu 20.04

Version

release 12.10

LeonMrBonnie commented 2 years ago

That error from V8 is the most generic error, and as such its pretty much impossible to find out what causes this But from the stack trace you can see that its somewhere in uv_run, means that its code from NodeJS, not from us.