"Failed to load" on deployed build

Hi all,

I deployed a Windows build of my project, and when using the default Encryption for images, I get this error message on game start, during the very first loading process before Title Screen:

Failed to load
img/system/WindowArrow.png

1729457568349.png


When I hit Retry, the game will load normally and is playable without problems.

"WindowArrow.png" is used by Galv's Message Plugin "GALV_MessageStylesMZ".

I can't see anything special about it. My thought was, it might not be found due to the encryption, changing .png to .png_.
But why would it be loaded correctly after "Retry". And why only this image, and not all the other ones? I'm confused, since everything works fine (including this image).

When deploying without encrypting any files, the error won't show up.

Is this some typical thing with a known solution?

Thanks!
Did you tick the "exclude unused files" box (or whatever it is called"?
That can only tell what files are used from the database. It cannot tell if a file is used in other situations, such as a plugin.
I haven't read the code but I recall system images are loaded when Scene_Boot is created but plugins are loaded even before.
Maybe something is not ready when the image is used.
Need to check when I have a chance.

Edit*
Just tested using a fresh project, and I didn't get the error message like the OP did.
Maybe there's another plugin that caches those pictures?
No, I didn't use the "Exclude unused files" option.
I haven't read the code but I recall system images are loaded when Scene_Boot is created but plugins are loaded even before.
Maybe something is not ready when the image is used.
Need to check when I have a chance.

Edit*
Just tested using a fresh project, and I didn't get the error message like the OP did.
Maybe there's another plugin that caches those pictures?
Thank you! I was able to narrow down another plugin that indeed handled the graphics. I delayed the loading and the error message is gone.

Maybe it was just a coincidence, "WindowArrow" showed up there, so it didn't have anything to do with the Galv Message Plugin.
what other plugin was it? sounds like either a preloader or a cache management plugin...

Original thread: https://forums.rpgmakerweb.com/threads/failed-to-load-on-deployed-build.172721/