Cura: Crash when adding new printer. (Ubuntu 16.04) (2.3.0 PPA)

Created on 12 Sep 2016  路  22Comments  路  Source: Ultimaker/Cura

I'm having all kinds of issues with 2.3.0 after updating it today. It's not functional at all with many different interactions causing freezing. I also get tons of warnings and debugs on the start of Cura from Terminal.

This is the Terminal output when I try and add a new printer. It results in a hang with the gui becoming greyed out. Force Quit is required.

file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null qml: qml: qml: 2016-09-11 15:50:17,858 - WARNING - .../UM/Settings/ContainerRegistry.py (addContainer [219]): Container of type <class 'UM.Settings.InstanceContainer.InstanceContainer'> and id Custom FDM printer_variant already added 2016-09-11 15:50:17,917 - DEBUG - /usr/lib/cura/plugins/CuraEngineBackend/CuraEngineBackend.py (_onBackendQuit [412]): Backend quit with return code 127. Resetting process and socket. 2016-09-11 15:50:17,918 - DEBUG - .../UM/Backend/Backend.py (_createSocket [206]): Previous socket existed. Closing that first.

Bug

All 22 comments

Here's another output from Terminal re this. In this instance I tried to add the Prusa_i3 printer. Upon hitting the add printer button it froze.

file:///usr/share/cura/resources/qml/AddMachineDialog.qml:105: ReferenceError: sortedMachineDefinitionsModel is not defined file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null qml: 2016-09-11 16:56:53,905 - WARNING - .../UM/Mesh/MeshBuilder.py (reserveFaceCount [158]): Had to convert 'num_faces' with int(): 2684.0 -> 2684 qml: qml: 2016-09-11 16:56:54,086 - DEBUG - .../UM/Mesh/MeshData.py (calculateNormalsFromVertices [339]): Calculating normals took 0.0005602836608886719 seconds 2016-09-11 16:56:54,087 - DEBUG - /usr/lib/uranium/plugins/FileHandlers/STLReader/STLReader.py (read [35]): Loaded a mesh with 8052 vertices Terminated

The freezes sound like the QT deadlock. @thopiekar, what version of pyqt is used with the ppa?

@fieldOfView: My stable PPA comes with no PyQt5 at all. Installing 2.3 from there uses the PyQt5 version, which comes with Ubuntu. In case Ubuntu Xenial is used:

@opensourcefan Which Ubuntu version are you using? And which PPA?
(I often hear from people using master PPA and they expect to see no bugs. At the moment master <> 2.3 are almost the same, so there should be no real difference.)

I'm on 16.04 (Xenial)

Are you familiar with advanced package managers, like Synaptic?

Yes, I have it installed. Don't use it much though.

Current Python version is 2.7.12 which I think was installed from the previous 2.1.3 cura PPA.

Please enable my master PPA and install PyQt 5.6 from there (not Cura, etc.).
If it works I can copy PyQt 5.6 from there into stable.

In case it works, I should better remove all packages for Ubuntu versions older than Xenial (16.04) just before other people get problems with that.

Is this what you want enabled?
ppa:thopiekar/cura-master

I've enabled it but can find PyQt 5.6 anywhere. I have apt-get updated.

Although I do see it there....

I'm getting these locks (in settings UI) on my notebook, too. I'll try it also on my own..

cura

Now no locks here anymore. @opensourcefan, can you confirm this?

I just installed pyqt5, how would you like me to check exactly. I'll start it up and see, if there's something specific you would like me to check please advise.

I've added and taken away a few printers and all is well, no more lock ups.

No more locks, seems good now.

Ok, now just disable the master PPA again. I'll publish PyQt 5.6 in my stable PPA soon.

@opensourcefan Thank you for your feedback :+1:

Thank you for the excellent work!

No problem :ok_hand:

Just kept this open so I don't forget to remove all the packages for Ubuntu < 16.04.

However, done that now, so let's wait for the blame that packages for Ubuntu Wily or Vivid are not there anymore :see_no_evil:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thopiekar picture thopiekar  路  3Comments

ferociousdiablo picture ferociousdiablo  路  3Comments

konvoj picture konvoj  路  3Comments

Liger0 picture Liger0  路  3Comments

jornada812 picture jornada812  路  3Comments