Could not load image u'gui/window_icon.png': error('Unsupported image format',)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Teiruzu
Newbie
Posts: 1
Joined: Sat Jun 19, 2021 3:55 am
Contact:

Could not load image u'gui/window_icon.png': error('Unsupported image format',)

#1 Post by Teiruzu »

Well, I was developing my project and, suddenly, this error begins to appear, I already verified that my code does not have parts that conflict, or at least that is what I think, I already checked and rewritten twice, the error appears after using the renpy updater, only at that moment, just after closing to start the new executable the error appears.
Yesterday I had managed to make it go away, but today it came back and I have no idea exactly as it can cause it.
It doesn't prevent it from being playable or causes another problem in-game, it is just annoying, because you have to start the new executable manually.

Full traceback:
File "renpy/bootstrap.py", line 326, in bootstrap
renpy.main.main()
File "renpy/main.py", line 617, in main
run(restart)
File "renpy/main.py", line 148, in run
renpy.execution.run_context(True)
File "renpy/execution.py", line 922, in run_context
context.run()
File "renpy/common/00start.rpy", line 208, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 387, in script
$ __gl_test()
File "renpy/common/00start.rpy", line 208, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 387, in script
$ __gl_test()
File "renpy/ast.py", line 922, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "renpy/python.py", line 2218, in py_exec_bytecode
exec(bytecode, globals, locals)
File "renpy/common/00gltest.rpy", line 387, in <module>
$ __gl_test()
File "renpy/common/00gltest.rpy", line 317, in _m1_00gltest__gl_test
_gl_performance_test()
File "renpy/common/00gltest.rpy", line 342, in _gl_performance_test
ui.interact(suppress_underlay=True, suppress_overlay=True)
File "renpy/ui.py", line 298, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "renpy/display/core.py", line 3237, in interact
self.start()
File "renpy/display/core.py", line 2169, in start
self.post_init()
File "renpy/display/core.py", line 2247, in post_init
self.set_icon()
File "renpy/display/core.py", line 2293, in set_icon
icon,
File "renpy/display/scale.py", line 65, in image_load_unscaled
rv = pgrender.load_image_unscaled(f, hint)
File "renpy/display/pgrender.py", line 165, in load_image
raise Exception("Could not load image {!r}: {!r}".format(filename, e))
Exception: Could not load image u'gui/window_icon.png': error('Unsupported image format',)

Windows-10-10.0.19041
Ren'Py 7.4.6.1693

I have already replaced the icon several times, even with the one Ren'py brings by default
In fact, I opened that same png in an editor and overwritten it to rule out that problem.
Also already use the GUI update.
I hope and can someone help me, thanks in advance :(

Post Reply

Who is online

Users browsing this forum: Bing [Bot], kedta35