Bug 374900 - Crash when changing RGB color values on Mac OS X
Summary: Crash when changing RGB color values on Mac OS X
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Color Selectors (show other bugs)
Version: 3.1.1
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-11 08:02 UTC by Dmitrii Utkin
Modified: 2018-05-18 13:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
crash report generated with mac os (85.21 KB, text/plain)
2017-01-11 08:02 UTC, Dmitrii Utkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitrii Utkin 2017-01-11 08:02:11 UTC
Created attachment 103344 [details]
crash report generated with mac os

Krita crashes when you try to change RBG values in color selector.

How to reproduce:

1. Start Krita, Create new document
2. Click color selector button - third button on toolbar, foreground color. "Select a color" dialog opens.
3. Try to change "Red", "Green", "Blue" values by keyboard or mouse - Krita crashes.
Comment 1 Halla Rempt 2017-01-23 15:33:33 UTC
Hi Dmitry,

Thanks for your report. I can confirm the issue. It seems to have something to do with the accessibility interface of Qt. This is the backtrace I get:

* thread #1: tid = 0xef35c, 0x0000000102db4d9c QtGui`QAccessible::queryAccessibleInterface(QObject*) + 156, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
  * frame #0: 0x0000000102db4d9c QtGui`QAccessible::queryAccessibleInterface(QObject*) + 156
    frame #1: 0x0000000102db5f34 QtGui`QAccessibleEvent::accessibleInterface() const + 36
    frame #2: 0x0000000102db5523 QtGui`QAccessible::updateAccessibility(QAccessibleEvent*) + 19
    frame #3: 0x00000001028b780f QtWidgets`QWidgetLineControl::emitCursorPositionChanged() + 191
    frame #4: 0x00000001028b6ca7 QtWidgets`QWidgetLineControl::finishChange(int, bool, bool) + 727
    frame #5: 0x00000001028bc291 QtWidgets`QWidgetLineControl::processKeyEvent(QKeyEvent*) + 4225
    frame #6: 0x0000000102822b62 QtWidgets`QLineEdit::keyPressEvent(QKeyEvent*) + 34
    frame #7: 0x0000000102716ca4 QtWidgets`QWidget::event(QEvent*) + 4916
    frame #8: 0x0000000102821fc1 QtWidgets`QLineEdit::event(QEvent*) + 641
    frame #9: 0x00000001027ccb79 QtWidgets`QAbstractSpinBox::keyPressEvent(QKeyEvent*) + 1193
    frame #10: 0x0000000102716ca4 QtWidgets`QWidget::event(QEvent*) + 4916
    frame #11: 0x00000001027cbab9 QtWidgets`QAbstractSpinBox::event(QEvent*) + 457
    frame #12: 0x00000001026d5a7a QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 314
    frame #13: 0x00000001026d73a9 QtWidgets`QApplication::notify(QObject*, QEvent*) + 1785
    frame #14: 0x00000001007a0198 libkritaui.16.dylib`KisApplication::notify(this=<unavailable>, receiver=0x000000011d969af0, event=<unavailable>) + 24 at KisApplication.cpp:537 [opt]
    frame #15: 0x0000000103563b14 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
    frame #16: 0x0000000102736233 QtWidgets`QWidgetWindow::event(QEvent*) + 531
    frame #17: 0x00000001026d5a7a QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 314
    frame #18: 0x00000001026d6eae QtWidgets`QApplication::notify(QObject*, QEvent*) + 510
    frame #19: 0x00000001007a0198 libkritaui.16.dylib`KisApplication::notify(this=<unavailable>, receiver=0x0000000105421e00, event=<unavailable>) + 24 at KisApplication.cpp:537 [opt]
    frame #20: 0x0000000103563b14 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
    frame #21: 0x0000000102dd7ace QtGui`QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) + 174
    frame #22: 0x0000000102dbf68b QtGui`QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 203
    frame #23: 0x0000000102dbc76c QtGui`QWindowSystemInterface::flushWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 572
    frame #24: 0x00000001099735d8 libqcocoa.dylib`-[QNSView handleKeyEvent:eventType:] + 1144
    frame #25: 0x0000000109973702 libqcocoa.dylib`-[QNSView keyDown:] + 98
    frame #26: 0x00007fff8cf93b15 AppKit`-[NSWindow _reallySendEvent:isDelayedEvent:] + 2108
    frame #27: 0x00007fff8c9d2539 AppKit`-[NSWindow sendEvent:] + 517
    frame #28: 0x00000001099622d7 libqcocoa.dylib`-[QNSPanel superSendEvent:] + 39
    frame #29: 0x00000001099616e6 libqcocoa.dylib`-[QNSWindowHelper handleWindowEvent:] + 694
    frame #30: 0x00007fff8c95316a AppKit`-[NSApplication sendEvent:] + 4382
    frame #31: 0x000000010997ca0e libqcocoa.dylib`-[QNSApplication sendEvent:] + 78
    frame #32: 0x00007fff8c7b9df2 AppKit`-[NSApplication run] + 796
    frame #33: 0x000000010997921f libqcocoa.dylib`QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2191
    frame #34: 0x000000010355fd01 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 417
    frame #35: 0x0000000103564185 QtCore`QCoreApplication::exec() + 341
    frame #36: 0x000000010000e3ee krita`main(argc=<unavailable>, argv=<unavailable>) + 5678 at main.cc:258 [opt]
    frame #37: 0x00007fff9c6f25ad libdyld.dylib`start + 1
Comment 2 Halla Rempt 2018-05-18 13:33:59 UTC
Aw, we should've closed this a long time ago. We no longer use a Qt-based color dialog here, but the system one, so this crash can no longer happen.