MV Crashes When Deleting Specific Map

I have a very strange bug.

Whenever I go to delete a certain map in my game project, the editor crashes. It doesn't matter if it's nested or not. The original map that it was duplicated from (and it's almost an exact duplicate -- the only difference is where the teleports go to and the addition of some chests) gives me no issues if I try to delete it.

Anybody else have this problem (a stubborn map)? There aren't any starting locations on it. Very odd.
Can you delete other maps without any problems? Take a look at the permissions on that particular file and see if something's been done to remove your write access to the file.
I have deleted many other maps within the same project today. There are no differences in permissions.
If you copy that map and paste it to a new one, can you then delete the new one?


Any chance you have the "problem" map's .json file open in a text editor?
I had this exact problem once. I had duplicated a map, and would crash when I tried to delete the duplicated one. I Don't remember how I ended up fixing it, because I just ignored it and eventually I had gotten to delete it. I do remember things I did before though. I did make a copy of the whole project folder, to save as a backup. And because of some stuff I ended up deleting my original project folder and started working with copied folder. I may have deleted it then, but I can't recall. The other thing I did was create a new project because I deleted the img folder, thinking I wasn't going to use it. and instead of copying over the img folder, I just copied over my data and js folder into the newly created project.
I'd also try rebooting, because sometimes Windows thinks I have a file open when I really don't.
If you copy that map and paste it to a new one, can you then delete the new one?

Any chance you have the "problem" map's .json file open in a text editor?
If I copy-and-paste it, I can delete it.

I just tried after a fresh boot with nothing but chrome and MV open -- no dice. 

I mean, I just can just hide the map in a nest somewhere, but it's kinda silly/annoying!
Did you make any operation outside of the editor with that specific map? like copying the file instead of copying the entry in the editor's map list?


The only thing I can think of that might cause such a behavious is if either the mapfile itself or (more likely) the mapinfo file contains illegal data, and such illegal data is usually the result of operations outside the editor itself.
The only files i've edited are graphic files and some of the base javascript (rpg_objects, etc.).  haven't opened any maps or anything else in the data folder.
If it really bothers you that much, can you zip up your project and give me a link? If I can take a look at it I might be able to find something.


But if you'd rather not go to the trouble and are semi-content to just hide it in an out-of-the-way spot ... it's up to you.
Without the separate RTP nowadays, it's such a hassle to share projects. I'll just hide it away and deal with it since I don't want to upload ~500 megs.
I'd only need the Data folder, which are all text files.
Haha. I just ran into this exact issue. I'm trying to reduce the lag of World Map. I even changed it to Area map. Reason i copy pasted the map was to see if the lag was due to "Map linking" Since I have about 12 maps within the world map. But I still had lag in the stand alone world map. Then I was like...okay, this wasn't the issue. But everytime I go to delete the copied map. CRASHHHHHHHHHHHH.
Can you please list the EXACT steps you follow from start to finish? I just copied/pasted a map and was able to delete it just fine. Please let me know every single click that you in order to make this happen.
In editor, went to my world map: ALPHA. This map contains 12 other maps. In my ALPHA map, I created an event that transfers player to the copied world map that is a stand alone. Tested game. Issue still there. After I did test game I went and deleted copied map but got crash. Restarted RPG maker and tried again. Crashed. Then I went to original map and deleted the transfer player event and then attempted to delete my copied map. Still crashed. On start up, the copied map is still there.
working fine for me. I cannot reproduce this following those steps. Maybe I need the exact steps you took to copy / paste, also info about where the player's start position is, did you load a saved game or start a new one? Did you save the game or just close it?
Well, I'll be a monkey's uncle... or aunt, I suppose.

I have a project where I copied a map because I was making major event changes - that way I could still reference the old events, which I wanted to be able to do.

After reading this thread, I backed up my project and then went to delete said copied map (Right Click -> Delete) and it deleted, but then it crashed. All I did was open, delete, crash. Will tinker for a bit and see what I can do with a shiny new project and report back.

Some random thoughts on the map in question:

  • It is a copy of a map that has sub-maps
  • It was copied to the same "tree level" as the main map (directly under the main project)
  • It has a number of events
  • It has no start locations, player or otherwise
[Edit] Forgot to note - by it was deleted, I mean it was removed from the list - it still exists after reopening the project.
Okay so solution. Thanks to taarna23. The map was linked to my project cube. So I threw it into another map, then it allowed me to delete it. It won't let you delete the map if the map is set inside of the project name if that makes any sense. So drag and drop the map you want to delete into another map. Worked for me. 😀
Well, I'm glad you found a solution... I can't seem to replicate the behaviour with a new project. Seems very odd.

Original thread: https://forums.rpgmakerweb.com/threads/mv-crashes-when-deleting-specific-map.51156/