-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
pos_marker_manage.lua:119: attempt to index a nil value #105
Comments
Hello there, @Bastrabun! I can't seem to replicate this issue myself. Can you find the following information for me please?
Could you also try:
|
I've been seeing this on occasion on another server as well, seems to happen about once a day and usually a few minutes after the last WE usage.
This is with WE and WE additions both fully up to date (WE @ 5a00c07 and WE additions @ e89d610) as of this writing. |
For #105 because I can't reproduce the issue.
Hmmmmmmmm, very interesting. So that would suggest
position_entities[event.player_name][event.i] ......so that would suggest a race condition between Minetest-WorldEditAdditions/worldeditadditions_core/core/entities/pos_marker.lua Lines 49 to 55 in d3ddb55
update_entity function and pos_marker_manage 's listener to the same event firing.
That shouldn't be possible though, because Lua is single-threaded, and our EventEmitter implementation doesn't use async code, therefore guaranteeing it calls the listeners in order immediately. In 977dcc6 I have added some additional checks there. I've also added some logging that will log more information if the issue I suspect here happens again. If it does happen again, please do log the output because it will help me track the issue down. We'll get to the bottom of this one eventually, @Bastrabun! |
Happens when I place WE points via //1 and //2:
For my reference: 5381
The text was updated successfully, but these errors were encountered: