#1074239 cura: Cura fails to start

Package:
cura
Source:
cura
Submitter:
Peter Chubb
Date:
2024-07-09 08:51:05 UTC
Severity:
normal
Tags:
#1074239#5
Date:
2024-06-24 23:18:41 UTC
From:
To:
Dear Maintainer,

 I installed the latest cura, typed 'cura' in a terminal window, and got a heap of debug messages, but no cura window.

 Some  messages that may be relevant:
2024-06-25 09:12:27,979 - ERROR - [MainThread] UM.PluginRegistry._findPlugin [730]: Exception: Import error loading module TrimeshReader
2024-06-25 09:12:27,980 - ERROR - [MainThread] UM.PluginRegistry._findPlugin [730]: Traceback (most recent call last):
2024-06-25 09:12:27,981 - ERROR - [MainThread] UM.PluginRegistry._findPlugin [730]:   File "/usr/lib/python3/dist-packages/UM/PluginRegistry.py", line 728, in _findPlugin
2024-06-25 09:12:27,981 - ERROR - [MainThread] UM.PluginRegistry._findPlugin [730]:     module = imp.load_module(plugin_id, file, path, desc)  # type: ignore #MyPy gets the wrong output type from imp.find_module for some reason.
 2024-06-25 09:12:29,758 - ERROR - [MainThread] UM.Qt.QtApplication.createQmlComponent [606]: file:///usr/lib/cura/plugins/ModelChecker/ModelChecker.qml:8:1: Type UM.SimpleButton unavailable

#1074239#10
Date:
2024-06-30 01:48:13 UTC
From:
To:
I'm also having this problem as of recently. I tried building the
package myself from source (the Debian version, not upstream) and still
had the problem. It's probably related to a recent upgrade of one of
Cura's dependencies. I wasn't able to get upstream to build, but if I do
I will report back here.

Since this bug makes the package unusable, I think the severity should
be grave. I am not sure whether anyone is able to change that, but I
have added the control header in case it works, because I think it's
pretty clear that the severity should be grave.

Thanks,
Asher

#1074239#17
Date:
2024-06-30 08:13:21 UTC
From:
To:
I have a local build of python3-trimesh (which isn't packaged for Debian yet) installed and also get this issue.

Since we haven't updated Cura in a while, I suspect it's something else that broke it. Qt6 maybe?

I think think the interesting part is this here:

qt.qml.typeresolution.cycle: Cyclic dependency detected between "file:///usr/share/cura/resources/qml/Actions.qml" and "file:///usr/share/cura/resources/qml/Actions.qml"
QQmlApplicationEngine failed to load component
2024-06-30 10:11:17,960 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///usr/share/cura/resources/qml/Cura.qml:277:13: Type JobSpecs unavailable
2024-06-30 10:11:17,960 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///usr/share/cura/resources/qml/JobSpecs.qml:44:9: Type UM.SimpleButton unavailable
2024-06-30 10:11:17,961 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///usr/lib/python3/dist-packages/UM/Qt/qml/UM/SimpleButton.qml:30:5: ColorImage is not a type
2024-06-30 10:11:17,981 - DEBUG - [MainThread] UM.Controller.setActiveStage [180]: Setting active stage to PrepareStage
2024-06-30 10:11:17,981 - DEBUG - [MainThread] UM.Controller.setActiveView [108]: Setting active view to SolidView
2024-06-30 10:11:17,983 - DEBUG - [MainThread] ModelChecker.ModelChecker._createView [118]: Creating model checker view.
QQmlComponent: Component is not ready
2024-06-30 10:11:17,985 - ERROR - [MainThread] UM.Qt.QtApplication.createQmlComponent [606]: file:///usr/lib/cura/plugins/ModelChecker/ModelChecker.qml:8:1: Type UM.SimpleButton unavailable
2024-06-30 10:11:17,986 - ERROR - [MainThread] UM.Qt.QtApplication.createQmlComponent [606]: file:///usr/lib/python3/dist-packages/UM/Qt/qml/UM/SimpleButton.qml:30:5: ColorImage is not a type

#1074239#22
Date:
2024-07-02 15:45:15 UTC
From:
To:
I think I've tracked down the issue.

UM/Qt/qml/UM/SimpleButton.qml references a UI element called "ColorImage".
This class exists in Qt, but it's private and was probably changed/removed in Qt6.

However, there's also a ColorImage class in Uranium (Cura's UI toolkit), and I suspect they actually wanted to use that, but forgot to reference the correct type.

They actually fixed this upstream: https://github.com/Ultimaker/Uranium/commit/88fd460a63263d66173f1e0127b0f208577d7f4e

I'm going to add this patch to the Uranium package.

#1074239#35
Date:
2024-07-09 08:49:03 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
uranium, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1074239@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gregor Riepl <onitake@gmail.com> (supplier of updated uranium package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 09 Jul 2024 10:42:06 +0200
Source: uranium
Architecture: source
Version: 5.0.0-5
Distribution: unstable
Urgency: medium
Maintainer: Debian 3-D Printing Packages <3dprinter-general@lists.alioth.debian.org>
Changed-By: Gregor Riepl <onitake@gmail.com>
Closes: 1074239 1074752
Changes:
 uranium (5.0.0-5) unstable; urgency=medium
 .
   * Replace usage of deprecated imp module. (Closes: #1074752)
   * Use Uranium ColorImage class. (Closes: #1074239)
Checksums-Sha1:
 7914bc178afb4dd6c58d49ce0ee8c2666a05dcb5 2266 uranium_5.0.0-5.dsc
 85dc53deff3d6c1e8a3cad96ab2f00a78054256a 9472 uranium_5.0.0-5.debian.tar.xz
Checksums-Sha256:
 a3cd9c8279c1a256484e1b631c1a9fa9e7b7c8ce3bb432492fc17b3a85e92eda 2266 uranium_5.0.0-5.dsc
 4aa8c4155e3319abfecf3308cc451ba1d6ff29f57e0b8bb98e121e70f1ce678a 9472 uranium_5.0.0-5.debian.tar.xz
Files:
 65c1189fc91df8fac90e33625f120f37 2266 python optional uranium_5.0.0-5.dsc
 72b5590b1caed65a6c6036a3f9206ae5 9472 python optional uranium_5.0.0-5.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEXEj+YVf0kXlZcIfGTFprqxLSp64FAmaM+DoACgkQTFprqxLS
p66NbA/6A9DNTkFdndT7ffRtZVl41da7Nfg6gWnQmav9S8+wTN0F4VFOEOZQGRGG
tEUApXtBpUgWqnF6VTS8N6Wbz/BSYm7WMCMbTi4f3vYEXffn1JH426wb/l65pkKc
s/FX4u0XcSz5lVmFFg3G/26SGOpDn4PjCypcTpBCBW8J0GsqQgYep4pm6lXCCd5N
D+eMUU1V37GphDTEL3P1fPgw/AAbu58ylVK67WrQmJaNt2/YmQhY3WrRzocvVWgf
O7Jn72H8zfwdoWSk2Mdnt7b5ov2oS/JYH9Nhefex1Modc7ADkCQ+HAKiXwofOOUn
xBWpsSW4kZ3o0rP1/+yqtqPfz/esx8LwN+y/VDHGqPz88/rFPqdHFor+Yb+GHTVl
9DNju4kRGu2X6GujFXM4GqP9JAZFEVmjRWubHT9g3rNABVfKaW8cu3IgUV+vKEGv
Iiwzj6KqnclfEDdlniGyS03W6szaREF3EEw7vz3Mfi8SD/TfDcIpvHIH78ppwOgc
b1JRf/746aJGKBACOnve+ase4QTVVFvmz8YCK9LSho7IRmg+WG+xddHfH4XP7zC5
f0c1SB4zp1cHNZqlDxcNNKCsigbhjycjMCDD8HTekBeycc2PInjd+9XVNKpGTp5a
OlPBoZU0KvtEDOGe0FWIO2sjq8xQqDENmuoWP0hcbKcI71sX4LQ=
=6QGt
-----END PGP SIGNATURE-----