Jump to content

Cura 5.3 crashs at startup (linux)


Go to solution Solved by CapnKernel,

Recommended Posts

Posted (edited) · Cura 5.3 crashs at startup (linux)

I am using Cura 5.3 on Linux / Fedora 38.

Starting Cura is not possible anymore. Cura crashs with the following error traceback:

Traceback (most recent call last):

File "/usr/lib/python3.11/site-packages/UM/Qt/ListModel.py", line 54, in data

return self._items[index.row()][self._role_names[role].decode("utf-8")]

~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

KeyError: 'material_name'

and the following log output:

 

Thread 0x00007fb4367fc6c0 (most recent call first):
  File "/usr/lib/cura/plugins/USBPrinting/USBPrinterOutputDeviceManager.py", line 90 in _updateThread
  File "/usr/lib64/python3.11/threading.py", line 982 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb4377fe6c0 (most recent call first):
  File "/home/stransky/.local/share/cura/5.3/plugins/OctoPrintPlugin/OctoPrintPlugin/python-zeroconf/src/zeroconf/_services/browser.py", line 541 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb437fff6c0 (most recent call first):
  File "/usr/lib64/python3.11/threading.py", line 331 in wait
  File "/usr/lib64/python3.11/threading.py", line 629 in wait
  File "/usr/lib/cura/plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py", line 81 in _handleOnServiceChangedRequests
  File "/usr/lib64/python3.11/threading.py", line 982 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb448c326c0 (most recent call first):
  File "/usr/lib64/python3.11/selectors.py", line 468 in select
  File "/usr/lib64/python3.11/asyncio/base_events.py", line 1884 in _run_once
  File "/usr/lib64/python3.11/asyncio/base_events.py", line 607 in run_forever
  File "/home/stransky/.local/share/cura/5.3/plugins/OctoPrintPlugin/OctoPrintPlugin/python-zeroconf/src/zeroconf/_core.py", line 494 in _run_loop
  File "/usr/lib64/python3.11/threading.py", line 982 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb4494336c0 (most recent call first):
  File "/usr/lib/cura/plugins/RemovableDriveOutputDevice/RemovableDrivePlugin.py", line 61 in _updateThread
  File "/usr/lib64/python3.11/threading.py", line 982 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb449c346c0 (most recent call first):
  File "/home/stransky/.local/share/cura/5.3/plugins/OctoPrintPlugin/OctoPrintPlugin/python-zeroconf/src/zeroconf/_services/browser.py", line 541 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb44a4356c0 (most recent call first):
  File "/usr/lib64/python3.11/selectors.py", line 468 in select
  File "/usr/lib64/python3.11/asyncio/base_events.py", line 1884 in _run_once
  File "/usr/lib64/python3.11/asyncio/base_events.py", line 607 in run_forever
  File "/home/stransky/.local/share/cura/5.3/plugins/OctoPrintPlugin/OctoPrintPlugin/python-zeroconf/src/zeroconf/_core.py", line 494 in _run_loop
  File "/usr/lib64/python3.11/threading.py", line 982 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb46a7fc6c0 (most recent call first):
  File "/usr/lib/python3.11/site-packages/UM/Backend/Backend.py", line 169 in _storeStderrToLogThread
  File "/usr/lib64/python3.11/threading.py", line 982 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb46affd6c0 (most recent call first):
  File "/usr/lib/python3.11/site-packages/UM/Backend/Backend.py", line 157 in _storeOutputToLogThread
  File "/usr/lib64/python3.11/threading.py", line 982 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb4ba7fc6c0 (most recent call first):
  File "/usr/lib64/python3.11/threading.py", line 327 in wait
  File "/usr/lib64/python3.11/threading.py", line 479 in acquire
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 98 in _nextJob
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 124 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb4baffd6c0 (most recent call first):
  File "/usr/lib64/python3.11/threading.py", line 327 in wait
  File "/usr/lib64/python3.11/threading.py", line 479 in acquire
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 98 in _nextJob
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 124 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb4bb7fe6c0 (most recent call first):
  File "/usr/lib64/python3.11/threading.py", line 327 in wait
  File "/usr/lib64/python3.11/threading.py", line 479 in acquire
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 98 in _nextJob
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 124 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb4bbfff6c0 (most recent call first):
  File "/usr/lib64/python3.11/threading.py", line 327 in wait
  File "/usr/lib64/python3.11/threading.py", line 479 in acquire
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 98 in _nextJob
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 124 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb4c0ff96c0 (most recent call first):
  File "/usr/lib64/python3.11/threading.py", line 327 in wait
  File "/usr/lib64/python3.11/threading.py", line 479 in acquire
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 98 in _nextJob
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 124 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb4c17fa6c0 (most recent call first):
  File "/usr/lib64/python3.11/threading.py", line 327 in wait
  File "/usr/lib64/python3.11/threading.py", line 479 in acquire
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 98 in _nextJob
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 124 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb4c1ffb6c0 (most recent call first):
  File "/usr/lib64/python3.11/threading.py", line 327 in wait
  File "/usr/lib64/python3.11/threading.py", line 479 in acquire
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 98 in _nextJob
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 124 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007fb4c27fc6c0 (most recent call first):
  File "/usr/lib64/python3.11/threading.py", line 327 in wait
  File "/usr/lib64/python3.11/threading.py", line 479 in acquire
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 98 in _nextJob
  File "/usr/lib/python3.11/site-packages/UM/JobQueue.py", line 124 in run
  File "/usr/lib64/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib64/python3.11/threading.py", line 1002 in _bootstrap

Current thread 0x00007fb54d816740 (most recent call first):
  File "/usr/lib/python3.11/site-packages/cura/CrashHandler.py", line 397 in _logInfoWidget
  File "/usr/lib/python3.11/site-packages/cura/CrashHandler.py", line 182 in _createDialog
  File "/usr/lib/python3.11/site-packages/cura/CrashHandler.py", line 86 in __init__
  File "/usr/bin/cura", line 165 in exceptHook
  File "/usr/lib/python3.11/site-packages/UM/Settings/Models/SettingPropertyProvider.py", line 374 in _update
  File "/usr/lib/python3.11/site-packages/UM/Qt/QtApplication.py", line 416 in exec
  File "/usr/lib/python3.11/site-packages/cura/CuraApplication.py", line 895 in run
  File "/usr/bin/cura", line 239 in <module>

 

The only thing overcome the problem is to remove the settings folder $HOME/.local/share/cura. But all my settings are gone.

The problem is reproducable and occurs on two of my Fedora computers.

 

Is there a way to overcome the problem?

 

Regards Rainer

Edited by Pulsar07
  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    Try removing just the plugins from the config directory. If that works, then you can put them back in one by one until you find the problem.

     

    Also: have you had any software updates lately that deal with Python? Fedora is the sort of distro which might have upgraded to Python 3.12, but you need to make sure your Python 3.11 packages are still present and working (can't hurt too much to reinstall them just in case)

  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    Okay, so it's in the config folder, not a problem with Python, and nothing to do with a plugin.

     

    The obvious next to thing to try is to empty the materials folder and see if that helps, but I've also got an inkling it could be in the main config file (cura.cfg). Open that up and search for "material_name" and delete it (and the semicolon delimiting it from other properties) if it appears anywhere.

  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    the curious is: I have search for it with:

    find ~/.local/share/cura -type f -print0 | xargs -0 grep material_name

    and the result was NOTHING FOUND

  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    maybe this snippet of the cura.log helps to identify the area:

    2023-11-23 13:03:30,072 - DEBUG - [MainThread] UM.Qt.QtRenderer._initialize [211]: Support for Vertex Array Objects: True
    2023-11-23 13:03:30,076 - DEBUG - [MainThread] UM.View.GL.OpenGL.__init__ [121]: Initialized OpenGL subsystems.
    2023-11-23 13:03:30,076 - DEBUG - [MainThread] UM.View.GL.OpenGL.__init__ [122]: OpenGL Version:  4.6 (Core Profile) Mesa 23.1.9
    2023-11-23 13:03:30,076 - DEBUG - [MainThread] UM.View.GL.OpenGL.__init__ [123]: OpenGL Vendor:   Intel
    2023-11-23 13:03:30,077 - DEBUG - [MainThread] UM.View.GL.OpenGL.__init__ [124]: OpenGL Renderer: Mesa Intel(R) Iris(R) Plus Graphics (ICL GT2)
    2023-11-23 13:03:30,077 - DEBUG - [MainThread] UM.View.GL.OpenGL.__init__ [125]: GLSL Version:    4.60.0
    2023-11-23 13:03:30,077 - DEBUG - [MainThread] UM.View.GL.ShaderProgram.load [61]: Loading [/usr/share/uranium/resources/shaders/default.shader]...
    2023-11-23 13:03:30,078 - DEBUG - [MainThread] UM.View.GL.ShaderProgram.load [61]: Loading [/usr/share/uranium/resources/shaders/selection.shader]...
    2023-11-23 13:03:30,079 - DEBUG - [MainThread] UM.View.GL.ShaderProgram.load [61]: Loading [/usr/share/uranium/resources/shaders/select_face.shader]...
    2023-11-23 13:03:30,079 - DEBUG - [MainThread] UM.View.GL.ShaderProgram.load [61]: Loading [/usr/share/uranium/resources/shaders/default.shader]...
    2023-11-23 13:03:30,080 - DEBUG - [MainThread] UM.View.GL.ShaderProgram.load [61]: Loading [/usr/share/uranium/resources/shaders/composite.shader]...
    2023-11-23 13:03:30,081 - DEBUG - [MainThread] UM.View.GL.ShaderProgram.load [61]: Loading [/usr/share/cura/resources/shaders/overhang.shader]...
    2023-11-23 13:03:30,082 - DEBUG - [MainThread] UM.View.GL.ShaderProgram.load [61]: Loading [/usr/share/cura/resources/shaders/striped.shader]...
    2023-11-23 13:03:30,083 - DEBUG - [MainThread] UM.View.GL.ShaderProgram.load [61]: Loading [/usr/share/cura/resources/shaders/transparent_object.shader]...
    2023-11-23 13:03:30,084 - DEBUG - [MainThread] UM.View.GL.ShaderProgram.load [61]: Loading [/usr/share/cura/resources/shaders/striped.shader]...
    2023-11-23 13:03:30,085 - DEBUG - [MainThread] UM.View.GL.ShaderProgram.load [61]: Loading [/usr/share/uranium/resources/shaders/platform.shader]...
    2023-11-23 13:03:30,108 - DEBUG - [MainThread] cura.Machines.Models.IntentSelectionModel._update [91]: Updating IntentSelectionModel.
    2023-11-23 13:03:30,109 - DEBUG - [MainThread] cura.Machines.Models.IntentSelectionModel._update [91]: Updating IntentSelectionModel.
    2023-11-23 13:03:30,112 - DEBUG - [MainThread] cura.Machines.Models.IntentSelectionModel._update [91]: Updating IntentSelectionModel.
    2023-11-23 13:03:30,147 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [66]: An uncaught error has occurred!
    2023-11-23 13:03:30,147 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]: Traceback (most recent call last):
    2023-11-23 13:03:30,147 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]:   File "/usr/lib/python3.11/site-packages/UM/Qt/ListModel.py", line 54, in data
    2023-11-23 13:03:30,147 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]:     return self._items[index.row()][self._role_names[role].decode("utf-8")]
    2023-11-23 13:03:30,148 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]:            ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2023-11-23 13:03:30,148 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]: KeyError: 'material_name'
    2023-11-23 13:03:30,157 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [66]: An uncaught error has occurred!
    2023-11-23 13:03:30,158 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]: Traceback (most recent call last): 
    2023-11-23 13:03:30,158 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]:   File "/usr/lib/python3.11/site-packages/UM/Qt/ListModel.py", line 54, in data
    2023-11-23 13:03:30,158 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]:     return self._items[index.row()][self._role_names[role].decode("utf-8")]
    2023-11-23 13:03:30,158 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]:            ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2023-11-23 13:03:30,158 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]: KeyError: 'material_name'
    2023-11-23 13:03:30,161 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [66]: An uncaught error has occurred!
    2023-11-23 13:03:30,162 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]: Traceback (most recent call last):
    2023-11-23 13:03:30,162 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]:   File "/usr/lib/python3.11/site-packages/UM/Qt/ListModel.py", line 54, in data
    2023-11-23 13:03:30,162 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]:     return self._items[index.row()][self._role_names[role].decode("utf-8")]
    2023-11-23 13:03:30,162 - CRITICAL - [MainThread] cura.CrashHandler.__init__ [69]:            ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

     

  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    That definitely looks like a problem starting up OpenGL... updated your graphics drivers recently?... but that doesn't really explain why getting rid of the config folder fixes it... did you try getting rid of the contents of the materials folder like I suggested?

     

    Cause it might just be time for Whack-A-Mole: Create a copy of the complete config folder. Try deleting one part of the folder, if Cura still doesn't load, restore the original copy (removing some things will mess up other things in the process) and try the next bit.

     

    Sorry I can't be more help but this has got me rather vexated too. About the only thing I've had to learn to get Cura running in Linux (openSUSE Tumbleweed being my distro of choice) is don't try running it as root.

     

    And FWIW, what happens if you try the current version (either 5.5 or the 5.6 beta)? They automatically copy config files over from previous versions.

  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    deleting/emptying  the materials folder does not help. After removing all files from the .local/share/cura/5.3/user
     folder Cura is starting and asking to setup an new printer.

     

    When I select my printer (a Creality "Ender 5 Pro")  Cura immediately crashs with the above shown error traceback!

     

  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    ... and it dosn't matter which printer I try to add. Trying a Anycubic or a UltiMakter printer always the same result: crash with the above shown traceback.

  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    I think this is where I have to bow out and hope @Dustin hears this call for help.

  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    This kind exceeds what I can help with.. I would recommend reporting as bug on github for best support.

  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    @Pulsar07

    You're not alone having this issue, if you get a resolution or post it to another forum could you please post a link here?

  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    Did you look at the log file?  There's tons of known issues with simple fixes related to things as diverse as operating system, graphics drivers, bad configuration files, etc.

     

    Please post your log file.

  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    I did look at the log file. I'm running the same OS, the same version of the OS and the same version of Cura. My error message and log file match this almost verbatim. I did a meld between his posted log file and mine and only the time stamps are different. 

    Finally, I didn't want to hijack someone else's thread. 

  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    Sorry that I don't know much about Cura not starting.  I'm using ubuntu and it's fine for me.  There are 2 different appImage's for linux - did you try them both?  One has "modern" in the name, the other doesn't.

  • Link to post
    Share on other sites

    Posted (edited) · Cura 5.3 crashs at startup (linux)
    14 minutes ago, gr5 said:

    There are 2 different appImage's for linux - did you try them both?  One has "modern" in the name, the other doesn't.

    This thread might be about Cura 5.3, but for what it's worth, 5.4 was the last version to have two different AppImages available. 5.5 and up ditched the older one and only has the modern one - now with no need for "modern" in the name - available.

     

    Still think it's worth trying a newer version to see if it has the same problem.

    Edited by Slashee_the_Cow
    • Like 1
    Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    I'm also experiencing this problem with the Fedora RPM version of Cura 5.3.0 on Fedora 38.

     

    I've reported the bug here:

     

      https://bugzilla.redhat.com/show_bug.cgi?id=2252195

    • Like 1
    Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    Thanks for reporting this bug to RedHat.

    To get things working (I have to slice some part for my printer ;-)) I use the 5.3 or 5.5 AppImages (UltiMaker-Cura-5.3.0-linux-modern.AppImage / UltiMaker-Cura-5.5.0-linux-X64.AppImage).

  • Link to post
    Share on other sites

    Posted · Cura 5.3 crashs at startup (linux)

    Some progress has been made.

     

      https://bugzilla.redhat.com/show_bug.cgi?id=2252195#c18

     

    I think we'll see a fix soon.

  • Link to post
    Share on other sites

    • Solution
    Posted · Cura 5.3 crashs at startup (linux)

    The new RPMs mentioned at the end of the bugzilla report fix the problem for me.  Yippee!

    • Heart 1
    Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.9 stable released!
        Here comes Cura 5.9 and in this stable release we have lots of material and printer profiles for UltiMaker printers, including the newly released Sketch Sprint. Additionally, scarf seams have been introduced alongside even more print settings and improvements.  Check out the rest of this article to find out the details on all of that and more
          • Like
        • 5 replies
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Heart
          • Thanks
          • Like
        • 7 replies
    ×
    ×
    • Create New...