You are not logged in.

#1 2025-02-07 14:22:02

okbzl
Member
Registered: 2024-08-03
Posts: 56

[SOLVED] DDLC won't run under Wayland

Idk if this applies to every Ren'Py game under a specific version, but yeah. DDLC will not run under Wayland. Even after added "GDK_BACKEND=x11", it still won't run. Here's the log (Using Purist Mod, but the vanilla game have the same issue.):

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 188, in script call
    call _gl_test
  File "renpy/common/00gltest.rpy", line 361, in script
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 361, in <module>
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 287, in _m1_00gltest__gl_test
    _gl_performance_test()
  File "renpy/common/00gltest.rpy", line 304, in _gl_performance_test
    ui.interact(suppress_underlay=True, suppress_overlay=True)
error: wayland not available

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

Full traceback:
  File "/home/chutienbinh/Games/ddlc-purist/renpy/bootstrap.py", line 295, in bootstrap
    renpy.main.main()
  File "/home/chutienbinh/Games/ddlc-purist/renpy/main.py", line 487, in main
    run(restart)
  File "/home/chutienbinh/Games/ddlc-purist/renpy/main.py", line 147, in run
    renpy.execution.run_context(True)
  File "/home/chutienbinh/Games/ddlc-purist/renpy/execution.py", line 761, in run_context
    context.run()
  File "renpy/common/00start.rpy", line 188, in script call
    call _gl_test
  File "renpy/common/00gltest.rpy", line 361, in script
    $ __gl_test()
  File "/home/chutienbinh/Games/ddlc-purist/renpy/ast.py", line 814, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/home/chutienbinh/Games/ddlc-purist/renpy/python.py", line 1719, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/00gltest.rpy", line 361, in <module>
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 287, in _m1_00gltest__gl_test
    _gl_performance_test()
  File "renpy/common/00gltest.rpy", line 304, in _gl_performance_test
    ui.interact(suppress_underlay=True, suppress_overlay=True)
  File "/home/chutienbinh/Games/ddlc-purist/renpy/ui.py", line 285, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/home/chutienbinh/Games/ddlc-purist/renpy/display/core.py", line 2494, in interact
    self.start()
  File "/home/chutienbinh/Games/ddlc-purist/renpy/display/core.py", line 1686, in start
    self.set_mode()
  File "/home/chutienbinh/Games/ddlc-purist/renpy/display/core.py", line 1916, in set_mode
    if draw.set_mode(virtual_size, physical_size, fullscreen):
  File "renpy/gl/gldraw.pyx", line 185, in renpy.gl.gldraw.GLDraw.set_mode (gen/renpy.gl.gldraw.c:2695)
    pygame.display.init()
  File "src/pygame_sdl2/display.pyx", line 96, in pygame_sdl2.display.init (gen/pygame_sdl2.display.c:2113)
error: wayland not available

Linux-6.13.1-zen1-1-zen-x86_64-with-glibc2.2.5
Ren'Py 6.99.12.4.2187
Doki Doki Literature Club - Purist Mod 1.1.1

Another Ren'Py game, Katawa Shoujo Re-Engineered, run perfectly under Wayland. I have XWayland instakked too, in case you ask. Also, Danganronpa 2 also won't run under Wayland for some reason, Danganronpa 1 run just fine

Last edited by okbzl (2025-02-09 03:02:49)

Offline

#2 2025-02-07 23:36:02

okbzl
Member
Registered: 2024-08-03
Posts: 56

Re: [SOLVED] DDLC won't run under Wayland

Ok, managed to fix DDLC by add SDL_VIDEODRIVER=x11. Danganronpa 2 though, here's the log

QT_DEBUG_PLUGINS=1 ./Launcher
QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3" since plugins are disabled in static builds
This application failed to start because it could not find or load the Qt platform plugin "wayland;xcb".

Available platform plugins are: xcb.

Reinstalling the application may fix this problem.
Aborted (core dumped)

Already have both libxcb and lib32-libxcb installed, btw

Last edited by okbzl (2025-02-07 23:36:39)

Offline

#3 2025-02-08 03:07:31

progandy
Member
Registered: 2012-05-17
Posts: 5,296

Re: [SOLVED] DDLC won't run under Wayland

Try to set QT_QPA_PLATFORM=xcb as well.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#4 2025-02-08 06:59:02

okbzl
Member
Registered: 2024-08-03
Posts: 56

Re: [SOLVED] DDLC won't run under Wayland

Ok, now the launcher works. The game itself doesn't. Here's the log

[FMOD] Driver 0 - default
[FMOD] Driver 1 - samplerate
[FMOD] Driver 2 - speexrate
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[FMOD] Driver 3 - jack
ALSA lib pcm_oss.c:404:(_snd_pcm_oss_open) Cannot open device /dev/dsp
[FMOD] Driver 4 - oss
[FMOD] Driver 5 - pipewire
[FMOD] Driver 6 - pulse
[FMOD] Driver 7 - speex
[FMOD] Driver 8 - upmix
[FMOD] Driver 9 - vdownmix
[FMOD] Driver 10 - lavrate
[FMOD] Driver 11 - sysdefault:CARD=PCH
[FMOD] Driver 12 - front:CARD=PCH,DEV=0
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
[FMOD] Driver 13 - surround21:CARD=PCH,DEV=0
[FMOD] Driver 14 - surround40:CARD=PCH,DEV=0
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
[FMOD] Driver 15 - surround41:CARD=PCH,DEV=0
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
[FMOD] Driver 16 - surround50:CARD=PCH,DEV=0
[FMOD] Driver 17 - surround51:CARD=PCH,DEV=0
[FMOD] Driver 18 - surround71:CARD=PCH,DEV=0
[FMOD] Driver 19 - hdmi:CARD=PCH,DEV=0
[FMOD] Driver 20 - usbstream:CARD=PCH
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:404:(_snd_pcm_oss_open) Cannot open device /dev/dsp
Segmentation fault (core dumped)

Offline

#5 2025-02-09 03:02:33

okbzl
Member
Registered: 2024-08-03
Posts: 56

Re: [SOLVED] DDLC won't run under Wayland

Ok, SDL_VIDEODRIVER=x11. I have to put both variables, and the game finally run

Offline

Board footer

Powered by FluxBB