MV Galv's Event Shadow random error

With this plugin you can add shadows to characters by using a <shadow> notetag or comment.

My issue is that, on random rare occasions, I get errors:

GalvError.png


It's difficult to explain because it happens completely at random. I've had this plugin for +3 years and this error only happened a handful of times (like 5~7 times), on random maps. This time, I entered a room (that I've visited before with that plugin ON) and I got the error after a while in it. I didn't make any previous changes on the map.

There's only one NPC event that uses the <shadow> notetag. And all it does is open the shop menu. I didn't interact with it.
GalvError2.png

But everything worked fine all the other 50 times (not a joke) that I've been on that map. And it is working right now after a restart.
The only other thing that also has a shadow is the player. There are no events running in the background.

I'm not expecting anyone to figure out what happened, it's quite vague and weird, but maybe these errors can point to what could be the issue... I can't replicate it because, like I said, it's random. The other few times I encountered this problem was the same situation: random map, and the error hasn't happened ever again on said map after a F5.

Edit: I'm dumb
you're looking at the wrong part of the error message.

the important part is the "of null", which means the engine was given a reference to an object that does not exist.

Example: You have actors with notetags. Then if you get the message "cannot read note of null" it means that the ACTOR is null.

So in your case it means that the engine had tried to read the note of an event that does not exist at all.

And this usually happens when there is a loop with wrong limits or so, like if you created an event and later deleted it and something still references it.
I don't know enough of that plugin to analyse it, so I can't tell you how to find out where exactly the wrong reference comes from - but the plugin probably goes through all events to search for the note, and the event that has it is almost guaranteed not to be the source of the error (not unless you have it erased at some time during gameplay).
e25a5e8c1ef9eb47ee2115400575a40e.jpg


I did delete an event while playtesting but not on that map :oops: Thank you, probably that's related. (Honestly had a suspicion it was a problem of my own fault 😔)... How do I delete this thread and myself

Original thread: https://forums.rpgmakerweb.com/threads/galvs-event-shadow-random-error.161760/