Bug 1494278

Summary: segfaults on my laptop
Product: [Fedora] Fedora Reporter: Dennis Gilmore <dennis>
Component: curaAssignee: Miro Hrončok <mhroncok>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: daduke, dennis, gilles.lecoq, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cura-3.0.3-3.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-10 05:03:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dennis Gilmore 2017-09-21 22:05:21 UTC
Description of problem:
cura
UM.Resources.__initializeStoragePaths [342]: Initializing storage paths
UM.Resources.__initializeStoragePaths [353]: Config storage path is /home/dennis/.config/cura/2.7
UM.Resources.__initializeStoragePaths [361]: Data storage path is /home/dennis/.local/share/cura/2.7
UM.Resources.__initializeStoragePaths [373]: Cache storage path is /home/dennis/.cache/cura/2.7
UM.View.GL.OpenGLContext.detectBestOpenGLVersion [103]: Trying OpenGL context 4.1...
UM.View.GL.OpenGLContext.detectBestOpenGLVersion [113]: Yay, we got at least OpenGL 4.1 core: 4.5 Core profile
UM.Qt.QtApplication.__init__ [80]: Detected most suitable OpenGL context version: 4.1 Core profile
2017-09-21 17:03:06,462 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin ConsoleLogger
2017-09-21 17:03:06,506 - INFO - CuraEngineBackend.CuraEngineBackend.__init__ [64]: Found CuraEngine at: /usr/bin/CuraEngine
2017-09-21 17:03:06,507 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin CuraEngineBackend
2017-09-21 17:03:06,552 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin UpdateChecker
2017-09-21 17:03:06,553 - WARNING - UM.PluginRegistry.loadPlugin [193]: Plugin ConsoleLogger was already loaded
2017-09-21 17:03:06,559 - INFO - UpdateChecker.UpdateCheckerJob.run [44]: Checking for new version of cura
2017-09-21 17:03:06,565 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin LocalFileOutputDevice
2017-09-21 17:03:06,568 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin STLWriter
2017-09-21 17:03:06,572 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin OBJWriter
2017-09-21 17:03:06,575 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin OBJReader
2017-09-21 17:03:06,588 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin STLReader
2017-09-21 17:03:06,592 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin SimpleView
2017-09-21 17:03:06,598 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin TranslateTool
2017-09-21 17:03:06,602 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin CameraTool
2017-09-21 17:03:06,607 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin RotateTool
2017-09-21 17:03:06,613 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin MirrorTool
2017-09-21 17:03:06,618 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin SelectionTool
2017-09-21 17:03:06,624 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin ScaleTool
2017-09-21 17:03:06,628 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin FileLogger
2017-09-21 17:03:06,638 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin X3DReader
2017-09-21 17:03:06,642 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin GCodeProfileReader
2017-09-21 17:03:06,652 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin 3MFReader
2017-09-21 17:03:06,657 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin SliceInfoPlugin
2017-09-21 17:03:06,663 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin VersionUpgrade21to22
2017-09-21 17:03:06,666 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin VersionUpgrade22to24
2017-09-21 17:03:06,670 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin VersionUpgrade26to27
2017-09-21 17:03:06,674 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin VersionUpgrade25to26
2017-09-21 17:03:06,694 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin USBPrinting
2017-09-21 17:03:06,713 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin UltimakerMachineActions
2017-09-21 17:03:06,721 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin AutoSave
2017-09-21 17:03:06,728 - WARNING - UM.Preferences.getValue [81]: Tried to get the value of non-existing setting cura/active_mode.
2017-09-21 17:03:06,728 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin PerObjectSettingsTool
2017-09-21 17:03:06,731 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin CuraProfileReader
2017-09-21 17:03:06,735 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin GCodeWriter
2017-09-21 17:03:06,739 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin CuraProfileWriter
2017-09-21 17:03:06,744 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin SolidView
2017-09-21 17:03:06,749 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin 3MFWriter
2017-09-21 17:03:06,753 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin MachineSettingsAction
2017-09-21 17:03:06,754 - WARNING - UM.PluginRegistry.loadPlugin [193]: Plugin CuraEngineBackend was already loaded
2017-09-21 17:03:06,759 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin ImageReader
2017-09-21 17:03:06,809 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin UM3NetworkPrinting
2017-09-21 17:03:06,815 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin GCodeReader
2017-09-21 17:03:06,822 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin LayerView
2017-09-21 17:03:06,834 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin XRayView
2017-09-21 17:03:06,841 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin LegacyProfileReader
2017-09-21 17:03:06,848 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin RemovableDriveOutputDevice
2017-09-21 17:03:06,854 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin XmlMaterialProfile
2017-09-21 17:03:06,859 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin PluginBrowser
2017-09-21 17:03:06,864 - INFO - UM.PluginRegistry.loadPlugin [231]: Loaded plugin ChangeLogPlugin
2017-09-21 17:03:06,865 - INFO - UM.Qt.QtApplication.__init__ [112]: Command line arguments: {'external-backend': False, 'disable-textures': False, 'qmljsdebugger': None, 'file': [], 'single_instance': False}
2017-09-21 17:03:06,879 - INFO - UM.VersionUpgradeManager.upgrade [112]: Looking for old configuration files to upgrade.
2017-09-21 17:03:06,884 - DEBUG - UM.Backend.Backend._logSocketState [174]: Socket state changed to Listening
2017-09-21 17:03:06,893 - INFO - UM.Backend.Backend.startEngine [75]: Started engine process: /usr/bin/CuraEngine
2017-09-21 17:03:06,894 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] Calling engine with: ['/usr/bin/CuraEngine', 'connect', '127.0.0.1:49674', '-j', '/usr/share/cura/resources/definitions/fdmprinter.def.json', '']
2017-09-21 17:03:06,904 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] 
2017-09-21 17:03:06,904 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] Cura_SteamEngine version 2.7.0
2017-09-21 17:03:06,905 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] Copyright (C) 2014 David Braam
2017-09-21 17:03:06,905 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] 
2017-09-21 17:03:06,905 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] This program is free software: you can redistribute it and/or modify
2017-09-21 17:03:06,906 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] it under the terms of the GNU Affero General Public License as published by
2017-09-21 17:03:06,906 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] the Free Software Foundation, either version 3 of the License, or
2017-09-21 17:03:06,907 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] (at your option) any later version.
2017-09-21 17:03:06,907 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] 
2017-09-21 17:03:06,908 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] This program is distributed in the hope that it will be useful,
2017-09-21 17:03:06,909 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] but WITHOUT ANY WARRANTY; without even the implied warranty of
2017-09-21 17:03:06,909 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2017-09-21 17:03:06,910 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] GNU Affero General Public License for more details.
2017-09-21 17:03:06,910 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] 
2017-09-21 17:03:06,910 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] You should have received a copy of the GNU Affero General Public License
2017-09-21 17:03:06,911 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] along with this program.  If not, see <http://www.gnu.org/licenses/>.
2017-09-21 17:03:19,484 - DEBUG - UM.Settings.ContainerRegistry.load [214]: Loading data into container registry took 12.484037637710571 seconds
2017-09-21 17:03:19,487 - DEBUG - UM.Backend.Backend._logSocketState [178]: Socket state changed to Connected
2017-09-21 17:03:19,487 - DEBUG - UM.Backend.Backend._onSocketStateChanged [168]: Backend connected on port 49674
2017-09-21 17:03:19,490 - DEBUG - UM.Controller.setActiveView [84]: Setting active view to SolidView
Fatal Python error: Segmentation fault

Thread 0x00007fc18effd700 (most recent call first):
  File "/usr/lib/python3.6/site-packages/UM/Backend/Backend.py", line 156 in _storeStderrToLogThread
  File "/usr/lib64/python3.6/threading.py", line 864 in run
  File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007fc18f7fe700 (most recent call first):
  File "/usr/lib/python3.6/site-packages/UM/Backend/Backend.py", line 148 in _storeOutputToLogThread
  File "/usr/lib64/python3.6/threading.py", line 864 in run
  File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007fc1a4ada700 (most recent call first):
  File "/usr/lib/cura/plugins/RemovableDriveOutputDevice/RemovableDrivePlugin.py", line 58 in _updateThread
  File "/usr/lib64/python3.6/threading.py", line 864 in run
  File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007fc1a531b700 (most recent call first):
  File "/usr/lib64/python3.6/threading.py", line 299 in wait
  File "/usr/lib/python3.6/site-packages/zeroconf.py", line 1716 in wait
  File "/usr/lib/python3.6/site-packages/zeroconf.py", line 1317 in run
  File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007fc1a5b1c700 (most recent call first):
  File "/usr/lib64/python3.6/threading.py", line 299 in wait
  File "/usr/lib/python3.6/site-packages/zeroconf.py", line 1716 in wait
  File "/usr/lib/python3.6/site-packages/zeroconf.py", line 1181 in run
  File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007fc1a631d700 (most recent call first):
  File "/usr/lib/python3.6/site-packages/zeroconf.py", line 1102 in run
  File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007fc1a7bc0700 (most recent call first):
  File "/usr/lib/cura/plugins/USBPrinting/USBPrinterOutputDeviceManager.py", line 88 in _updateThread
  File "/usr/lib64/python3.6/threading.py", line 864 in run
  File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007fc1bda6c700 (most recent call first):
  File "/usr/lib64/python3.6/threading.py", line 295 in wait
  File "/usr/lib64/python3.6/threading.py", line 426 in acquire
  File "/usr/lib/python3.6/site-packages/UM/JobQueue.py", line 86 in _nextJob
  File "/usr/lib/python3.6/site-packages/UM/JobQueue.py", line 116 in run
  File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007fc1be26d700 (most recent call first):
  File "/usr/lib64/python3.6/threading.py", line 295 in wait
  File "/usr/lib64/python3.6/threading.py", line 426 in acquire
  File "/usr/lib/python3.6/site-packages/UM/JobQueue.py", line 86 in _nextJob
  File "/usr/lib/python3.6/site-packages/UM/JobQueue.py", line 116 in run
  File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007fc1bea6e700 (most recent call first):
  File "/usr/lib64/python3.6/threading.py", line 295 in wait
  File "/usr/lib64/python3.6/threading.py", line 426 in acquire
  File "/usr/lib/python3.6/site-packages/UM/JobQueue.py", line 86 in _nextJob
  File "/usr/lib/python3.6/site-packages/UM/JobQueue.py", line 116 in run
  File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007fc1bf26f700 (most recent call first):
  File "/usr/lib64/python3.6/threading.py", line 295 in wait
  File "/usr/lib64/python3.6/threading.py", line 426 in acquire
  File "/usr/lib/python3.6/site-packages/UM/JobQueue.py", line 86 in _nextJob
  File "/usr/lib/python3.6/site-packages/UM/JobQueue.py", line 116 in run
  File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap

Current thread 0x00007fc200109740 (most recent call first):
  File "/usr/lib/python3.6/site-packages/UM/Qt/Bindings/MainWindow.py", line 20 in __init__
  File "/usr/lib/python3.6/site-packages/UM/Qt/QtApplication.py", line 208 in initializeEngine
  File "/usr/lib/python3.6/site-packages/cura/CuraApplication.py", line 670 in run
  File "/usr/bin/cura", line 73 in <module>
Segmentation fault (`core' generado)


cura-2.7.0-2.fc27.noarch

Comment 1 Miro Hrončok 2017-09-22 09:28:58 UTC
Thanks for the report.

Is it specific for certain settings? Do you have to do some action, or you just run cura and wait for the segfault?

Comment 2 Dennis Gilmore 2017-09-22 21:22:05 UTC
As Requested on irc, running the appimage 

./Cura-2.7.0.AppImage 
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number
Fontconfig warning: "/etc/fonts/conf.d/65-0-lohit-bengali.conf", line 32: unknown element "langset"
Fontconfig warning: "/etc/fonts/conf.d/69-gnu-free-sans.conf", line 24: unknown element "langset"
Fontconfig warning: "/etc/fonts/conf.d/69-gnu-free-serif.conf", line 24: unknown element "langset"
QObject::connect: Parentheses expected, signal MainWindow::
QObject::connect: Parentheses expected, signal MainWindow::
QObject::connect: Parentheses expected, signal MainWindow::
QObject::connect: Parentheses expected, signal MainWindow::
file:///tmp/.mount_rd9KAT/usr/bin/resources/qml/JobSpecs.qml:160:13: QML TooltipArea: Binding loop detected for property "height"
qml: TableViewSelection: index out of range
qml: TableViewSelection: index out of range
./bin//cura.sh: línea 11:  7499 Segmentation fault      (`core' generado) cura $@


all I have to do is run it, the splashscreen is the only thing I see. I never get the main window

Comment 3 Miro Hrončok 2017-09-23 17:26:48 UTC
In that case, I strongly advise to report this directly to upstream at github.com/ultimaker/Cura

I'll try to reproduce this on Fedora 27 (it doesn't happen to me on F26), but as you've said this doesn't happen on your desktop, so chances are, I won't be able to.

BTW is ABRT generating any useful information?

Comment 4 Christian Herzog 2017-11-15 17:44:22 UTC
same here! Started happening as soon as I upgraded to F27. Today's upgrade to Cura 3 didn't fix it either. 10s at "Loading machines...", then crashes.

Comment 5 Christian Herzog 2017-11-17 20:19:42 UTC
Cura-3.0.4.AppImage from their website crashes too, but at a later stage:

file:///tmp/.mount_lPlypv/usr/bin/resources/themes/cura-light/styles.qml:197:17: QML Item: Binding loop detected for property "width"
qml: TableViewSelection: index out of range
qml: TableViewSelection: index out of range
file:///tmp/.mount_lPlypv/usr/bin/plugins/plugins/UM3NetworkPrinting/DiscoverUM3Action.qml:282: TypeError: Cannot read property 'clusterSize' of null
./bin//cura.sh: line 11:  8635 Segmentation fault      (core dumped) cura $@

Comment 6 Christian Herzog 2017-11-17 20:43:23 UTC
more tests: I now have 3 F27 machines on which 

cura-2.7.0-2.fc27
cura-3.0.3-2.fc27
cura-3.0.4.AppImage

all crash.

What kind of information do you need?

thanks,
-d

Comment 7 Christian Herzog 2017-11-18 09:58:09 UTC
abrt dump created as bug 1514751

Comment 8 Christian Herzog 2017-11-18 10:11:15 UTC
oh and it's not the cura profile. Same problem on a virgin account.

Comment 9 Christian Herzog 2017-11-18 10:16:03 UTC
found https://github.com/Ultimaker/Cura/issues/2558  -  indeed installing libglvnd-devel fixes the problem!

Comment 10 Miro Hrončok 2017-11-21 10:46:04 UTC
Requiring devel package on runtime is weird, but let's just add it and call it a workaround?


Just to be sure, installing just libglvnd is not enough?

Comment 11 Christian Herzog 2017-11-21 10:58:10 UTC
libglvnd (which had been present anyway) didn't cut it for me, I needed libglvnd-devel. No idea if this is a valid workaround by Fedora standards, but it certainly allowed me to slice my models again.

Comment 12 Fedora Update System 2017-11-21 11:50:30 UTC
cura-3.0.3-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-43aac61fab

Comment 13 Fedora Update System 2017-11-22 06:32:39 UTC
cura-3.0.3-3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-43aac61fab

Comment 14 Miro Hrončok 2017-11-23 12:55:03 UTC
*** Bug 1514751 has been marked as a duplicate of this bug. ***

Comment 15 Miro Hrončok 2017-11-29 21:20:08 UTC
*** Bug 1518564 has been marked as a duplicate of this bug. ***

Comment 16 Fedora Update System 2017-12-10 05:03:30 UTC
cura-3.0.3-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.