Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault when open file dialog is opened #20123

Open
JKBert opened this issue Jan 13, 2025 · 0 comments
Open

Segmentation fault when open file dialog is opened #20123

JKBert opened this issue Jan 13, 2025 · 0 comments
Labels
Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior.

Comments

@JKBert
Copy link

JKBert commented Jan 13, 2025

Cura Version

5.10.0-alpha.0

Operating System

Linux Devuan amd64/testing

Printer

Anycubic Vyper

Reproduction steps

Hello,
Cura (built from sources) crashes with segmentation fault when file dialog is opened.
To reproduce, just go to menu "file" and click on "Open file(s)".
I have found some similar old bugs and I have done some investigation.

Actual results

Back trace:

2025-01-13 09:50:40,850 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [448]: file:///home/bertrand/git/Cura/resources/qml/Cura.qml:624:5: QML FileDialog: Failed to load non-native FileDialog implementation:
qrc:/qt-project.org/imports/QtQuick/Dialogs/quickimpl/qml/FileDialog.qml:4 module "Qt.labs.folderlistmodel" is not installed

Fatal Python error: Segmentation fault
...
Current thread 0x00007f1b52132740 (most recent call first):
  File "/home/bertrand/.conan2/p/urani7cca9f9a32795/p/site-packages/UM/Qt/QtApplication.py", line 420 in exec
  File "/home/bertrand/git/Cura/cura/CuraApplication.py", line 953 in run
  File "/home/bertrand/git/Cura/venv/bin/cura_app.py", line 243 in <module>

Extension modules: PyQt6.QtCore, PyQt6.QtNetwork, PyQt6.QtGui, PyQt6.QtWidgets, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, scipy._lib._ccallback_c, scipy.sparse._sparsetools, _csparsetools, scipy.sparse._csparsetools, scipy.sparse.linalg._isolve._iterative, scipy.linalg._fblas, scipy.linalg._flapack, scipy.linalg.cython_lapack, scipy.linalg._cythonized_array_utils, scipy.linalg._solve_toeplitz, scipy.linalg._decomp_lu_cython, scipy.linalg._matfuncs_sqrtm_triu, scipy.linalg.cython_blas, scipy.linalg._matfuncs_expm, scipy.linalg._decomp_update, scipy.linalg._flinalg, scipy.sparse.linalg._dsolve._superlu, scipy.sparse.linalg._eigen.arpack._arpack, scipy.sparse.csgraph._tools, scipy.sparse.csgraph._shortest_path, scipy.sparse.csgraph._traversal, scipy.sparse.csgraph._min_spanning_tree, scipy.sparse.csgraph._flow, scipy.sparse.csgraph._matching, scipy.sparse.csgraph._reordering, scipy.spatial._ckdtree, scipy._lib.messagestream, scipy.spatial._qhull, scipy.spatial._voronoi, scipy.spatial._distance_wrap, scipy.spatial._hausdorff, scipy.special._ufuncs_cxx, scipy.special._ufuncs, scipy.special._specfun, scipy.special._comb, scipy.special._ellip_harm_2, scipy.spatial.transform._rotation, _cffi_backend, PyQt6.QtOpenGL, PyQt6.QtQml, PyQt6.QtQuick, pyArcus, PyQt6.QtSvg, pyclipper._pyclipper, pynest2d, pySavitar, scipy.optimize._minpack2, scipy.optimize._group_columns, scipy.optimize._trlib._trlib, scipy.optimize._lbfgsb, _moduleTNC, scipy.optimize._moduleTNC, scipy.optimize._cobyla, scipy.optimize._slsqp, scipy.optimize._minpack, scipy.optimize._lsq.givens_elimination, scipy.optimize._zeros, scipy.optimize.__nnls, scipy.optimize._highs.cython.src._highs_wrapper, scipy.optimize._highs._highs_wrapper, scipy.optimize._highs.cython.src._highs_constants, scipy.optimize._highs._highs_constants, scipy.linalg._interpolative, scipy.optimize._bglu_dense, scipy.optimize._lsap, scipy.optimize._direct, shapely.lib, shapely._geos, shapely._geometry_helpers, scipy.ndimage._nd_image, _ni_label, scipy.ndimage._ni_label (total: 89)
/usr/local/bin/cura : ligne 4 : 28252 Erreur de segmentation  python3 /home/bertrand/git/Cura/venv/bin/cura_app.py

Expected results

Of course, i have installed labs-folderlist*:

hilbert:[~/git/Cura] > dpkg-query -l | grep folder
ii  qml-module-qt-labs-folderlistmodel:amd64                 5.15.15+dfsg-3                            amd64        Qt 5 folderlistmodel QML module
ii  qml6-module-qt-labs-folderlistmodel:amd64                6.7.2+dfsg-11                             amd64        Qt 6 FolderListModel QML module

that replaces libqt6labsfolderlistmodel6/stable 6.4.2+dfsg-1. Cura ran like a charm with libqt6labsfolderlistmodel6.

I don't know python, but I don't understand how folderlistmodel is not in modules list when cura crashes.

Same bug occurs on Debian/testing and recent Ubuntu.

Best regards,

JB

Add your .zip and screenshots here ⬇️

None

@JKBert JKBert added Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior. labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior.
Projects
None yet
Development

No branches or pull requests

1 participant