Game sometimes crashes when transfering player

For some reason the game sometimes crashes when I transfer from one map to another. Before transfering to the other map, the screen turns black and then the game just shuts down. 


I am using a 1920 x 1080p resolution. When I turn off all plugins and use a standard, blank map, the problem is gone, but as soon as I use my 1920 x 1080 parallax backgrounds for the maps I am transfering between, the problem appears, even with all plugins off and with the game running on the standard resolution.


I have attached a screenshot of the error message. Does anyone perhaps know what is causing this?


  Untitled.png
what is your map size (in tiles), what is your game screen size (same as the parallax size or what) and how large are those parallaxes in MB?


And what are names and fileformats? Because the last errorline says "bad image data", which means the browser failed to load the image, and now you need to find out why.


Please also post the full path of the parallax picture that caused the error, beginning with the drive letter (c:\ or so) and ending on the .png of the file - there are several ways how a bad filepath can cause this.
Thank you. The map size does not seem to matter, because it happens both with my 40 x 22 maps I normally use on 1080p and with the 17 x 13 standard maps in standard resolution.


The screen size for my 40 x 22 maps (48x48 tiles) would be 1920 x 1056 when playing on 1080p and the parallax is 1920 x 1080. However, I've experimented with different tile sizes before and had the same problem with a game screen size of 1920 x 1080 (with 120x120 tiles). I have also experimented with the standard resolution with maps of 17 x 13 (standard 48 x 48 tiles) with the parallax of 1920 x 1080 and I still have the problem.


The largest parallax file size is only 132 KB. 


The parallax that causes the problem is either:


C:\Users\Andrew\Desktop\New Folder\The Way of the Game\The Way of the Game\img\parallaxes\nmgtestmap


C:\Users\Andrew\Desktop\New Folder\The Way of the Game\The Way of the Game\img\parallaxes\nmgtestmap2


The transfer works fine a few times, but after going back and forth between the two maps about four times, the game shuts down and I get the above error.


It still happens when I turn all plugins, common events, switches, etc. off. The only way to fix it is by not using the parallax.

Original thread: https://forums.rpgmakerweb.com/threads/game-sometimes-crashes-when-transfering-player.67769/