FS#64852 - Cura 4.4.0 Crash

Attached to Project: Community Packages
Opened by c (grinness) - Sunday, 15 December 2019, 23:48 GMT
Last edited by Jelle van der Waa (jelly) - Monday, 16 December 2019, 21:35 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Just updated to lates Cura 4.4

The application crashes as soon as I open an stl file.
Reported the bug to Cura developers via Cura 'send bug report' interface.

System Info:

Linux 5.4.3-arch1-1 #1 SMP PREEMPT Fri, 13 Dec 2019 09:39:02 +0000 x86_64 GNU/Linux
glxinfo:
....
Vendor: X.Org (0x1002)
Device: AMD Radeon (TM) RX 480 Graphics (POLARIS10, DRM 3.35.0, 5.4.3-arch1-1, LLVM 9.0.0) (0x67df)
Version: 19.3.0
Accelerated: yes
Video memory: 8192MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.5
Max compat profile version: 4.5
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
....


Cura itself reports the following:

Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/cura/PlatformPhysics.py", line 53, in _onChangeTimerFinished
build_volume.updateNodeBoundaryCheck()
File "/usr/lib/python3.8/site-packages/cura/BuildVolume.py", line 258, in updateNodeBoundaryCheck
if node.collidesWithAreas(self.getDisallowedAreas()):
File "/usr/lib/python3.8/site-packages/cura/Scene/CuraSceneNode.py", line 98, in collidesWithAreas
overlap = convex_hull.intersectsPolygon(area)
File "/usr/lib/python3.8/site-packages/UM/Math/Polygon.py", line 184, in intersectsPolygon
ret_size = (polygon_intersection.bounds[2] - polygon_intersection.bounds[0],
IndexError: tuple index out of range

Thread 0x00007f75c97fa700 (most recent call first):
File "/usr/lib/cura/plugins/USBPrinting/USBPrinterOutputDeviceManager.py", line 86 in _updateThread
File "/usr/lib/python3.8/threading.py", line 870 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f75c9ffb700 (most recent call first):
File "/usr/lib/cura/plugins/RemovableDriveOutputDevice/RemovableDrivePlugin.py", line 61 in _updateThread
File "/usr/lib/python3.8/threading.py", line 870 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f75ca7fc700 (most recent call first):
File "/usr/lib/python3.8/threading.py", line 306 in wait
File "/usr/lib/python3.8/site-packages/zeroconf.py", line 1875 in wait
File "/usr/lib/python3.8/site-packages/zeroconf.py", line 1406 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f75caffd700 (most recent call first):
File "/usr/lib/python3.8/threading.py", line 306 in wait
File "/usr/lib/python3.8/threading.py", line 558 in wait
File "/usr/lib/cura/plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py", line 74 in _handleOnServiceChangedRequests
File "/usr/lib/python3.8/threading.py", line 870 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f75cb7fe700 (most recent call first):
File "/usr/lib/python3.8/threading.py", line 306 in wait
File "/usr/lib/python3.8/site-packages/zeroconf.py", line 1875 in wait
File "/usr/lib/python3.8/site-packages/zeroconf.py", line 1234 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f75cbfff700 (most recent call first):
File "/usr/lib/python3.8/site-packages/zeroconf.py", line 1155 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f75d37fe700 (most recent call first):
File "/usr/lib/python3.8/site-packages/UM/Backend/Backend.py", line 150 in _storeStderrToLogThread
File "/usr/lib/python3.8/threading.py", line 870 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f75d3fff700 (most recent call first):
File "/usr/lib/python3.8/site-packages/UM/Backend/Backend.py", line 138 in _storeOutputToLogThread
File "/usr/lib/python3.8/threading.py", line 870 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f7608ff9700 (most recent call first):
File "/usr/lib/python3.8/threading.py", line 302 in wait
File "/usr/lib/python3.8/threading.py", line 433 in acquire
File "/usr/lib/python3.8/site-packages/UM/JobQueue.py", line 86 in _nextJob
File "/usr/lib/python3.8/site-packages/UM/JobQueue.py", line 112 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f76097fa700 (most recent call first):
File "/usr/lib/python3.8/threading.py", line 302 in wait
File "/usr/lib/python3.8/threading.py", line 433 in acquire
File "/usr/lib/python3.8/site-packages/UM/JobQueue.py", line 86 in _nextJob
File "/usr/lib/python3.8/site-packages/UM/JobQueue.py", line 112 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f760a7fc700 (most recent call first):
File "/usr/lib/python3.8/threading.py", line 302 in wait
File "/usr/lib/python3.8/threading.py", line 433 in acquire
File "/usr/lib/python3.8/site-packages/UM/JobQueue.py", line 86 in _nextJob
File "/usr/lib/python3.8/site-packages/UM/JobQueue.py", line 112 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f7609ffb700 (most recent call first):
File "/usr/lib/python3.8/threading.py", line 302 in wait
File "/usr/lib/python3.8/threading.py", line 433 in acquire
File "/usr/lib/python3.8/site-packages/UM/JobQueue.py", line 86 in _nextJob
File "/usr/lib/python3.8/site-packages/UM/JobQueue.py", line 112 in run
File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Current thread 0x00007f763a0f3740 (most recent call first):
File "/usr/lib/python3.8/site-packages/cura/CrashHandler.py", line 306 in _logInfoWidget
File "/usr/lib/python3.8/site-packages/cura/CrashHandler.py", line 156 in _createDialog
File "/usr/lib/python3.8/site-packages/cura/CrashHandler.py", line 77 in __init__
File "/usr/bin/cura", line 111 in exceptHook
File "/usr/lib/python3.8/site-packages/UM/Qt/QtApplication.py", line 341 in exec_
File "/usr/lib/python3.8/site-packages/cura/CuraApplication.py", line 804 in run
File "/usr/bin/cura", line 180 in <module>



Steps to reproduce:
Open an stl file
This task depends upon

Closed by  Jelle van der Waa (jelly)
Monday, 16 December 2019, 21:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  uranium-4.4.0-3-any.pkg.tar.xz
Comment by Greg Darke (skunktrader) - Monday, 16 December 2019, 07:39 GMT
Identical issue here with identical traceback.
Comment by Matthias (sc44) - Monday, 16 December 2019, 16:54 GMT
Me too.
Comment by Antonio Rojas (arojas) - Monday, 16 December 2019, 17:30 GMT Comment by c (grinness) - Monday, 16 December 2019, 21:03 GMT
Hi,

modifying the file /usr/lib/python3.8/site-packages/UM/Math/Polygon.py in line 183:

-if polygon_intersection:
+if polygon_intersection and polygon_intersection.area:

as in the link posted by Antonio appears to fix the issue

[Edit]
Note that the statement to fix is a few line before the source file linked and I did not use the '>0' in my copy of the code (possibly not correct 100%)


Cheers

Loading...