Open estokes opened 1 month ago
Do you have popdev:master
added to the system?
I did not, I do now (sorry I didn't know about it). So far I can't reproduce it with the popdev:master packages. I will reopen if I manage to.
eeeeh, I spoke too soon. Now, it doesn't crash Xwayland, but switching to other windows and then back to discord causes discord to stop accepting mouse clicks or scroll wheel events. Typing still works, and the gui is still updating, but the mouse does nothing.
The tray icon also still generates a menu on click, so the app is alive, just the main window either isn't accepting clicks or isn't getting them. Possibly relevant logs,
journal Aug 13 13:41:18 mazikeen cosmic-comp[261479]: [GL] GL_INVALID_VALUE in glTexSubImage2D(xoffset 0 + width 24 > 10)
discord stderr [57:0813/133843.793702:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
I can reproduce it reliably now. Steps,
I encountered the same issue after following these steps.
A workaround I found was to resize the application, switch to full screen, and then exit full screen.
this behavior happens with Brave Browser as well. the workaround works on it too. I've added popdev:master to my install
On PopOs 22.04 with the latest cosmic debs as of 2024-08-13 using the scroll wheel in discord causes Xwayland to crash (all X11 windows become just title bars with no content and cannot be closed). Cosmic does not restart Xwayland after that and the only way to restore X11 functionality is to log out and back in.
discord output [181:0813/124034.181059:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times! [181:0813/124040.253123:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times! [5:0813/124049.287721:FATAL:electron_browser_main_parts.cc(502)] Failed to shutdown. [181:0813/124049.287622:ERROR:connection.cc(61)] X connection error received. Connection lost to X server ':1'
journal Aug 13 12:40:49 mazikeen cosmic-comp[253704]: Event thread exiting due to connection error Connection reset by peer (os error 104) Aug 13 12:40:49 mazikeen systemd[2165]: app-flatpak-com.discordapp.Discord-255813.scope: Consumed 14.704s CPU time. Aug 13 12:40:50 mazikeen systemd[1]: Started crash report submission. Aug 13 12:40:50 mazikeen whoopsie[256143]: [12:40:50] Using lock path: /var/lock/whoopsie/lock Aug 13 12:40:50 mazikeen systemd[1]: whoopsie.service: Deactivated successfully. Aug 13 12:40:51 mazikeen systemd[1]: Started crash report submission. Aug 13 12:40:51 mazikeen whoopsie[256147]: [12:40:51] Using lock path: /var/lock/whoopsie/lock Aug 13 12:40:51 mazikeen systemd[1]: whoopsie.service: Deactivated successfully. Aug 13 12:41:31 mazikeen cosmic-comp[253704]: Failed to update Xwm stacking order. Aug 13 12:41:31 mazikeen cosmic-comp[253704]: Failed to update Xwm stacking order.
cosmic-comp then outputs Failed to update Xwm stacking order several times per second until it is restarted.