What is the reason for these "object/entity" warnings?

Post Reply
User avatar
joe7575
Member
Posts: 851
Joined: Mon Apr 24, 2017 20:38
GitHub: joe7575
In-game: JoSto wuffi
Location: Germany, in the deep south

What is the reason for these "object/entity" warnings?

by joe7575 » Post

Any idea what is the reason for these kind of warning messages:

Code: Select all

2023-02-07 18:47:19: WARNING[Server]: LuaEntitySAO::step() id=10801 is attached to nonexistent parent. This is a bug.
2023-02-07 18:47:25: WARNING[Server]: ScriptApiBase::objectrefGetOrCreate(): Pushing ObjectRef to removed/deactivated object, this is probably a bug.
Sent from my Commodore 64. Some of my Mods: Tech Age, TechPack, Hyperloop, Tower Crane, Lumberjack, vm16, Minecart, Signs Bot.

User avatar
Krock
Developer
Posts: 4649
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: What is the reason for these "object/entity" warnings?

by Krock » Post

I suppose this is caused by a mod that keeps ObjectRefs outside of callbacks, resulting in calls to invalid objects. From what I can see, `obj:set_attach`, `obj:get_attach()` and `obj:get_children()` do not check whether the object is about to be deleted, which then results in such odd warnings.

Feel free to open an issue about that - or even better - a bugfix PR if you can confirm that it's indeed caused by these functions.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests