MaterialEditor makes ParaView-5.10.0-RC1 crash when setting colors on Mac
When using the MaterialEditor of ParaView-5.10.0-RC1 on Mac (Big Sur 11.5.2), ParaView crashes when double clicking on the color value of baseColor/attenuationColor or other parameters that ask a color RGB value. Instead of showing the Select Color window, ParaView crashes with the following trace. Setting other types of parameters works fine.
To reproduce it, just create a new material on the MaterialEditor, with a principled base for instance, choose the baseColor parameter and double click on the RGB value.
---------
Loguru caught a signal: SIGABRT
Stack trace:
57 0x7fff20405f3d start + 1
56 0x1086bbd61 main + 497
55 0x10a01a042 QCoreApplication::exec() + 130
54 0x10a015acf QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
53 0x12c72962f QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2495
52 0x7fff22cd9c69 -[NSApplication run] + 586
51 0x7fff22ce7945 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364
50 0x7fff22ce9172 _DPSNextEvent + 864
49 0x7fff28727583 _BlockUntilNextEventMatchingListInModeWithFilter + 70
48 0x7fff287276b6 ReceiveNextEventCommon + 284
47 0x7fff28727a83 RunCurrentEventLoopInMode + 292
46 0x7fff204e161c CFRunLoopRunSpecific + 563
45 0x7fff204e205c __CFRunLoopRun + 893
44 0x7fff204e3634 __CFRunLoopDoSources0 + 242
43 0x7fff204e38b4 __CFRunLoopDoSource0 + 180
42 0x7fff204e394c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
41 0x12c72a9c8 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 40
40 0x12c72a260 QCocoaEventDispatcherPrivate::processPostedEvents() + 320
39 0x10979ed7b QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 219
38 0x1097b9e2e QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 3534
37 0x10a019a34 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
36 0x108a99e11 QApplication::notify(QObject*, QEvent*) + 497
35 0x108a989ea QApplicationPrivate::notify_helper(QObject*, QEvent*) + 266
34 0x108af06e9 QWidgetWindow::event(QEvent*) + 233
33 0x108af2022 QWidgetWindow::handleMouseEvent(QMouseEvent*) + 3266
32 0x108a99310 QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 896
31 0x10a019a34 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
30 0x108a9b755 QApplication::notify(QObject*, QEvent*) + 6965
29 0x108a989ea QApplicationPrivate::notify_helper(QObject*, QEvent*) + 266
28 0x108c7e40f QToolButton::event(QEvent*) + 319
27 0x108ad2dfd QWidget::event(QEvent*) + 445
26 0x108c7dc4f QToolButton::mouseReleaseEvent(QMouseEvent*) + 15
25 0x108b8320f QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 271
24 0x108b82059 QAbstractButtonPrivate::click() + 233
23 0x108b821df QAbstractButtonPrivate::emitClicked() + 111
22 0x10a04d0d5 void doActivate<false>(QObject*, int, void**) + 1477
21 0x1096dbc35 pqColorChooserButton::chooseColor() + 117
20 0x108c92afc QColorDialog::getColor(QColor const&, QWidget*, QString const&, QFlags<QColorDialog::ColorDialogOption>) + 460
19 0x108c98da9 QDialog::exec() + 281
18 0x12c75e7ee QCocoaColorDialogHelper::exec() + 30
17 0x12c75e3b6 -[QNSColorPanelDelegate runApplicationModalPanel] + 86
16 0x10a019f27 QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 39
15 0x12c729591 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2337
14 0x12c72a259 QCocoaEventDispatcherPrivate::processPostedEvents() + 313
13 0x10a01ad79 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 809
12 0x10a019a34 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
11 0x108a99e11 QApplication::notify(QObject*, QEvent*) + 497
10 0x108a989ea QApplicationPrivate::notify_helper(QObject*, QEvent*) + 266
9 0x108c7e40f QToolButton::event(QEvent*) + 319
8 0x108ad3e9a QWidget::event(QEvent*) + 4698
7 0x10a04488e QObject::event(QEvent*) + 158
6 0x1096d009e pqColorChooserButton::~pqColorChooserButton() + 14
5 0x108ac1cae QWidget::~QWidget() + 1006
4 0x10a044164 QObjectPrivate::deleteChildren() + 228
3 0x7fff202222aa malloc_report + 151
2 0x7fff2021f165 has_default_zone0 + 0
1 0x7fff2033f406 abort + 125
0 0x7fff20404c26 dyld_stub_binder + 282
( 46.460s) [paraview ] :0 FATL| Signal: SIGABRT
Abort trap: 6
Edited by Timothee Chabat