question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Opening Ryujinx on Wayland

See original GitHub issue

Bug Report

N/A

What’s the issue you encountered?

Running Ryujinx under wayland, Ryujinx crashes.

Wayland do not have access to Display or primary monitor.

This change allows Ryujinx to run:

diff --git i/Ryujinx/Ui/MainWindow.cs w/Ryujinx/Ui/MainWindow.cs
index 53a44818..0e516010 100644
--- i/Ryujinx/Ui/MainWindow.cs
+++ w/Ryujinx/Ui/MainWindow.cs
@@ -123,8 +123,8 @@ namespace Ryujinx.Ui
             ThemeHelper.ApplyTheme();
 
             // Sets overridden fields.
-            int monitorWidth  = Display.PrimaryMonitor.Geometry.Width  * Display.PrimaryMonitor.ScaleFactor;
-            int monitorHeight = Display.PrimaryMonitor.Geometry.Height * Display.PrimaryMonitor.ScaleFactor;
+            int monitorWidth  = 0;
+            int monitorHeight = 0;
 
             DefaultWidth  = monitorWidth  < 1280 ? monitorWidth  : 1280;
             DefaultHeight = monitorHeight < 760  ? monitorHeight : 760;

How can the issue be reproduced?

Run Ryujinx under wayland

Log file

N/A

Environment?

  • Ryujinx version: 1.0.0-dirty
  • System Specs:
    • OS: linux
    • CPU: i7
    • GPU: nvidia
    • RAM: 16GB
  • Applied Mods : No

Additional context?

get monitor number size and scale with gtk and wayland No monitor report by Gdk on wayland

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
albfancommented, Aug 1, 2022

@andercard0 yes, the PR #3516, but emulation will break.

GDK_BACKEND=x11 /path/to/Ryujinx

is your best workaround right now

1reaction
albfancommented, Oct 7, 2021

Of course after that games fails due to x11 implementation:

(Ryujinx:46723): Gdk-WARNING **: 08:49:27.253: gdkwindow-x11.c:5653 drawable is not a native X11 window
00:00:01.625 |E| Application : Unhandled exception caught: System.NotImplementedException: Framebuffer configuration couldn't be selected and fallback not implemented!
   at SPB.Platform.GLX.GLXOpenGLContext.Initialize(NativeWindowBase window)
   at Ryujinx.Ui.GLWidget.Intialize() in /home/alberto/projects/csharp/Ryujinx/Ryujinx/Ui/GLWidget.cs:line 89
   at Ryujinx.Ui.GLWidget.OnDrawn(Context cr) in /home/alberto/projects/csharp/Ryujinx/Ryujinx/Ui/GLWidget.cs:line 47
   at Gtk.Widget.Drawn_cb(IntPtr inst, IntPtr cr)
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] Missing native Wayland support · Issue #5566
Ryujinx still runs on XWayland warning Applicatio... ... [Bug] Missing native Wayland support #5566. Open ... Launching Ryujinx in a Wayland environment ...
Read more >
Ryujinx is really really good on Linux : r/linux_gaming
That's weird, I have a 6800XT and I can't run Xeno DE and FE3H at all on Yuzu while on ... X11 vs...
Read more >
Progress Report November 2022
A final boon to any Linux users; Ryujinx can also now boot in Wayland directly, if setting two-hundred environment variables wasn't to your ......
Read more >
Skyline and Ryujinx Emulator Improvements NordVPN goes ...
... initial steps for Wayland 4:30 NordVPN goes partially open source 5:24 Voultar quick WiiU fix with a PICO Sources: https:// ryujinx.org/ ...
Read more >
AUR (en) - ryujinx-git - Arch Linux
Install the [7.0.200] .NET SDK or update [/home/geher/.cache/paru/clone/ryujinx-git/src/Ryujinx/global.json] to match an installed SDK.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found