RMMZ Crashing When Selecting Picture In Show Picture Command

Hello I have been working on a project that requires many pictures, over 500. I have been experiencing a crash issue when using the show picture command when I go to select a picture, MZ immediately crashes. Now this is a totally random thing it could happen after selecting 5 pictures or it could happen after selecting 50 pictures you never quite know when it will crash or why.

This did not start happening till I had over 200 pictures in my pictures folder. I have them organized into folders of less then 100 pictures in each folder. I am not sure how to get any error data on this so unfortunately I do not have data about it. The only thing I haven't tried yet is to store the pictures in folders of like 10 to 20 pictures in each. Reason I have not done this is because I would have to basically just start my game over if changing the destination of all those pictures...

Sadly I have lost over 3 hours of work to this bug and I would like to know if there is some work around our fix I could apply to get it to not crash.

Any help would be greatly appreciated!

*UPDATE*
I looked last night and at this point I have over 1000 pictures. The bug is not happening any more frequently but it is still happening also I will add I am on RMMZ 1.8.0 not using any plugins.
Which version of the editor are you using?
I had the same issue. I think early versions of the RMMZ editor had a memory leak in the code that let you preview pics.
When I upgraded to 1.7.0 the bug completely disappeared, 1.8.0 also works perfectly.
Yeah, not sure about that. My current IMG/Pictures folder for my Sudoku game has 846 pictures in it with over 400 of those being high quality background images. And I don't have any sub folders to separate them. And I haven't experienced this. I typically upgrade to the newest version of MZ when they are released.

In addition to the editor version, I would consider checking the integrity of your files (if using Steam version).

Also, are you using any plugins? That might be a possible source of the problem. I think I only have maybe 5 plugins in my project.

Not sure what else, but I don't think that using more folders or any folders at all should be necessary.

If separating your pictures into folders is a good idea, I would love to know the rationale behind it so I can consider whether that is something I should also be doing.

Hopefully more experienced people can give you some additional ideas.

If you find a resolution, please let everyone know for any future people who search for this issue.
Which version of the editor are you using?
I had the same issue. I think early versions of the RMMZ editor had a memory leak in the code that let you preview pics.
When I upgraded to 1.7.0 the bug completely disappeared, 1.8.0 also works perfectly.
I am on the latest version of the editor 1.8.0.
Also I looked last night and now I have over 1000 pictures.
Yeah, not sure about that. My current IMG/Pictures folder for my Sudoku game has 846 pictures in it with over 400 of those being high quality background images. And I don't have any sub folders to separate them. And I haven't experienced this. I typically upgrade to the newest version of MZ when they are released.

In addition to the editor version, I would consider checking the integrity of your files (if using Steam version).

Also, are you using any plugins? That might be a possible source of the problem. I think I only have maybe 5 plugins in my project.

Not sure what else, but I don't think that using more folders or any folders at all should be necessary.

If separating your pictures into folders is a good idea, I would love to know the rationale behind it so I can consider whether that is something I should also be doing.

Hopefully more experienced people can give you some additional ideas.

If you find a resolution, please let everyone know for any future people who search for this issue.
Reason being for the folders is because the pictures are all individual characters and different emotions and clothes so I separated them by character name and by emotion and clothing. I no longer need to search through all the images to find something specific.

No, no plugins being used at all on this project.

Original thread: https://forums.rpgmakerweb.com/threads/rmmz-crashing-when-selecting-picture-in-show-picture-command.168396/