Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 956364 - games-emulation/dolphin-2503: "Failed to create Vulkan surface" / "Failed to initialize video backend" / "Failed to create OpenGL window"
Summary: games-emulation/dolphin-2503: "Failed to create Vulkan surface" / "Failed to ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL: https://github.com/dolphin-emu/dolphi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-21 01:19 UTC by Alexis
Modified: 2025-06-10 05:56 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of `emerge --info` (emerge.info,12.71 KB, text/plain)
2025-06-06 06:22 UTC, Alexis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis 2025-05-21 01:19:25 UTC
Context: Wayfire 0.9.0; Dolphin built with `egl`, `sdl`, and `vulkan` flags enabled. 

After selecting a game and selecting "Play", a "Warning" dialog box appears with the message "Failed to create Vulkan surface", "Failed to initialize video backend", "Failed to create OpenGL window", depending on whether one has specified the Vulkan, OpenGL, or Software Renderer backend, respectively. Regardless of which dialog box action is selected, the game itself is not started.

The current Flatpak version of Dolphin does not exhibit any of this behaviour.

Reproducible: Always
Comment 1 Thibaud CANALE 2025-06-04 20:00:27 UTC
Do you see any other error message when Dolphin is running from a terminal?

As far as I know, Dolphin does not run on Wayland, based on commit https://github.com/dolphin-emu/dolphin/commit/a3b06b0572d7a16d8ede9c849e9f549a283123df

Is it better if you run it with this command:
```
env QT_QPA_PLATFORM=xcb dolphin-emu
```

Also, can you provide `emerge --info gui-wm/wayfire games-emulation/dolphin` please?
Comment 2 Alexis 2025-06-06 06:21:42 UTC
> Do you see any other error message when Dolphin is running from a terminal?

No.

> As far as I know, Dolphin does not run on Wayland

Ah! i'd assumed that it would straightforwardly be able to run under Xwayland, but apparently not.

> env QT_QPA_PLATFORM=xcb dolphin-emu

This works! i might create a 'Dolphin emulator' page on the wiki to note this. Thanks!

> Also, can you provide `emerge --info gui-wm/wayfire games-emulation/dolphin` please?

Sure, i'll attach that output here shortly.
Comment 3 Alexis 2025-06-06 06:22:19 UTC
Created attachment 930401 [details]
Output of `emerge --info`
Comment 4 Thibaud CANALE 2025-06-07 15:08:18 UTC
(In reply to Alexis from comment #2)
> > As far as I know, Dolphin does not run on Wayland
> 
> Ah! i'd assumed that it would straightforwardly be able to run under
> Xwayland, but apparently not.

You’re right, it should, as I understand from upstream’s commit (see link in URL).

> > env QT_QPA_PLATFORM=xcb dolphin-emu
> 
> This works! i might create a 'Dolphin emulator' page on the wiki to note
> this. Thanks!

It shouldn’t be necessary, and I guess it could be later an issue once Wayland is actually supported.
So I suggest to avoid doing it as it might concern just a few cases, or to explicitly say it’s a temporary workaround and then referencing this bug.

I have pushed a PR for the 2506 release, see bug 957145; it will be a good work to test and see if the issue is still present with this release before I (or someone else) create an issue report on upstream’s tracker https://bugs.dolphin-emu.org/projects/emulator/issues
Comment 5 Larry the Git Cow gentoo-dev 2025-06-07 16:32:32 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb8d0e908fe84b832efdfd9db795137a9d519353

commit fb8d0e908fe84b832efdfd9db795137a9d519353
Author:     Thibaud CANALE <thican@thican.net>
AuthorDate: 2025-06-04 18:39:00 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2025-06-07 16:32:27 +0000

    games-emulation/dolphin: add 2506
    
    Closes: https://bugs.gentoo.org/952952
    Closes: https://bugs.gentoo.org/957145
    Bug: https://bugs.gentoo.org/956364
    Signed-off-by: Thibaud CANALE <thican@thican.net>
    Part-of: https://github.com/gentoo/gentoo/pull/42449
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 games-emulation/dolphin/Manifest            |   1 +
 games-emulation/dolphin/dolphin-2506.ebuild | 301 ++++++++++++++++++++++++++++
 2 files changed, 302 insertions(+)
Comment 6 Thibaud CANALE 2025-06-09 17:49:23 UTC
Alexis: does it work without the workaround with this the 2506 release?

With a better look, the upstream commit "Enforce XCB within code" has been merged with release 2506.
And the workaround was inside its desktop file, I think it should have work.

Please confirm this has been solved.
Comment 7 Alexis 2025-06-10 05:56:22 UTC
Yep, the 2506 release works "out of the box", no workaround needed - thanks! Marking this as RESOLVED - FIXED.

Thanks also for your edits to the "Dolphin emulator" page!