- Feb 21, 2018
- 278
- 170
Just thought i'd mention in case useful to anyone. I dont know whether since the post, this has been solved (I didnt really have to time to scan through every thread page to make 100% sure). I was having major issues with this error, occurring on virtually every interactive scene and particularly on the Laura scene in the bathroom (which has three stages), the third stage would always crash with this error. After trying pretty much all of the above nothing definitely worked as a fool proof workaround.Uncaught TypeError: Cannot read property ‘Width’ of null.
I’m going to try to consolidate responses here and hopefully at the least we’ll have a single reference to point people to the next time (100 Times?) this is asked.
This is not a bug that the developer of the game has caused. As such no matter how much we complain about it he won’t be able to fix it. The game is built using RPGMaker MV and this error seems to be a core code error with the coding framework. The best I can tell, from all the information gathered, it is a problem loading up resources in the game. Most likely the internal code to load a resource like a picture or sound effect is on one thread but the code used to manipulate the resource is on a separate thread. The threads get out of sync and the resource is not ready yet when the code is trying to access it.
There have been numerous suggestions to alleviate this issue. Some work for one person while others don’t. Try them all and see what works for you.
- press and hold the up key on your keyboard as the animation starts and during
- if you are in full screen mode, change to windowed mode.
- if you are in windowed mode change to full screen mode.
- change the screen refresh rate in your computers display settings to 60hz
- use enigmavbunpacker to unpack the original executable of the game into open directories (or find an already unpacked version to download)
- open up your task manager when the game is running and change the processing priority of the application to above normal
- if you have a seperate video card with gpu then force the application to run on gpu instead of cpu.
If anyone has any other suggestions I missed let me know and I can edit this post to add it.
So after spending nearly half a day trying to work around this error, decided I had to try something out. I downloaded the modded version of the game and transferred over my saves and its worked perfectly since, none of these errors, the game is running much smoother and never encountered this error since (the modded version even seems to take up less of my systems CPU to function).
Dont know whether the modder had isolated the problem during modding and fixed it in their version? (I really dont know enough about coding to be able to say, just a guess. Although I did read on a coding forum while trying to search out a fix that the crux of the matter with this is having the <script> tag at the very end of the <body> as "You're importing your script before the browser has had a chance to parse the document body"). Anyway just thought id mention it to anyone whos been really frustrated by this error, probably worth playing the modded version for now.