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

Zach zachm.72 at hotmail.com
Sun Jun 18 05:23:31 BST 2023


Package: renpy
Version: 8.0.3+dfsg-1
Severity: important
X-Debbugs-Cc: zachm.72 at 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 "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"):
  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 (154, 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:58:13 2023

I have noticed this behavior on both Wayland and X11 and I have noticed this behavior on my own installed Debian 12
KDE system, a fresh live Debian 12 KDE instance on the same system, as well as on a fresh live Debian 12 KDE instance
on a different machine. This behavior also occurs when running the Ren'py example package "renpy-thequestion".
Here's an example of a report when attempting to run said package:

I'm sorry, but an uncaught exception occurred.

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
The Question 7.0
Sun Jun 18 04:04:48 2023

-- System Information:
Debian Release: 12.0
  APT prefers bookworm
  APT policy: (500, 'bookworm'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages renpy depends on:
ii  fonts-dejavu-core     2.37-6
ii  fonts-motoya-l-cedar  1.01-5
ii  fonts-nanum           20200506-1
ii  fonts-roboto-hinted   2:0~20170802-3
ii  python3               3.11.2-1+b1
ii  python3-future        0.18.2-6
ii  python3-pefile        2023.2.7-1
ii  python3-pygame-sdl2   8.0.2-2
ii  python3-renpy         8.0.3+dfsg-1
ii  python3-six           1.16.0-4

Versions of packages renpy recommends:
ii  python3-tk  3.11.2-3
ii  zenity      3.44.0-1

renpy suggests no packages.

-- no debconf information



More information about the Pkg-games-devel mailing list