Bug#1038426: renpy: Uncaught exception occurred when attempting to start

2023-06-18 Thread Markus Koschany
Control: severity -1 grave
Control: tags -1 help

Am Sonntag, dem 18.06.2023 um 04:23 + schrieb Zach:
>  File "/usr/share/games/renpy/renpy/sl2/slast.py", line 84, in compile_expr
>     return compile(expr, filename, "eval", flags, 1)
> ValueError: AST node line range (628, 1) is not valid

Thanks for the report. I can reproduce this problem in stable and unstable but
I don't know what is causing the Python error at the moment. In any case this
makes the game unusable and must be fixed eventually.

Regards,

Markus


signature.asc
Description: This is a digitally signed message part


Bug#1038426: renpy: Uncaught exception occurred when attempting to start

2023-06-17 Thread Zach
Package: renpy
Version: 8.0.3+dfsg-1
Severity: important
X-Debbugs-Cc: zachm...@hotmail.com

The package "renpy" fails to start on an amd64 Debian 12 KDE system. When 
trying to run the package I get a text file
pop-up that says "I'm sorry, but an uncaught exception occurred." and then 
provides some extra information which I
have included below:

After initialization, but before game start.
  File "renpy/common/00preferences.rpy", line 612, in prepare_screen
screen _self_voicing():
  File "renpy/common/00preferences.rpy", line 612, in prepare
screen _self_voicing():
  File "renpy/common/00preferences.rpy", line 622, in prepare
text message:
  File "renpy/common/00preferences.rpy", line 622, in prepare
text message:
ValueError: AST node line range (628, 1) is not valid

-- Full Traceback 

Full traceback:
  File "/usr/share/games/renpy/renpy/bootstrap.py", line 277, in bootstrap
renpy.main.main()
  File "/usr/share/games/renpy/renpy/main.py", line 664, in main
run(restart)
  File "/usr/share/games/renpy/renpy/main.py", line 95, in run
renpy.display.screen.prepare_screens()
  File "/usr/share/games/renpy/renpy/display/screen.py", line 976, in 
prepare_screens
s.ast.prepare_screen()
  File "renpy/common/00preferences.rpy", line 612, in prepare_screen
screen _self_voicing():
  File "renpy/common/00preferences.rpy", line 612, in prepare
screen _self_voicing():
  File "renpy/common/00preferences.rpy", line 622, in prepare
text message:
  File "renpy/common/00preferences.rpy", line 622, in prepare
text message:
  File "/usr/share/games/renpy/renpy/sl2/slast.py", line 84, in compile_expr
return compile(expr, filename, "eval", flags, 1)
ValueError: AST node line range (628, 1) is not valid

Linux-6.1.0-9-amd64-x86_64-with-glibc2.36 x86_64
Ren'Py 8.0.3.22090809u
Ren'Py Launcher 8.0.3.22090809u
Sun Jun 18 03:36:23 2023

However, I have noticed that this output is inconsistent and sometimes outputs 
something different. Here is an
example:

I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.
  File "launcher/game/translations.rpy", line 78, in prepare_screen
screen translate:
  File "launcher/game/translations.rpy", line 78, in prepare
screen translate:
  File "launcher/game/translations.rpy", line 83, in prepare
frame:
  File "launcher/game/translations.rpy", line 83, in prepare
frame:
  File "launcher/game/translations.rpy", line 87, in prepare
window:
  File "launcher/game/translations.rpy", line 87, in prepare
window:
  File "launcher/game/translations.rpy", line 89, in prepare
has vbox
  File "launcher/game/translations.rpy", line 89, in prepare
has vbox
  File "launcher/game/translations.rpy", line 136, in prepare
hbox:
  File "launcher/game/translations.rpy", line 136, in prepare
hbox:
  File "launcher/game/translations.rpy", line 138, in prepare
frame:
  File "launcher/game/translations.rpy", line 138, in prepare
frame:
  File "launcher/game/translations.rpy", line 143, in prepare
has vbox
  File "launcher/game/translations.rpy", line 143, in prepare
has vbox
  File "launcher/game/translations.rpy", line 148, in prepare
frame:
  File "launcher/game/translations.rpy", line 148, in prepare
frame:
  File "launcher/game/translations.rpy", line 150, in prepare
has vbox
  File "launcher/game/translations.rpy", line 150, in prepare
has vbox
  File "launcher/game/translations.rpy", line 152, in prepare
textbutton _("Generate Translations"):
  File "launcher/game/translations.rpy", line 152, in prepare
textbutton _("Generate Translations"):
ValueError: AST node line range (154, 1) is not valid

-- Full Traceback 

Full traceback:
  File "/usr/share/games/renpy/renpy/bootstrap.py", line 277, in bootstrap
renpy.main.main()
  File "/usr/share/games/renpy/renpy/main.py", line 664, in main
run(restart)
  File "/usr/share/games/renpy/renpy/main.py", line 95, in run
renpy.display.screen.prepare_screens()
  File "/usr/share/games/renpy/renpy/display/screen.py", line 976, in 
prepare_screens
s.ast.prepare_screen()
  File "launcher/game/translations.rpy", line 78, in prepare_screen
screen translate:
  File "launcher/game/translations.rpy", line 78, in prepare
screen translate:
  File "launcher/game/translations.rpy", line 83, in prepare
frame:
  File "launcher/game/translations.rpy", line 83, in prepare
frame:
  File "launcher/game/translations.rpy", line 87, in prepare
window:
  File "launcher/game/translations.rpy", line 87, in prepare
window:
  File "launcher/game/translations.rpy", line 89, in prepare
has vbox
  File "launcher/game/translations.rpy", line 89, in prepare
has vbox
  File "launcher/game/translations.rpy", line 136, in prepare
hbox:
  File