Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing window when launched with Wayland backend on Linux #74

Closed
joshua-stone opened this issue Nov 9, 2022 · 4 comments
Closed

Missing window when launched with Wayland backend on Linux #74

joshua-stone opened this issue Nov 9, 2022 · 4 comments

Comments

@joshua-stone
Copy link

Starc opens as expected when launched under XWayland:

$ ./starc-setup.AppImage 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
2022.11.08 20:06:09.542 [I] Story Architect version 0.3.1, Fedora Linux 36.20221030.0 (Silverblue), x86_64
2022.11.08 20:06:09.804 [I] Setup translation for en
2022.11.08 20:06:10.000 [I] Connect to server
2022.11.08 20:06:10.054 [I] Show projects screen
2022.11.08 20:06:10.054 [D] Show content: Ui::ProjectsToolBar, Ui::ProjectsNavigator, Ui::ProjectsView
2022.11.08 20:06:24.194 [I] Closing application
2022.11.08 20:06:24.195 [I] Closing current project
2022.11.08 20:06:24.195 [W] Current project is not valid. Skip closing.

But when attempting to launch under Wayland, the window doesn't appear:

$ QT_QPA_PLATFORM=wayland ./starc-setup.AppImage 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
2022.11.08 20:07:29.448 [I] Story Architect version 0.3.1, Fedora Linux 36.20221030.0 (Silverblue), x86_64
2022.11.08 20:07:29.703 [I] Setup translation for en
2022.11.08 20:07:29.705 [W] Failed to load client buffer integration: "wayland-egl"
2022.11.08 20:07:29.705 [W] Available client buffer integrations: ()
2022.11.08 20:07:29.708 [W] No shell integration named "xdg-shell" found
2022.11.08 20:07:29.708 [W] No shell integration named "xdg-shell-v6" found
2022.11.08 20:07:29.708 [W] No shell integration named "wl-shell" found
2022.11.08 20:07:29.708 [W] No shell integration named "ivi-shell" found
2022.11.08 20:07:29.708 [W] Loading shell integration failed.
2022.11.08 20:07:29.708 [W] Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")
2022.11.08 20:07:29.728 [I] Connect to server
2022.11.08 20:07:29.766 [I] Show projects screen
2022.11.08 20:07:29.766 [D] Show content: Ui::ProjectsToolBar, Ui::ProjectsNavigator, Ui::ProjectsView
$ QT_QPA_PLATFORM=wayland-egl ./starc-setup.AppImage 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
qt.qpa.wayland: EGL not available
2022.11.08 20:07:44.017 [I] Story Architect version 0.3.1, Fedora Linux 36.20221030.0 (Silverblue), x86_64
2022.11.08 20:07:44.274 [I] Setup translation for en
2022.11.08 20:07:44.276 [W] Cannot find EGLConfig, returning null config
2022.11.08 20:07:44.280 [W] No shell integration named "xdg-shell" found
2022.11.08 20:07:44.280 [W] No shell integration named "xdg-shell-v6" found
2022.11.08 20:07:44.280 [W] No shell integration named "wl-shell" found
2022.11.08 20:07:44.280 [W] No shell integration named "ivi-shell" found
2022.11.08 20:07:44.280 [W] Loading shell integration failed.
2022.11.08 20:07:44.280 [W] Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")
2022.11.08 20:07:44.280 [W] No decoration plugins available. Running with no decorations.
2022.11.08 20:07:44.300 [I] Connect to server
2022.11.08 20:07:44.337 [I] Show projects screen
2022.11.08 20:07:44.337 [D] Show content: Ui::ProjectsToolBar, Ui::ProjectsNavigator, Ui::ProjectsView

strace output repeatedly prints this:

poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=17, events=POLLIN}], 3, 0) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\0\0\0\0\0\0\0", 16)         = 8
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=17, events=POLLIN}], 3, 2997) = 0 (Timeout)
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=17, events=POLLIN}], 3, 0) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\0\0\0\0\0\0\0", 16)         = 8
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=17, events=POLLIN}], 3, 1497) = 0 (Timeout)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
@joshua-stone
Copy link
Author

Very similar behavior in the flatpak:

$ flatpak run --socket=wayland --env=QT_QPA_PLATFORM=wayland dev.storyapps.starc
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
2022.11.09 14:46:26.131 [I] Story Architect version 0.3.1, Freedesktop.org SDK 22.08 (Flatpak runtime), x86_64
2022.11.09 14:46:26.271 [I] Setup translation for en
2022.11.09 14:46:26.273 [W] Failed to load client buffer integration: "wayland-egl"
2022.11.09 14:46:26.273 [W] Available client buffer integrations: ()
2022.11.09 14:46:26.274 [W] No shell integration named "xdg-shell" found
2022.11.09 14:46:26.274 [W] No shell integration named "xdg-shell-v6" found
2022.11.09 14:46:26.274 [W] No shell integration named "wl-shell" found
2022.11.09 14:46:26.274 [W] No shell integration named "ivi-shell" found
2022.11.09 14:46:26.274 [W] Loading shell integration failed.
2022.11.09 14:46:26.274 [W] Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")
2022.11.09 14:46:26.292 [I] Connect to server
2022.11.09 14:46:26.294 [I] Show projects screen
2022.11.09 14:46:26.294 [D] Show content: Ui::ProjectsToolBar, Ui::ProjectsNavigator, Ui::ProjectsView
$ flatpak run --socket=wayland --env=QT_QPA_PLATFORM=wayland --devel --command=strace dev.storyapps.starc /app/bin/starc/starc


<snip>

poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=20, events=POLLIN}], 3, 0) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\0\0\0\0\0\0\0", 16)         = 8
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=20, events=POLLIN}], 3, 1494) = 0 (Timeout)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=20, events=POLLIN}], 3, 1496) = 0 (Timeout)
write(5, "\1\0\0\0\0\0\0\0", 8)         = 8
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=20, events=POLLIN}], 3, 0) = 1 ([{fd=5, revents=POLLIN}])
read(5, "\1\0\0\0\0\0\0\0", 16)         = 8
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)

@faithanalog
Copy link

seeing the same problem on my machine with wayland. i have QT apps set to launch with wayland by default, so when I ran the program it just, didn't show any windows at all.

@dimkanovikov
Copy link
Member

Possibly fixed. Please try to check it with the latest dev-version package.

@joshua-stone
Copy link
Author

I believe this issue can closed as of the latest build. There is still an issue with client-side decorations though:

#79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants