pop-os / cosmic-epoch

Next generation Cosmic desktop environment
3.09k stars 82 forks source link

pop up dialogs (or similar) causing apps to crash in Cosmic DE #466

Open bflanagin opened 3 months ago

bflanagin commented 3 months ago

Application: BambuLabs Studio via appImage Gtk3 app using Xwayland

How to reproduce:

Launch BambuLabs Studio using this appImage Import an stl. I used one exported from blender which needed resizing. stl_example.zip Application crashes at this point.

Expected Behavior:

In Gnome Wayland a dialog pops up to resize the stl.

Notes

I believe this is a cosmic comp issue, and a regression from an earlier working state.

cosmic-comp 0.1\~1722288835\~22.04\~af553a1 xwayland 2:24.1.0-1pop1\~1716447027\~22.04\~eb750bb

Error message

(bambu-studio:14635): Gdk-ERROR **: 09:34:58.105: The program 'bambu-studio' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 16440 error_code 3 request_code 4 (core protocol) minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)
VandaLHJ commented 3 months ago

When opening color picker dialog in gimp first instance works (and on exit get the first line), then continue to be unsuable.

(gimp:81364): Gdk-WARNING **: 17:16:56.040: GdkWindow 0x60065d unexpectedly destroyed

(gimp:81364): Gtk-CRITICAL **: 17:16:58.086: IA__gtk_widget_get_visible: assertion 'GTK_IS_WIDGET (widget)' failed
gimp: Gimp-Widgets-KRYTYCZNE: gimp_dialog_factory_position_dialog: assertion 'GTK_IS_WIDGET (dialog)' failed

(gimp:81364): GLib-GObject-WARNING **: 17:16:58.086: invalid unclassed pointer in cast to 'GtkWindow'

(gimp:81364): Gtk-CRITICAL **: 17:16:58.086: IA__gtk_window_set_title: assertion 'GTK_IS_WINDOW (window)' failed

(gimp:81364): GLib-GObject-WARNING **: 17:16:58.086: invalid unclassed pointer in cast to 'GimpColorDialog'
gimp: Gimp-Widgets-KRYTYCZNE: gimp_color_dialog_set_color: assertion 'GIMP_IS_COLOR_DIALOG (dialog)' failed

(gimp:81364): GLib-GObject-WARNING **: 17:16:58.086: invalid unclassed pointer in cast to 'GtkWindow'

(gimp:81364): Gtk-CRITICAL **: 17:16:58.086: IA__gtk_window_present_with_time: assertion 'GTK_IS_WINDOW (window)' failed
bflanagin commented 2 months ago

Update for BambuLabs Studio

cosmic-comp 0.1\~1722855532\~22.04\~4748916

Error message in console after crash remains the same. However the two pop up windows now appear and only crash the system once you interact with the windows.

AlwynBarry commented 2 months ago

Dialog boxes also a problem with Libreoffice.

Reproduce by:

Seen on:

(As documented elsewhere, GIMP also crashes when opened from a command line and then opening the file open dialog. - see https://github.com/pop-os/cosmic-epoch/issues/835)

AlwynBarry commented 2 months ago

Ok, I've investigated the LibreOffice issue some more today, and I can't repeat the crash, even though it was a show-stopper yesterday! I do daily updates in the background, so maybe something was fixed??

codevski commented 1 month ago

Im getting this exact error for another application. Not sure if its worth creating a new issue? for reference the error:

(theseus_gui:195934): Gdk-ERROR **: 23:20:26.615: The program 'theseus_gui' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 284 error_code 3 request_code 40 (core protocol) minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

This is while trying to open up modrinth-app (appimage).

I'm happy to create a new Issue if these are totally not related to the core issue.