flathub / com.ultimaker.cura

https://flathub.org/apps/details/com.ultimaker.cura
6 stars 5 forks source link

System crash when clicking on preview (Fedora 37, Cura 5.3.1) #23

Open iroCheese opened 1 year ago

iroCheese commented 1 year ago

I just discovered a bug after upgrading to Cura 5.3.1, which causes my entire system to crash, whenever I click preview for a sliced project. I described it in Cura issue 15311 (there also are logs included). I think it might be related to some flatpak permission issue, because the AppImage of the same version works on my pc and in the logs before the crash Cura complains with 2023-04-21 09:27:50,053 - WARNING - [JobQueueWorker [1]] USBPrinting.AutoDetectBaudJob.run [56]: serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyS0: [Errno 13] Permission denied: '/dev/ttyS0'

I would greatly appreciate if this could be addressed since I prefer using the flatpak version to the AppImage.

Tim453 commented 1 year ago

Did it work with the Cura versions before? Is your user in the dialout group?

iroCheese commented 1 year ago

It worked with the previous versions. My user is not in the dialout group but I am also not sure which security implications that would have. Especially since I am not even using any USB devices in Cura.

Tim453 commented 1 year ago

I tried it in a Fedora 38 VM and could not recreate the crash.

oct2pus commented 1 year ago

I experienced this crash under arch linux, the appimage works correctly.

you can get around this by enabling Force Layer View compatibility mode in Preferences -> General.

I wonder if this is actually GPU related, I'm currently using an AMD card.

iroCheese commented 1 year ago

For me the issue is also present after upgrading to Fedora 38. However the workaround with enabling Force Layer View compatibility mode seems to work for me. Thanks @oct2pus for pointing that out.