SoftFever / OrcaSlicer

G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)
https://discord.gg/P4VE9UY9gJ
GNU Affero General Public License v3.0
6.24k stars 727 forks source link

multiple GTK errors on KDE wayland #5171

Open Nathan22211 opened 3 months ago

Nathan22211 commented 3 months ago

Is there an existing issue for this problem?

OrcaSlicer Version

2.0.0

Operating System (OS)

Linux

OS Version

Arch Linux (zen kernel)

Additional system information

ryzen 7 5700X rx 7600

Printer

can't even get it to launch

How to reproduce

open the app image under KDE wayland on an arch linux install. mind you that webkit2gtk and qt5-wayland are needed on the system to fix some other errors

Actual results

it fails to open

Expected results

it should open as expected

Project file & Debug log uploads

I only really have the console output to go off of

[2024-04-27 11:41:02.195490] [0x00007604c63f9480] [trace]   Initializing StaticPrintConfigs
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1
add font of NanumGothic-Regular returns 1
add font of NanumGothic-Bold returns 1

(orca-slicer:286265): GLib-GObject-CRITICAL **: 11:41:02.547: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.547: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:286265): GLib-GObject-CRITICAL **: 11:41:02.547: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.547: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:286265): GLib-GObject-CRITICAL **: 11:41:02.548: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.548: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:286265): GLib-GObject-CRITICAL **: 11:41:02.548: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.548: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:286265): GLib-GObject-CRITICAL **: 11:41:02.549: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.549: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:286265): GLib-GObject-CRITICAL **: 11:41:02.550: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.550: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:286265): GLib-GObject-CRITICAL **: 11:41:02.550: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.550: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:286265): GLib-GObject-CRITICAL **: 11:41:02.551: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.551: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:286265): GLib-GObject-CRITICAL **: 11:41:02.551: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.551: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:286265): GLib-GObject-CRITICAL **: 11:41:02.552: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.552: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.649: gtk_window_resize: assertion 'height > 0' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.651: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.651: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.651: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.651: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.651: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.651: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.651: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.651: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.656: gtk_window_resize: assertion 'height > 0' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.656: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.656: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.719: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.719: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.727: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.727: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.729: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.729: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.734: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.734: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.738: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.738: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.742: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.742: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.746: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.746: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.750: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:286265): Gtk-CRITICAL **: 11:41:02.750: gtk_widget_set_size_request: assertion 'width >= -1' failed

Checklist of files to include

Anything else?

I don't think it's related to a KDE sizing issue. mine was at 100% and even tried it at 75% to the same effect

patrickslarson8 commented 2 months ago

Experiencing the same issue on a fresh install of Ubuntu 22.04, so I don't think it's related to the KDE environment.

patrickslarson8 commented 2 months ago

Seems to be related to the Bambu Studio code that was pulled in. See also: #886 and #https://github.com/bambulab/BambuStudio/issues/1868.

spusuf commented 1 month ago

Same issue with basically identical logs on Arch Linux using Wayland.

serchemach commented 1 month ago

Had the same issue with Arch Linux using hyprland, was able to solve it by using setting GDK_BACKEND=x11 when running the appimage