3.0.3 (also 2.7)
3.7.7.20170627
macOS Sierra (10.12.6)
Cura 2.7 and 3.03 always crash when connecting Ultimaker3 via network
Only tail lines of log file.
2017-10-18 11:31:18,274 - DEBUG - UM3NetworkPrinting.DiscoverUM3Action.setKey [100]: Attempting to set the network key of the active machine to ultimakersystem-ccbdd30023af._ultimaker._tcp.local.
2017-10-18 11:31:18,276 - DEBUG - UM3NetworkPrinting.NetworkPrinterOutputDevicePlugin.reCheckConnections [222]: Connecting [ultimakersystem-ccbdd30023af._ultimaker._tcp.local.]...
Fatal Python error: Segmentation fault
Thread 0x000070000cd09000 (most recent call first):
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/Backend/Backend.py", line 156 in _storeStderrToLogThread
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 862 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x000070000c806000 (most recent call first):
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/Backend/Backend.py", line 148 in _storeOutputToLogThread
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 862 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x000070000c280000 (most recent call first):
File "/Applications/Cura.app/Contents/MacOS/plugins/plugins/USBPrinting/USBPrinterOutputDeviceManager.py", line 88 in _updateThread
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 862 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x000070000bd7d000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 293 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 424 in acquire
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 86 in _nextJob
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 116 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x000070000b87a000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 293 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 424 in acquire
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 86 in _nextJob
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 116 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x000070000b377000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 293 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 424 in acquire
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 86 in _nextJob
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 116 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x000070000ae74000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 293 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 424 in acquire
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 86 in _nextJob
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 116 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x000070000a971000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 293 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 424 in acquire
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 86 in _nextJob
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 116 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x000070000a46e000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 293 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 424 in acquire
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 86 in _nextJob
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 116 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x0000700009f6b000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 293 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 424 in acquire
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 86 in _nextJob
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 116 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x0000700009a68000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 293 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 424 in acquire
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 86 in _nextJob
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/UM/JobQueue.py", line 116 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x0000700009565000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 297 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/zeroconf.py", line 1569 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/zeroconf.py", line 1153 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x0000700009062000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 297 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/zeroconf.py", line 1569 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/zeroconf.py", line 1017 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x0000700008b5f000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/zeroconf.py", line 946 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x000070000865c000 (most recent call first):
File "/Applications/Cura.app/Contents/MacOS/plugins/plugins/RemovableDriveOutputDevice/RemovableDrivePlugin.py", line 58 in _updateThread
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 862 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x0000700008159000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 297 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/zeroconf.py", line 1569 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/zeroconf.py", line 1153 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x0000700007c56000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 297 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/zeroconf.py", line 1569 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/zeroconf.py", line 1017 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x0000700007753000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/zeroconf.py", line 946 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x00007000071cd000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 297 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/zeroconf.py", line 1569 in wait
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/zeroconf.py", line 1017 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Thread 0x0000700006cca000 (most recent call first):
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/zeroconf.py", line 946 in run
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 914 in _bootstrap_inner
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/threading.py", line 882 in _bootstrap
Current thread 0x00007fff9b7d73c0 (most recent call first):
File "/Applications/Cura.app/Contents/MacOS/plugins/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py", line 947 in _verifyAuthentication
File "/Applications/Cura.app/Contents/MacOS/plugins/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py", line 514 in _update
File "/Applications/Cura.app/Contents/MacOS/plugins/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py", line 785 in connect
File "/Applications/Cura.app/Contents/MacOS/plugins/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevicePlugin.py", line 223 in reCheckConnections
File "/Applications/Cura.app/Contents/MacOS/plugins/plugins/UM3NetworkPrinting/DiscoverUM3Action.py", line 115 in setKey
File "/Users/ultimaker/build/3.0/build/inst/lib/python3.5/site-packages/cura/CuraApplication.py", line 686 in run
File "/Users/ultimaker/build/3.0/build/inst/bin/cura_app.py", line 82 in <module>
File "<frozen importlib._bootstrap>", line 634 in _load_backward_compatible
File "<frozen importlib._bootstrap>", line 664 in _load_unlocked
File "<frozen importlib._bootstrap>", line 958 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 969 in _find_and_load
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/cx_Freeze/initscripts/Console.py", line 21 in <module>
File "<frozen importlib._bootstrap>", line 634 in _load_backward_compatible
File "<frozen importlib._bootstrap>", line 664 in _load_unlocked
File "<frozen importlib._bootstrap>", line 958 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 969 in _find_and_load
File "/Users/ultimaker/build/env/3.0/inst/lib/python3.5/site-packages/cx_Freeze/initscripts/__startup__.py", line 12 in <module>
File "<frozen importlib._bootstrap>", line 634 in _load_backward_compatible
File "<frozen importlib._bootstrap>", line 664 in _load_unlocked
File "<frozen importlib._bootstrap>", line 958 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 969 in _find_and_load
If you need crash report via macOS, let me know.
My Cura 3.0.3 crashed on first start too.
Note:
I also always got crashing Cura, if I didn't delete config files for Cura at upgrading to 3.0.3 or 2.7.
Ok just tried to reproduce this, same firmware, MacOS 10.12.6, Cura 3.0.3. Printer gets added normally.
Have you tried backup/removing you settings folder? ~/Library/Application Support/cura
Would you be willing to share your config data?
@Appesteijn
I've tried backup/removing and I got this issue.
And I don't removing that, I always got crashing on startup.
What config data do you need? All of ~/Library/Application Support/cura?
Yes please
@Appesteijn
Config directory is cura.zip
And stderr.log is stderr.log
@soundTricker Ok I just tried with your config, but I works on my Mac and I see 3 installed UM3s.
I made a bug ticket on our board so someone else can have a look.
Devs: CURA-4467
Also see #2622, which seems to have the same crash mechanism, though it happens in a different plugin.
The crash happens when using QNetworkAccessManager to get() a QNetworkRequest.
@Appesteijn Thanks :)
We still can't reproduce this bug. I'm updating it here because our internal ticket (CURA-4467) was just closed because nobody could reproduce it.
Hi there, I got the exact same issue with Cura 2.7 and Cura 3.0.3 running it on macOS High Sierra and Sierra. It stopped working, when I upgraded to Cura 2.7. I had a look at the crash report and it's the same QNetworkAccessManager getting a new Network Request instance ans mentioned above. I have no clue what to do now.
I already tried to remove my configuration as recommended above, but the same issue remains.
I really enjoyed the "print and monitor over network" feature and currently, I can neither monitor my print via the camera nor start any prints over the network.
Maybe we can't reproduce this bug since we're all trying to reproduce it on the same network...
@Ghostkeeper I think your comment is spot on. Pretty sure I know what is going on here. I use Automatic Proxy Configuration and I've known it to cause issues with stuff before including Outlook.
No idea what the fix is, but I can offer you my situation to recreate.
You'll need a PAC file. Here is a simple one "direct.pac" that doesn't actual proxy anything.
function FindProxyForURL(url, host) {
return "DIRECT";
}
Now either though the UI. System Preferences -> Network -> Advanced -> Proxies. Enable Automatic Proxy Configuration and set "file://\
networksetup -setautoproxyurl "Wi-Fi" "file://$(pwd)/direct.pac"
Now Start Cura. If you've already got Octoprint setup, it should crash before the UI comes up. If not go set some Octoprint network settings. You could also serve it over http as well.
Now you can unset the PAC file and Cura starts again.
networksetup -setautoproxystate "Wi-Fi" off
Anyway, that is what it was for me. Even enabling the PAC while Cura is running will instantly crash it if Octoprint settings had been previously configured and connected.
Edit, wanted to note that the use of a PAC is pretty common among those who use an SSH bastion to access our home networks or other private networks. Kinda a poor-man's VPN.
@nallath this thread might be interesting for your refactor?
We're still using the same qnetwork manager, so i won't touch this now. It's big enough as it is without adding all kinds of proxy magic to the equation.
Same problem for me. Always when I connect to the network via my original Apple Thunderbolt Gigabit adapter A1433 EMC2590. Cura 2.8, 3.0, 3.1 each crash immediately when trying to connect to the UM3.
The fast ethernet adapter as well as Wifi are working flawlessly.
I also use proxy (PAC file), then i remove this setting, Cura does not crush.
Possibly related QT issue https://bugreports.qt.io/browse/QTBUG-56747
That ticket also indicates a fix in 5.9. We'll probably switch to 5.10 (just released as stable) once PyQT is up to date with that as well.
Excellent! If you want to update this issue when you've released with an updated PyQT, I'll test right away.
For me it also was the proxy setting, not the ethernet interface!
Since PyQt 5.10 still caused a lot of bugs we tried to upgrade and then rolled back. Since there's no fix in sight, I'm marking this as Deferred.
That is a bummer. Deferred until ...?
Is going to Qt 5.9 an option? That should also fix the network issue.
We do want to update to 5.10 (or higher) but currently have other things we need to finish. After that we will retry the upgrade to a higher Qt&PyQt version.
@fieldOfView Nope. Also full of bugs apparently (I don't know what, but when I joined Ultimaker in January and was setting up my dev environment it was brought to my attention that we use 5.8.2 because 5.9 causes more problems than it solved).
As for the reason for 5.10 deferment, one of the most glaring issues is the lack of system styling (or something related to that) that makes all secondary windows and pop-ups look like... actually even worse than... Windows 95.
The likely solution is that we restyle "ALL OF THE THINGS" and as @Appesteijn said, we don't have time for that in the foreseeable future.
In the mean time, perhaps @awhiemstra can shed some light on applying a patch to the current Qt 5.8 for OSX to fix the issue locally?
5.9.2 caused a major bug but 5.9.3 was fine afaik.
I get an exit crash as well since 3.2.1. I would get this as soon as I load Cura and there was no way for it to load. I removed the version completely with all directories etc from library/application support etc so system was clean. I reloaded 3.2.1 and discovered that my OctoPrint feature was no long in build but needed to be installed via plugin etc. I installed and everything was working great until I actually tried to put in the api code for OctoPrint. If I pasted or even typed in one number Cura crashes. I have since tried the new 3.3 beta and it acts exactly the same way. Going to have to downgrade to 3.1 in order to even use it. I think 3.2.1 was crashing immediately when I first installed it because it was trying to connect to OctoPrint from the last version that I had it installed with. So frustrating! Please fix. Once you use Octoprint you can't just go back to sneaker net and SD cards.....
I have the same issue, permantly trying to check API Key. (High Sierra)
Hi all, we have created a 3.4 BETA build for mac with Qt 5.10 hoping it can fix this issue. Could you try it out see if problem still exists? Thank you all!
Download link: https://we.tl/43i1hChi8m
In case the link expires, let us know so we can upload a new one.
Sorry guys... I only uploaded the linux AppImage, this is the link which contains all installers/AppImage/DMG.
https://we.tl/MLmTYeGuW5
Can not confirm working.
Plugin Browser does not work (only installed plugins) and the "old" OctoPrintPlugin.curaplugin also does not work.
The "Plugin Browser" is now called "Toolbox", and indeed that the "old" OctoPrintPlugin won't work with 3.4, but you can install it via the "Toolbox". Could you try that? And could you check if the initial issue that adding a network printer for UM3 still crashes? Thanks
is now called "Toolbox"
That's what I've meant.
but you can install it via the "Toolbox".
Yeah, last time I got a error. After a few minutes I realized that it's caused by my Network Blocker and I had to enable access for Cura.
It's working without endless checking the API Key!
Thanks for your fix!
Hi @Max123459 , sorry that the previous uploads were not correct... Could you try this one? Thanks!
https://we.tl/gu0kqipSX6
Is there a new link that might work for osx? The link above expired. I am seeing the tool box crash Cura on 3.4.0?
Hi @fmsarubbi , there is a new link to download 3.4 with Qt 5.10 for osx:
https://we.tl/RQxjmjVR2f
We couldn't reproduce this bug ourselves, but two people already reported this as fixed by the upgrade to Qt 5.10. We consider this one fixed then.
@Ghostkeeper did you ever try my steps to reproduce by creating a simple PAC file?
No, I didn't since I don't have Macintosh available. Could you try in 3.4 if it's fixed for you then?
Yes confirmed.