{image=...} text tag crashes Ren'Py

Bug #487701 reported by 000
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ren'Py
Fix Released
Medium
Tom Rothamel

Bug Description

Right in the demo... err, tutorial. In Fonts and Text Tags section, Ren'Py crashes whenever it reaches the
' e "They let you include images inside text{image=exclamation.png} Neat{image=exclamation.png}"'
line...

Traceback:"
I'm sorry, but an exception occured while executing your Ren'Py
script.

IOError: Couldn't find file 'exclamation.png'.

While running game code:
 - script call at line 124 of renpy-6.10.0/tutorial/game/script.rpy
 - script at line 68 of D:\RenPy 睲enpy-6.10.0\tutorial/game/demo_text.rpy

-- Full Traceback ------------------------------------------------------------

  File "D:\RenPy 睲enpy-6.10.0\renpy\bootstrap.py", line 260, in bootstrap
  File "D:\RenPy 睲enpy-6.10.0\renpy\main.py", line 308, in main
  File "D:\RenPy 睲enpy-6.10.0\renpy\main.py", line 92, in run
  File "D:\RenPy 睲enpy-6.10.0\renpy\execution.py", line 230, in run
  File "D:\RenPy 睲enpy-6.10.0\renpy\ast.py", line 340, in execute
  File "D:\RenPy 睲enpy-6.10.0\renpy\exports.py", line 515, in say
  File "D:\RenPy 睲enpy-6.10.0\renpy\character.py", line 551, in __call__
  File "D:\RenPy 睲enpy-6.10.0\renpy\character.py", line 510, in do_display
  File "D:\RenPy 睲enpy-6.10.0\renpy\character.py", line 325, in display_say
  File "D:\RenPy 睲enpy-6.10.0\renpy\ui.py", line 69, in interact
  File "D:\RenPy 睲enpy-6.10.0\renpy\display\core.py", line 1519, in interact
  File "D:\RenPy 睲enpy-6.10.0\renpy\display\core.py", line 1672, in interact_core
  File "D:\RenPy 睲enpy-6.10.0\renpy\display\core.py", line 256, in predict
  File "D:\RenPy 睲enpy-6.10.0\renpy\display\core.py", line 230, in visit_all
  File "D:\RenPy 睲enpy-6.10.0\renpy\display\core.py", line 256, in <lambda>
  File "D:\RenPy 睲enpy-6.10.0\renpy\display\im.py", line 429, in predict_one
  File "D:\RenPy 睲enpy-6.10.0\renpy\display\im.py", line 188, in get
  File "D:\RenPy 睲enpy-6.10.0\renpy\display\im.py", line 458, in load
  File "D:\RenPy 睲enpy-6.10.0\renpy\loader.py", line 320, in load
IOError: Couldn't find file 'exclamation.png'.

While running game code:
 - script call at line 124 of renpy-6.10.0/tutorial/game/script.rpy
 - script at line 68 of D:\RenPy 睲enpy-6.10.0\tutorial/game/demo_text.rpy

Ren'Py Version: Ren'Py 6.10.0e
"
exclamation.png is right there in the tutuorial\game...

Revision history for this message
Tom Rothamel (renpytom) wrote :

I don't know what's wrong with this, since it's working for me. I'll note that your directory structure seems to include weird Kanji, so something could be up with that.

Revision history for this message
000 (nz000) wrote :

...Thats no kanji. It is perfectly normal cyrillic letter. At least it is in reality.
It seems Ren'Py still hates russian letters in the path, as when I removed that letter, image tag started to work just good.

While this "bug" is solved, it indicates greater hole in Ren'Py's handling of non-ASCII sympols you might want to look into.

Revision history for this message
000 (nz000) wrote :

Added: If you are interested, path what made bug appear was: "D:\RenPy ц\renpy-6.10.0\" and so on.

Revision history for this message
Tom Rothamel (renpytom) wrote :

This should be fixed in lp:renpy revision 849. The important change was the one made to renpy/loader.py.

Basically, what was happening was we were combining a unicode filename with a non-unicode path. The latter was being promoted to unicode incorrectly, and then the file wouldn't load. Python 3 will make this easier, but for now we're stuck with a clusterfsck of unicode and non-unicode strings.

I've moved my development tree to a directory that contains non-ascii characters in it, so hopefully we won't see this sort of problem again.

You can call off the bears with rocket launchers.

Changed in renpy:
assignee: nobody → renpytom (renpytom)
importance: Undecided → Medium
status: New → Fix Committed
milestone: none → 6.10.1
Tom Rothamel (renpytom)
Changed in renpy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.