MV 'removeChild' of null error happening at random.

So, when my co-dev began playtesting the most recent build of the game we're making, we discovered that it gives us errors of a specific variety with worrying frequency. We looked it up and it apparently is usually due to something involving plugins, but our initial search didn't yield much in the way of meaningful results. Thus far, the crashes have occurred when opening up a shop, changing to a new zone (as shown in the picture) and if memory serves, when a random encounter started. There is no reliability to when these errors occur.

The thing is, these issues only seem to be happening in the first 'chapter' of the game. Or at least, they are happening more frequently there. As such, we SUSPECT that the issue is being caused by the older method of progressing the story we used back then, which came in the form of switches. Lots, and lots, of switches. We swapped to giving each chapter its own story progression variable for chapter 2 and on to make it easier to manage and save room in the database.

If that is the issue, we'll go back and fix it when we can. But we wanted to get some opinions from other people first.

Full-Load-Order.png


Full-Load-Order.png
If it's one of your plugins I would recommend taking the time to search through in a code text editor and CTRL+F that baby. See what you can find and once you find it screenshot/post the logs here so people can see what specifically is happening. Unless someone else knows the issue/resolution? ^^
If it's one of your plugins I would recommend taking the time to search through in a code text editor and CTRL+F that baby. See what you can find and once you find it screenshot/post the logs here so people can see what specifically is happening. Unless someone else knows the issue/resolution? ^^
That sounds like a fine suggestion. How do I do that? I haven't had cause to go rooting around in my files with something like that as of yet, and I don't even know which file to open.
So, when my co-dev began playtesting the most recent build of the game we're making, we discovered that it gives us errors of a specific variety with worrying frequency. We looked it up and it apparently is usually due to something involving plugins, but our initial search didn't yield much in the way of meaningful results. Thus far, the crashes have occurred when opening up a shop, changing to a new zone (as shown in the picture) and if memory serves, when a random encounter started. There is no reliability to when these errors occur.

The thing is, these issues only seem to be happening in the first 'chapter' of the game. Or at least, they are happening more frequently there. As such, we SUSPECT that the issue is being caused by the older method of progressing the story we used back then, which came in the form of switches. Lots, and lots, of switches. We swapped to giving each chapter its own story progression variable for chapter 2 and on to make it easier to manage and save room in the database.

If that is the issue, we'll go back and fix it when we can. But we wanted to get some opinions from other people first.

[IMG]https://i.ibb.co/h9fW1Xt/Error.png https://i.ibb.co/dQ8pcLS/Full-Load-Order.png[/IMG]

[IMG]https://i.ibb.co/dQ8pcLS/Full-Load-Order.png[/IMG]
Trigger the error again and see what comes up in the Console, then take a screenshot and show us. [press F8 or Fn + F8 to open the console]
Trigger the error again and see what comes up in the Console, then take a screenshot and show us. [press F8 or Fn + F8 to open the console]
Duly noted. I'll get back to you as soon as we have something.
If it's one of your plugins I would recommend taking the time to search through in a code text editor and CTRL+F that baby. See what you can find and once you find it screenshot/post the logs here so people can see what specifically is happening. Unless someone else knows the issue/resolution? ^^
Trigger the error again and see what comes up in the Console, then take a screenshot and show us. [press F8 or Fn + F8 to open the console]
Got the error.
Console.png
OK, first:
The important part of the error message is the "of null" (or "of undefined" in other cases).
That means that some data the engine needs is undefined (or not available).

The most common cause of such an error is actually to load and continue a savegame after a change in the plugin manager made the older saves incompatible, so make sure all playtesters start new playtests whenever something was changed there.

second, the only plugin involved in the error is the gamejolt plugin.
If two or more plugins had been involved it might have been an incompatibility between them, but with only one plugin in the error trace it is usually a configuration problem.
or in this specific case it might be that there was a online hickup preventing correct access to gamejolt or something like that.
OK, first:
The important part of the error message is the "of null" (or "of undefined" in other cases).
That means that some data the engine needs is undefined (or not available).

The most common cause of such an error is actually to load and continue a savegame after a change in the plugin manager made the older saves incompatible, so make sure all playtesters start new playtests whenever something was changed there.

second, the only plugin involved in the error is the gamejolt plugin.
If two or more plugins had been involved it might have been an incompatibility between them, but with only one plugin in the error trace it is usually a configuration problem.
or in this specific case it might be that there was a online hickup preventing correct access to gamejolt or something like that.
Alrighty, I'll go ahead and take a look at the plugins configuration, though my co-dev was the one who implemented it, so he'd probably be better suited to the task. In the event that the configuration isn't the problem, and it's an online hiccup, do you have any suggestions or advice on how to proceed?

EDIT: Could it also be possible that the gamejolt plugin's position in my load order is causing problems? It appears at the bottom of the load order, as you can see in the OP.
Could it also be possible that the gamejolt plugin's position in my load order is causing problems? It appears at the bottom of the load order, as you can see in the OP.
possible, but rather unlikely.
problems caused by the order of plugins are usually caused by two plugins being in the wrong order, but the error lists only one plugin as involved.
If the order were the problem, then only if the plugin programmer made mistakes and if the plugin was above something - as the last plugin in the list, no single alias could cause a problem.
Well, as it is, we think we've found the problem. It was due to an issue born from the notifications of the gamejolt plugin. We went ahead and adjusted that and it SEEMS to be working fine, now. We're also going to implement an in-game version of the achievement system so that the gamejolt plugin can be turned off by the player at the start of the game with no consequence. After plenty of playtesting, the crashes have not happened again. If they do, I'll provide an update, but at least for the moment, I think we can say this issue is solved.
Moderator note: Moving to Plugin Support

Original thread: https://forums.rpgmakerweb.com/threads/removechild-of-null-error-happening-at-random.133203/