Skip to content

Qt crashes when playing without image ... #2690

@kif

Description

@kif
(test-silx) hyperion:ewoks/id09/ewokstxs % pyFAI-calib2 
INFO:numexpr.utils:Note: NumExpr detected 12 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
INFO:numexpr.utils:NumExpr defaulting to 8 threads.
Qt: Session management error: None of the authentication protocols specified are supported
INFO:pyFAI.method_registry:Degrading method from Method(dim=1, split='pseudo', algo='histogram', impl='*', target=None) -> Method(dim=1, split='bbox', algo='histogram', impl='*', target=None)
ERROR:pyFAI-calib2.UNCAUGHT:'NoneType' object has no attribute 'setFromPlot'
Traceback (most recent call last):
  File "/media/unused/tvincent/mambaforge/envs/test-silx/lib/python3.12/site-packages/pyFAI/gui/helper/SynchronizeRawView.py", line 91, in __plotVisibilityChanged
    model.setFromPlot(plot)
    ^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'setFromPlot'
ERROR:pyFAI-calib2.UNCAUGHT:'NoneType' object has no attribute 'setFromPlot'
Traceback (most recent call last):
  File "/media/unused/tvincent/mambaforge/envs/test-silx/lib/python3.12/site-packages/pyFAI/gui/helper/SynchronizeRawView.py", line 91, in __plotVisibilityChanged
    model.setFromPlot(plot)
    ^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'setFromPlot'
ERROR:pyFAI-calib2.UNCAUGHT:'NoneType' object has no attribute 'setFromPlot'
Traceback (most recent call last):
  File "/media/unused/tvincent/mambaforge/envs/test-silx/lib/python3.12/site-packages/pyFAI/gui/helper/SynchronizeRawView.py", line 91, in __plotVisibilityChanged
    model.setFromPlot(plot)
    ^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'setFromPlot'
QFont::setWeight: Weight must be between 1 and 1000, attempted to set  0
QFont::setWeight: Weight must be between 1 and 1000, attempted to set  0
ERROR:pyFAI.calibrant:Not d-spacing for calibrant: Al Calibrant at wavelength 1.2398419843320026e-09
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
ERROR:pyFAI-calib2.UNCAUGHT:Unable to avoid copy while creating a new array.
Traceback (most recent call last):
  File "/media/unused/tvincent/mambaforge/envs/test-silx/lib/python3.12/site-packages/pyFAI/gui/tasks/ExperimentTask.py", line 233, in __waveLengthChanged
    self._calibrantPreview.setWaveLength(settings.wavelength().value())
  File "/media/unused/tvincent/mambaforge/envs/test-silx/lib/python3.12/site-packages/pyFAI/gui/widgets/CalibrantPreview.py", line 72, in setWaveLength
    self.repaint()
  File "/media/unused/tvincent/mambaforge/envs/test-silx/lib/python3.12/site-packages/pyFAI/gui/widgets/CalibrantPreview.py", line 162, in paintEvent
    pixmap = self.__getPixmap(size=pixmapRect.width())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/media/unused/tvincent/mambaforge/envs/test-silx/lib/python3.12/site-packages/pyFAI/gui/widgets/CalibrantPreview.py", line 138, in __getPixmap
    qimage = imageutils.convertArrayToQImage(rgbImage)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/media/unused/tvincent/mambaforge/envs/test-silx/lib/python3.12/site-packages/pyFAI/gui/utils/imageutils.py", line 52, in convertArrayToQImage
    image = numpy.array(image, copy=False, order='C', dtype=numpy.uint8)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Unable to avoid copy while creating a new array.
QPaintDevice: Cannot destroy paint device that is being painted
ERROR:pyFAI.calibrant:Not d-spacing for calibrant: Al Calibrant at wavelength 1.2e-09
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
Segmentation fault

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSerious issue, to be addressed in priority !guiAffects only the graphical user interface

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions