Random crashes on RPG Maker 1.6.1

Hello! I encountered strange behavior with the game I make. It has random crashes during gameplay not tied to a specific action or time - it may happen after 20 minutes of playing or 6 hours. Battle/Map changes don’t affect this occurrence in any visible way, at least I didn’t detect a pattern during the testing.

The first variation can be captured via screenshot and it looks like the attached picture:

Problem1.png


Other crashes forcebly close the game and I can only provide console output from debug.log after it happens. These errors look like:

[1220/181051.502:ERROR:http_transport_win.cc(175)] WinHttpCrackUrl: The URL does not use a recognized protocol (0x2ee6)

and

The procedure entry point TryAquireSRWLockExclusive could not be located in the dynamic link library KERNEL32.dll.

Googling these problems didn't achieve much except I found the issues may be tied to nwjs version. Tried to updatade it manually in the backup project but I couldn't get enough time to see if the crash is still around because the game eats up a lot of memory and closes down. This occurs with ~ 4 GB of memory and the error is "TypeError. Cannot read property 'resolution' of undefined". So the straight up update didn't work for me.

RPG Maker MV has no updates in Steam - I double checked this before posting. Tried to switch off all the plugins I have in the project and it didn't have any effect on the crashes.

Any ideas on what this could be? The crashing problems seems to affect only Windows users but I cna't be sure since I don't have a lot of Mac/Linux players in the active community.
When you report an error like that, you need to show the console output (open it via f8 in game) and possibly even your plugin list. Since it's about a JSON, there's a chance the problem is related to plugin incompatibilities or badly made plugins. Or third possibility the computer might be so old that there are compatibility issues between hardware and software, but I don't think that would be the issue.
When you report an error like that, you need to show the console output (open it via f8 in game) and possibly even your plugin list. Since it's about a JSON, there's a chance the problem is related to plugin incompatibilities or badly made plugins. Or third possibility the computer might be so old that there are compatibility issues between hardware and software, but I don't think that would be the issue.

Ok, I'll try to catch JSON error one more time with console open, plus try to see if it pops up with no plugins active. With other issues, I'm afraid it's impossible - the game folds, including the console. So, debug.log content is about everything I can offer for this issue.

As for the tech, I don't think so. I run it with i7 and 16 GB of memory on Win 10. The lowest setting I caught the error was a vm with 4 GB RAM and 2.8 CPU. I used VMWare with latest soft and tools. I'm no expert but RPG Maker should run fine on slightly more than a toaster.
Yes, it should run fine on something slightly more than a toaster, but virtual machine simulations bring all sorts of problems on their own, so it's no wonder that it crashes.
where did you store the project?
JSON errors could also be an indicator of damaged files (very few plugins modify the json files themselves).
For example those files can be damaged if you work inside a cloudsync'ed folder, only use cloud for backup but never open the project in such a place with the editor.
Yes, it should run fine on something slightly more than a toaster, but virtual machine simulations bring all sorts of problems on their own, so it's no wonder that it crashes.

This may be true for my own testing yet I received crash reports from players directly and they didn't use VMs or sandbox applications.

where did you store the project?
JSON errors could also be an indicator of damaged files (very few plugins modify the json files themselves).
For example those files can be damaged if you work inside a cloudsync'ed folder, only use cloud for backup but never open the project in such a place with the editor.

The project's is on my local hard drive and make cloud backups manually after finishing my work. So I don't think this is the case.
and where on your harddrive?
there is a reason why I asked for the full filepath, the cloudsync was only an example for several different reasons why something can fail like that, and that all can be checked by seeing the full path.
and where on your harddrive?
there is a reason why I asked for the full filepath, the cloudsync was only an example for several different reasons why something can fail like that, and that all can be checked by seeing the full path.

Oops, sorry. Didn't undrestand it was important. My full path to the project is - D:\Last project\Active project folder 161
yes, you just found another problem.
In RMMV the games are HTML5-based, which means that all foldernames and all filenames have to obey to networking rules or it will cause problems on loading.

Basically that means no spaces (here you went wrong), only latin letters and only a limited number of special signs.
You can test that in full error messages on the console - any part of the filenames and foldernames that is replaced by %-number in a browser is a sign of a symbol that is not allowed under networking rules (like spaces that are replaced with %20)

This might not be the cause of this specific error (50/50 chance), but it will cause you problems later on if you don't rename your folders.
yes, you just found another problem.
In RMMV the games are HTML5-based, which means that all foldernames and all filenames have to obey to networking rules or it will cause problems on loading.

Basically that means no spaces (here you went wrong), only latin letters and only a limited number of special signs.
You can test that in full error messages on the console - any part of the filenames and foldernames that is replaced by %-number in a browser is a sign of a symbol that is not allowed under networking rules (like spaces that are replaced with %20)

This might not be the cause of this specific error (50/50 chance), but it will cause you problems later on if you don't rename your folders.

Thanks for the info, this is a new detail for me. I'll change the name, it's not a problem but do I need to name output game packages according to these rules too? Usually, I name them something like Windows X v0.4. Guess I'll need to change this too?
the filenames are important, although the name of a setup program or an archive does not matter because it will not be executed itself.

Original thread: https://forums.rpgmakerweb.com/threads/random-crashes-on-rpg-maker-1-6-1.103616/