OrcaSlicer
OrcaSlicer copied to clipboard
Segmentation fault on Linux upon launch
Is there an existing issue for this problem?
- [X] I have searched the existing issues
OrcaSlicer Version
2.0.0
Operating System (OS)
Linux
OS Version
Archlinux
Additional system information
No response
Printer
irrelevant
How to reproduce
Start orcaslicer
Actual results
Segmentation fault
Expected results
Should start
Project file & Debug log uploads
orca-slicer ~
[2024-05-04 00:00:17.990370] [0x00007632dae8f480] [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:7256): Gtk-CRITICAL **: 00:00:18.102: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.102: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): GLib-GObject-CRITICAL **: 00:00:18.102: invalid cast from 'wxPizza' to 'GtkCellLayout'
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.102: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.103: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.103: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): GLib-GObject-CRITICAL **: 00:00:18.103: invalid cast from 'wxPizza' to 'GtkCellLayout'
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.103: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
(orca-slicer:7256): GLib-GObject-CRITICAL **: 00:00:18.103: invalid cast from 'wxPizza' to 'GtkCellLayout'
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.103: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
(orca-slicer:7256): GLib-GObject-CRITICAL **: 00:00:18.104: invalid cast from 'wxPizza' to 'GtkCellLayout'
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.104: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
(orca-slicer:7256): GLib-GObject-CRITICAL **: 00:00:18.105: invalid cast from 'wxPizza' to 'GtkCellLayout'
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.105: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
(orca-slicer:7256): GLib-GObject-CRITICAL **: 00:00:18.105: invalid cast from 'wxPizza' to 'GtkCellLayout'
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.105: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
(orca-slicer:7256): GLib-GObject-CRITICAL **: 00:00:18.106: invalid cast from 'wxPizza' to 'GtkCellLayout'
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.106: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
(orca-slicer:7256): GLib-GObject-CRITICAL **: 00:00:18.107: invalid cast from 'wxPizza' to 'GtkCellLayout'
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.107: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
(orca-slicer:7256): GLib-GObject-CRITICAL **: 00:00:18.108: invalid cast from 'wxPizza' to 'GtkCellLayout'
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.108: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
(orca-slicer:7256): GLib-GObject-CRITICAL **: 00:00:18.108: invalid cast from 'wxPizza' to 'GtkCellLayout'
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.108: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.204: gtk_window_resize: assertion 'height > 0' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.206: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.206: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.206: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.206: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.206: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.206: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.206: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.206: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.211: gtk_window_resize: assertion 'height > 0' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.212: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.212: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.268: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.268: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.275: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.275: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.277: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.277: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.282: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.282: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.287: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.287: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.292: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.292: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.297: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.297: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.301: gtk_widget_set_size_request: assertion 'width >= -1' failed
(orca-slicer:7256): Gtk-CRITICAL **: 00:00:18.301: gtk_widget_set_size_request: assertion 'width >= -1' failed
zsh: segmentation fault (core dumped) orca-slicer
Checklist of files to include
- [X] Log file
- [ ] Project file
Anything else?
Actually it used to work. Not sure what happened.
The same situation. Delete connection to the printer and will get normal start. Add connect to the printer (klipper+mainsail) and will get crash. After that crash on start. https://github.com/SoftFever/OrcaSlicer/commit/c2e19b65a8e0f4aaa2d146ed9fea1ef1e47438d6 - Not helped. Sorry for my english. )
@kvetal I don't think we have the same issue?
The segmentation fault even happens if I remove the folder .config/OrcaSlicer
.
Or how do you make it work?
@kvetal I don't think we have the same issue?
The segmentation fault even happens if I remove the folder
.config/OrcaSlicer
.Or how do you make it work?
Oh, maybe I was wrong! When I delete a folder, everything starts fine until I add the connection again. Perhaps this is really a different problem. Repeats even when running from docker.
@kvetal maybe your problem is this https://github.com/SoftFever/OrcaSlicer/issues/4308
They show some workarounds.
But my problem is separate.
This is the same issue as https://github.com/SoftFever/OrcaSlicer/issues/3516.
TLDR: Orcaslicer needs to be linked to webkit2gtk, and the package for it is obviously a dependency.
On MX Linux 23 AHS I've solved this problem by installing gstreamer1.0-x package. Maybe it can be helpfull for somebody else.
Thank you. Sadly on ArchLinux there are no more gstreamer1.0 packages available.
EDIT: Hah! Actually installing gst-plugins-base-1.24.x on ArchLinux fixes it!
@alive-corpse how did you figure it out if I may ask?
EDIT2: Running the GUI seems to work fine. Although runnning orca-slicer --help
from the command line still segfaults:
orca-slicer --help ~
[2024-05-06 13:46:24.942688] [0x00007b3e1cccd480] [trace] Initializing StaticPrintConfigs
zsh: segmentation fault (core dumped) orca-slicer --help
Can you confirm that @alive-corpse ?
how did you figure it out if I may ask?
It's not my merit. I've found this solution in other issue: https://github.com/SoftFever/OrcaSlicer/issues/3516
Can you confirm that @alive-corpse ?
Yep! I have the same symptoms.
Thanks @Nuc1eoN - installing gst-plugins-base
on Arch fixed this issue for me as well.
I has the same issue on Debian 12 https://github.com/SoftFever/OrcaSlicer/issues/5369#issuecomment-2228668216
I experience the same segfault crash on nixos and on popos (2 different machines)