Game crashes when loading a save state

When I playtest my game, it works as intended except for when I try to load from a save. I'm using the default Save/Load screens since I don't know much about coding, and it seems to be saving fine. But when I try to load the save, I get an error that says "Oops! An unexpected error has occurred. Uncaught TypeError: Cannot read properties of undefined (reading 'id') File: ENGINE.js@1:155081" followed by a bunch of file locations stuff that makes 0 sense to me.

I ran the game with the Debug window open and got this:

Code:
live2d_21.min.js:1          Failed to load resource: net::ERR_FILE_NOT_FOUND
Live2DFramework_21.js:1          Failed to load resource: net::ERR_FILE_NOT_FOUND
live2dcubismcore.min.js:1          Failed to load resource: net::ERR_FILE_NOT_FOUND
live2dframework.js:1          Failed to load resource: net::ERR_FILE_NOT_FOUND
node:electron/js2c/renderer_init:89 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
  Policy set or a policy with "unsafe-eval" enabled. This exposes users of
  this app to unnecessary security risks.

For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
warnAboutInsecureCSP @ node:electron/js2c/renderer_init:89
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-0000023C00C96200] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
DevTools failed to load source map: Could not parse content for file:///C:/Users/jaymp/AI%20Jam/data/lib/jquery.min.map: Unexpected end of JSON input
ENGINE.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'id')
    at t.makeMutable (ENGINE.js:1:155081)
    at t.blt (ENGINE.js:1:161972)
    at Component_ImageMap.onDataBundleRestore (Component_ImageMap_117.js? [sm]:23:16)
    at Function.ObjectCodec.onRestore (ENGINE.js:1:12529)
    at Function.ObjectCodec.onRestore (ENGINE.js:1:12373)
    at Function.ObjectCodec.onRestore (ENGINE.js:1:12148)
    at Function.ObjectCodec.onRestore (ENGINE.js:1:12148)
    at Function.ObjectCodec.onRestore (ENGINE.js:1:12373)
    at Component_GameSceneBehavior.restoreScene (Component_GameSceneBehavior_42.js? [sm]:479:28)
    at Component_GameSceneBehavior.prepareVisual (Component_GameSceneBehavior_42.js? [sm]:533:10)
t.makeMutable @ ENGINE.js:1
t.blt @ ENGINE.js:1
Component_ImageMap.onDataBundleRestore @ Component_ImageMap_117.js? [sm]:23
ObjectCodec.onRestore @ ENGINE.js:1
ObjectCodec.onRestore @ ENGINE.js:1
ObjectCodec.onRestore @ ENGINE.js:1
ObjectCodec.onRestore @ ENGINE.js:1
ObjectCodec.onRestore @ ENGINE.js:1
Component_GameSceneBehavior.restoreScene @ Component_GameSceneBehavior_42.js? [sm]:479
Component_GameSceneBehavior.prepareVisual @ Component_GameSceneBehavior_42.js? [sm]:533
Component_SceneBehavior.update @ Component_SceneBehavior_13.js? [sm]:187
Object_Base.update @ Object_Base_6.js? [sm]:351
ObjectManager.update @ ObjectManager_8.js? [sm]:257
SceneManager.update @ SceneManager_34.js? [sm]:178
Main.updateFrame @ Main_122.js? [sm]:36
(anonymous) @ Main_122.js? [sm]:308
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1
requestAnimationFrame (async)
i @ ENGINE.js:1

Again, I don't know what any of this means. I can't code very well, and have largely been using the part of the software that doesn't involve messing with the scripts bc I didn't want to mess anything up. I noticed it mentions failing to load Live2D, which confused me because I don't even have Live2D and that's never been a problem before; I can't seem to change this to stop trying to load this feature that I've never owned.

Does anyone know how I can get this to just properly load save states in my game? I'm hoping that it's short enough that I can just disable saving/loading if I can't figure it out in time, but it's definitely preferable to be able to save.
Does the same issue occur if you were to make a new, blank project?
Does the same issue occur if you were to make a new, blank project?
Yeah, I tried remaking the project from scratch and it still crashes when I load a save, same error and everything
Look for a file called ENGINE.js first.
Once you've found it, look for a line of code that partially says:

JavaScript:
.makeMutable = function(

If you open that file in notepad, notepad++ or any other text editor, you can find it by pressing CTRL + F. entering the line above, and it will quickly find it for you.

Then come back and post the contents of that function here. That function should end either with a brace } or a brace and semicolon };

Notes:

Usually, this kind of issues takes place when you deleted an actor, a tileset, or any other asset. Then you try to load that while reading from a saved game, BUT that doesn't exist anymore...

Did you mess with the default installation folder by any chance?
Have you tried reinstalling the application?
Look for a file called ENGINE.js first.
Once you've found it, look for a line of code that partially says:

JavaScript:
.makeMutable = function(

If you open that file in notepad, notepad++ or any other text editor, you can find it by pressing CTRL + F. entering the line above, and it will quickly find it for you.

Then come back and post the contents of that function here. That function should end either with a brace } or a brace and semicolon };

Notes:

Usually, this kind of issues takes place when you deleted an actor, a tileset, or any other asset. Then you try to load that while reading from a saved game, BUT that doesn't exist anymore...

Did you mess with the default installation folder by any chance?
Have you tried reinstalling the application?
This is a fresh install of the application, and I don't mess with the code specifically because I don't know what I'm doing and don't want to mess it up. I looked for the ".makemutable = function" and got this:

JavaScript:
t.prototype.makeMutable=function(){var t,e,i,r;if(this.immutable&&!this.error)return this.immutable=!1,i=$gl.createFramebuffer(),$gl.bindFramebuffer($gl.FRAMEBUFFER,i),$gl.framebufferTexture2D($gl.FRAMEBUFFER,$gl.COLOR_ATTACHMENT0,$gl.TEXTURE_2D,this.texture.id,0),e=new Uint8Array(this.texture.realWidth*this.texture.realHeight*4),$gl.readPixels(0,0,this.texture.realWidth,this.texture.realHeight,$gl.RGBA,$gl.UNSIGNED_BYTE,e),$gl.deleteFramebuffer(i),(t=document.createElement("canvas")).width=this.texture.realWidth,t.height=this.texture.realHeight,this.context=t.getContext("2d"),(r=this.context.createImageData(this.texture.realWidth,this.texture.realHeight)).data.set(e),this.context.putImageData(r,0,0),this.image=t}

Again, no idea what this means. The only guess I have is that this software has stuff with Live2D and maybe that's causing an error because I don't have Live2D? But that hasn't been a problem in the past, so I'm not sure why it would suddenly do this.
I think there's also another part of the code where we should be looking at here.
Main.updateFrame should be found in the Main_122.js file. Can you post the contents here?
With line breaks if possible.

Concerning the makeMutable function... it's actually trying to create a buffer and its texture to hold a 2D image which can be pretty much anything including your typical sprites. Later on it'd try to insert that into the canvas... but fails after trying to get a working GL texture. Again, this is normal for html5 and GLES asset drawing on the canvas (the game screen).
I think there's also another part of the code where we should be looking at here.
Main.updateFrame should be found in the Main_122.js file. Can you post the contents here?
With line breaks if possible.

Concerning the makeMutable function... it's actually trying to create a buffer and its texture to hold a 2D image which can be pretty much anything including your typical sprites. Later on it'd try to insert that into the canvas... but fails after trying to get a working GL texture. Again, this is normal for html5 and GLES asset drawing on the canvas (the game screen).
Is this the part you're talking about? It was the closest I could find to "Main.updateFrame"
Python:
  * @method updateFrame
   */

  Main.prototype.updateFrame = function() {
    if ($PARAMS.showDebugInfo) {
      window.startTime = window.performance != null ? window.performance.now() : Date.now();
    }
    SceneManager.update();
    Graphics.frameCount++;
    if ($PARAMS.showDebugInfo) {
      if (this.debugSprite == null) {
        this.debugSprite = new Sprite_Debug();
      }
      window.endTime = window.performance != null ? window.performance.now() : Date.now();
      if (Graphics.frameCount % 30 === 0) {
        this.debugSprite.frameTime = endTime - startTime;
        return this.debugSprite.redraw();
      }
    }
  };
file:///C:/Users/jaymp/AI%20Jam/data/lib/jquery.min.map
No one mentioned it yet, but just in case, have you tried to rename your project folder to remove the space?
No one mentioned it yet, but just in case, have you tried to rename your project folder to remove the space?
Just tried this, still getting the same errors when I try to save/load in game
The default blank project may have bug in save/load system. You can try to use the Scene-based UI 720p template and see if the save/load works fine there.

Original thread: https://forums.rpgmakerweb.com/threads/game-crashes-when-loading-a-save-state.166159/