Bug 430366 - Crash when creating an 32x32 pixel image
Summary: Crash when creating an 32x32 pixel image
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: OpenGL Canvas (show other bugs)
Version: 4.4.1
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: vanyossi
URL:
Keywords:
: 439794 441868 443318 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-12-14 08:32 UTC by Halla Rempt
Modified: 2021-10-11 08:57 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-5195-0.html (801 bytes, text/html)
2021-10-06 09:54 UTC, Wojciech Kosowicz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Halla Rempt 2020-12-14 08:32:11 UTC
This is a macos specific crash. Set the display settings according to the screenshot in https://krita-artists.org/t/creating-a-new-image-crashes-krita-4-4-1-immediately-on-macos-10-15-7/15540/6 and create a 32x32 image:

(lldb) thread backtrace all
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x00007fff382ba7fe GLEngine`gleRunVertexSubmitImmediate + 6606
    frame #1: 0x00007fff38246dda GLEngine`glDrawArrays_ACC_GL3Exec + 732
    frame #2: 0x00000001012ca976 libkritaui.20.dylib`KisOpenGLCanvas2::drawGrid(QRect const&) + 2134
    frame #3: 0x00000001012c82e4 libkritaui.20.dylib`KisOpenGLCanvas2::renderCanvasGL(QRect const&) + 468
    frame #4: 0x00000001012c7e09 libkritaui.20.dylib`KisOpenGLCanvas2::paintGL() + 265
    frame #5: 0x00000001012c7bba libkritaui.20.dylib`KisOpenGLCanvas2::resizeGL(int, int) + 490
    frame #6: 0x000000010371f998 QtWidgets`QOpenGLWidget::resizeEvent(QResizeEvent*) + 104
    frame #7: 0x00000001036f9b69 QtWidgets`QWidget::event(QEvent*) + 1129
    frame #8: 0x00000001036beee0 QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
    frame #9: 0x00000001036c0295 QtWidgets`QApplication::notify(QObject*, QEvent*) + 581
    frame #10: 0x0000000101476b3a libkritaui.20.dylib`KisApplication::notify(QObject*, QEvent*) + 26
    frame #11: 0x00000001048caf74 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
    frame #12: 0x00000001036f1f3e QtWidgets`QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) + 270
    frame #13: 0x00000001036f8776 QtWidgets`QWidgetPrivate::show_helper() + 38
    frame #14: 0x00000001036f8b3b QtWidgets`QWidgetPrivate::showChildren(bool) + 347
    frame #15: 0x00000001036f8798 QtWidgets`QWidgetPrivate::show_helper() + 72
    frame #16: 0x00000001036f8b3b QtWidgets`QWidgetPrivate::showChildren(bool) + 347
    frame #17: 0x00000001036f8798 QtWidgets`QWidgetPrivate::show_helper() + 72
    frame #18: 0x00000001036f8b3b QtWidgets`QWidgetPrivate::showChildren(bool) + 347
    frame #19: 0x00000001036f8798 QtWidgets`QWidgetPrivate::show_helper() + 72
    frame #20: 0x00000001036f8b3b QtWidgets`QWidgetPrivate::showChildren(bool) + 347
    frame #21: 0x00000001036f8798 QtWidgets`QWidgetPrivate::show_helper() + 72
    frame #22: 0x00000001036f953c QtWidgets`QWidgetPrivate::setVisible(bool) + 828
    frame #23: 0x000000010382c5c8 QtWidgets`___lldb_unnamed_symbol2061$$QtWidgets + 792
    frame #24: 0x000000010382fc21 QtWidgets`QMdiSubWindow::changeEvent(QEvent*) + 465
    frame #25: 0x00000001036f9774 QtWidgets`QWidget::event(QEvent*) + 116
    frame #26: 0x000000010382f6d7 QtWidgets`QMdiSubWindow::event(QEvent*) + 1847
    frame #27: 0x00000001036beee0 QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
    frame #28: 0x00000001036c0295 QtWidgets`QApplication::notify(QObject*, QEvent*) + 581
    frame #29: 0x0000000101476b3a libkritaui.20.dylib`KisApplication::notify(QObject*, QEvent*) + 26
    frame #30: 0x00000001048caf74 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
    frame #31: 0x00000001036ecf28 QtWidgets`QWidget::setWindowState(QFlags<Qt::WindowState>) + 440
    frame #32: 0x00000001036ed153 QtWidgets`QWidget::showMaximized() + 35
    frame #33: 0x000000010381d2ae QtWidgets`___lldb_unnamed_symbol1933$$QtWidgets + 158
    frame #34: 0x000000010381d15d QtWidgets`___lldb_unnamed_symbol1932$$QtWidgets + 93
    frame #35: 0x00000001048fab55 QtCore`QMetaObject::activate(QObject*, int, int, void**) + 1765
    frame #36: 0x0000000103829b43 QtWidgets`___lldb_unnamed_symbol2040$$QtWidgets + 659
    frame #37: 0x000000010382e9ec QtWidgets`QMdiSubWindow::eventFilter(QObject*, QEvent*) + 1164
    frame #38: 0x00000001048cb20e QtCore`QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 206
    frame #39: 0x00000001036beecb QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 251
    frame #40: 0x00000001036c0295 QtWidgets`QApplication::notify(QObject*, QEvent*) + 581
    frame #41: 0x0000000101476b3a libkritaui.20.dylib`KisApplication::notify(QObject*, QEvent*) + 26
    frame #42: 0x00000001048caf74 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
    frame #43: 0x00000001036f88ed QtWidgets`QWidgetPrivate::show_helper() + 413
    frame #44: 0x00000001036f953c QtWidgets`QWidgetPrivate::setVisible(bool) + 828
    frame #45: 0x00000001036f8b34 QtWidgets`QWidgetPrivate::showChildren(bool) + 340
    frame #46: 0x00000001036f8798 QtWidgets`QWidgetPrivate::show_helper() + 72
    frame #47: 0x00000001036f953c QtWidgets`QWidgetPrivate::setVisible(bool) + 828
    frame #48: 0x000000010382fb25 QtWidgets`QMdiSubWindow::changeEvent(QEvent*) + 213
    frame #49: 0x00000001036f9774 QtWidgets`QWidget::event(QEvent*) + 116
    frame #50: 0x000000010382f6d7 QtWidgets`QMdiSubWindow::event(QEvent*) + 1847
    frame #51: 0x00000001036beee0 QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
    frame #52: 0x00000001036c0295 QtWidgets`QApplication::notify(QObject*, QEvent*) + 581
    frame #53: 0x0000000101476b3a libkritaui.20.dylib`KisApplication::notify(QObject*, QEvent*) + 26
    frame #54: 0x00000001048caf74 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
    frame #55: 0x00000001036ecf28 QtWidgets`QWidget::setWindowState(QFlags<Qt::WindowState>) + 440
    frame #56: 0x00000001036ed153 QtWidgets`QWidget::showMaximized() + 35
    frame #57: 0x000000010382edda QtWidgets`QMdiSubWindow::eventFilter(QObject*, QEvent*) + 2170
    frame #58: 0x00000001048cb20e QtCore`QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 206
    frame #59: 0x00000001036beecb QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 251
    frame #60: 0x00000001036c0295 QtWidgets`QApplication::notify(QObject*, QEvent*) + 581
    frame #61: 0x0000000101476b3a libkritaui.20.dylib`KisApplication::notify(QObject*, QEvent*) + 26
    frame #62: 0x00000001048caf74 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
    frame #63: 0x00000001036ecf28 QtWidgets`QWidget::setWindowState(QFlags<Qt::WindowState>) + 440
    frame #64: 0x00000001036ed153 QtWidgets`QWidget::showMaximized() + 35
    frame #65: 0x00000001014afca2 libkritaui.20.dylib`KisMainWindow::showView(KisView*, QMdiSubWindow*) + 658
    frame #66: 0x00000001014aed6a libkritaui.20.dylib`KisMainWindow::addView(KisView*, QMdiSubWindow*) + 170
    frame #67: 0x00000001014b22d4 libkritaui.20.dylib`KisMainWindow::addViewAndNotifyLoadingCompleted(KisDocument*, QMdiSubWindow*) + 84
    frame #68: 0x00000001048fab55 QtCore`QMetaObject::activate(QObject*, int, int, void**) + 1765
    frame #69: 0x00000001015616cc libkritaui.20.dylib`___lldb_unnamed_symbol7261$$libkritaui.20.dylib + 60
    frame #70: 0x00000001048fab55 QtCore`QMetaObject::activate(QObject*, int, int, void**) + 1765
    frame #71: 0x0000000103852042 QtWidgets`___lldb_unnamed_symbol2264$$QtWidgets + 786
    frame #72: 0x00000001048fab55 QtCore`QMetaObject::activate(QObject*, int, int, void**) + 1765
    frame #73: 0x00000001037a7baf QtWidgets`___lldb_unnamed_symbol1008$$QtWidgets + 111
    frame #74: 0x00000001037a7a4c QtWidgets`___lldb_unnamed_symbol1006$$QtWidgets + 236
    frame #75: 0x00000001037a8b7c QtWidgets`QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 268
    frame #76: 0x00000001036f98b7 QtWidgets`QWidget::event(QEvent*) + 439
    frame #77: 0x00000001036beee0 QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
    frame #78: 0x00000001036c1e46 QtWidgets`QApplication::notify(QObject*, QEvent*) + 7670
    frame #79: 0x0000000101476b3a libkritaui.20.dylib`KisApplication::notify(QObject*, QEvent*) + 26
    frame #80: 0x00000001048caf74 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
    frame #81: 0x00000001036bf807 QtWidgets`QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 903
    frame #82: 0x0000000103718bef QtWidgets`___lldb_unnamed_symbol467$$QtWidgets + 1663
    frame #83: 0x00000001037178de QtWidgets`___lldb_unnamed_symbol462$$QtWidgets + 238
    frame #84: 0x00000001036beee0 QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
    frame #85: 0x00000001036c0295 QtWidgets`QApplication::notify(QObject*, QEvent*) + 581
    frame #86: 0x0000000101476b3a libkritaui.20.dylib`KisApplication::notify(QObject*, QEvent*) + 26
    frame #87: 0x00000001048caf74 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
    frame #88: 0x00000001040506a3 QtGui`QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 4003
    frame #89: 0x00000001040376cb QtGui`QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 219
    frame #90: 0x000000010be372a8 libqcocoa.dylib`___lldb_unnamed_symbol693$$libqcocoa.dylib + 40
    frame #91: 0x00007fff2d67fd52 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #92: 0x00007fff2d67fcf1 CoreFoundation`__CFRunLoopDoSource0 + 103
    frame #93: 0x00007fff2d67fb0b CoreFoundation`__CFRunLoopDoSources0 + 209
    frame #94: 0x00007fff2d67e83a CoreFoundation`__CFRunLoopRun + 927
    frame #95: 0x00007fff2d67de3e CoreFoundation`CFRunLoopRunSpecific + 462
    frame #96: 0x00007fff2c2aaabd HIToolbox`RunCurrentEventLoopInMode + 292
    frame #97: 0x00007fff2c2aa6f4 HIToolbox`ReceiveNextEventCommon + 359
    frame #98: 0x00007fff2c2aa579 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 64
    frame #99: 0x00007fff2a8f0039 AppKit`_DPSNextEvent + 883
    frame #100: 0x00007fff2a8ee880 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
    frame #101: 0x00007fff2a8e058e AppKit`-[NSApplication run] + 658
    frame #102: 0x000000010be36108 libqcocoa.dylib`___lldb_unnamed_symbol674$$libqcocoa.dylib + 2648
    frame #103: 0x00000001048c66bf QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
    frame #104: 0x00000001038bb58e QtWidgets`QDialog::exec() + 510
    frame #105: 0x00000001014b7286 libkritaui.20.dylib`KisMainWindow::slotFileNew() + 1334
    frame #106: 0x00000001048fab55 QtCore`QMetaObject::activate(QObject*, int, int, void**) + 1765
    frame #107: 0x00000001037a7baf QtWidgets`___lldb_unnamed_symbol1008$$QtWidgets + 111
    frame #108: 0x00000001037a7a4c QtWidgets`___lldb_unnamed_symbol1006$$QtWidgets + 236
    frame #109: 0x00000001037a8b7c QtWidgets`QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 268
    frame #110: 0x00000001036f98b7 QtWidgets`QWidget::event(QEvent*) + 439
    frame #111: 0x00000001036beee0 QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
    frame #112: 0x00000001036c1e46 QtWidgets`QApplication::notify(QObject*, QEvent*) + 7670
    frame #113: 0x0000000101476b3a libkritaui.20.dylib`KisApplication::notify(QObject*, QEvent*) + 26
    frame #114: 0x00000001048caf74 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
    frame #115: 0x00000001036bf807 QtWidgets`QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 903
    frame #116: 0x0000000103718bef QtWidgets`___lldb_unnamed_symbol467$$QtWidgets + 1663
    frame #117: 0x00000001037178de QtWidgets`___lldb_unnamed_symbol462$$QtWidgets + 238
    frame #118: 0x00000001036beee0 QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
    frame #119: 0x00000001036c0295 QtWidgets`QApplication::notify(QObject*, QEvent*) + 581
    frame #120: 0x0000000101476b3a libkritaui.20.dylib`KisApplication::notify(QObject*, QEvent*) + 26
    frame #121: 0x00000001048caf74 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
    frame #122: 0x00000001040506a3 QtGui`QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 4003
    frame #123: 0x00000001040376cb QtGui`QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 219
    frame #124: 0x000000010be372a8 libqcocoa.dylib`___lldb_unnamed_symbol693$$libqcocoa.dylib + 40
    frame #125: 0x00007fff2d67fd52 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #126: 0x00007fff2d67fcf1 CoreFoundation`__CFRunLoopDoSource0 + 103
    frame #127: 0x00007fff2d67fb0b CoreFoundation`__CFRunLoopDoSources0 + 209
    frame #128: 0x00007fff2d67e83a CoreFoundation`__CFRunLoopRun + 927
    frame #129: 0x00007fff2d67de3e CoreFoundation`CFRunLoopRunSpecific + 462
    frame #130: 0x00007fff2c2aaabd HIToolbox`RunCurrentEventLoopInMode + 292
    frame #131: 0x00007fff2c2aa6f4 HIToolbox`ReceiveNextEventCommon + 359
    frame #132: 0x00007fff2c2aa579 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 64
    frame #133: 0x00007fff2a8f0039 AppKit`_DPSNextEvent + 883
    frame #134: 0x00007fff2a8ee880 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
    frame #135: 0x00007fff2a8e058e AppKit`-[NSApplication run] + 658
    frame #136: 0x000000010be36108 libqcocoa.dylib`___lldb_unnamed_symbol674$$libqcocoa.dylib + 2648
    frame #137: 0x00000001048c66bf QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
    frame #138: 0x00000001048cb5c2 QtCore`QCoreApplication::exec() + 130
    frame #139: 0x000000010000fcc6 krita`main + 10694
    frame #140: 0x00007fff676efcc9 libdyld.dylib`start + 1
  thread #6
    frame #0: 0x00007fff678324ce libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff678f0aa1 libsystem_pthread.dylib`_pthread_wqthread + 390
    frame #2: 0x00007fff678efb77 libsystem_pthread.dylib`start_wqthread + 15
  thread #7
    frame #0: 0x00007fff678324ce libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff678f0aa1 libsystem_pthread.dylib`_pthread_wqthread + 390
    frame #2: 0x00007fff678efb77 libsystem_pthread.dylib`start_wqthread + 15
  thread #8, queue = 'com.apple.opengl.cvmDoWork'
    frame #0: 0x00007fff67830dfa libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007fff67831170 libsystem_kernel.dylib`mach_msg + 60
    frame #2: 0x00007fff676aa90e libdispatch.dylib`_dispatch_mach_send_and_wait_for_reply + 632
    frame #3: 0x00007fff676aad4e libdispatch.dylib`dispatch_mach_send_with_result_and_wait_for_reply + 50
    frame #4: 0x00007fff67932846 libxpc.dylib`xpc_connection_send_message_with_reply_sync + 238
    frame #5: 0x00007fff37526573 libCoreVMClient.dylib`cvms_element_build_and_get_internal + 229
    frame #6: 0x00007fff3752647f libCoreVMClient.dylib`cvms_element_build_from_source + 185
    frame #7: 0x00007fff3751dfce libCVMSPluginSupport.dylib`cvm_deferred_build_modular(void*) + 422
    frame #8: 0x00007fff67696658 libdispatch.dylib`_dispatch_client_callout + 8
    frame #9: 0x00007fff6769bc44 libdispatch.dylib`_dispatch_lane_serial_drain + 597
    frame #10: 0x00007fff6769c5d6 libdispatch.dylib`_dispatch_lane_invoke + 363
    frame #11: 0x00007fff676a5c09 libdispatch.dylib`_dispatch_workloop_worker_thread + 596
    frame #12: 0x00007fff678f0a3d libsystem_pthread.dylib`_pthread_wqthread + 290
    frame #13: 0x00007fff678efb77 libsystem_pthread.dylib`start_wqthread + 15
  thread #9, name = 'com.apple.CFSocket.private'
    frame #0: 0x00007fff678390fe libsystem_kernel.dylib`__select + 10
    frame #1: 0x00007fff2d6a8c53 CoreFoundation`__CFSocketManager + 641
    frame #2: 0x00007fff678f4109 libsystem_pthread.dylib`_pthread_start + 148
    frame #3: 0x00007fff678efb8b libsystem_pthread.dylib`thread_start + 15
  thread #10, name = 'com.apple.NSEventThread'
    frame #0: 0x00007fff67830dfa libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007fff67831170 libsystem_kernel.dylib`mach_msg + 60
    frame #2: 0x00007fff2d67fef5 CoreFoundation`__CFRunLoopServiceMachPort + 247
    frame #3: 0x00007fff2d67e9c2 CoreFoundation`__CFRunLoopRun + 1319
    frame #4: 0x00007fff2d67de3e CoreFoundation`CFRunLoopRunSpecific + 462
    frame #5: 0x00007fff2aa91954 AppKit`_NSEventThread + 132
    frame #6: 0x00007fff678f4109 libsystem_pthread.dylib`_pthread_start + 148
    frame #7: 0x00007fff678efb8b libsystem_pthread.dylib`thread_start + 15
  thread #11, name = 'Qt bearer thread'
    frame #0: 0x00007fff678373d6 libsystem_kernel.dylib`poll + 10
    frame #1: 0x000000010491f7f0 QtCore`qt_safe_poll(pollfd*, unsigned int, timespec const*) + 480
    frame #2: 0x0000000104920eb3 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 899
    frame #3: 0x00000001048c66bf QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
    frame #4: 0x000000010470809c QtCore`QThread::exec() + 140
    frame #5: 0x0000000104708f53 QtCore`___lldb_unnamed_symbol228$$QtCore + 323
    frame #6: 0x00007fff678f4109 libsystem_pthread.dylib`_pthread_start + 148
    frame #7: 0x00007fff678efb8b libsystem_pthread.dylib`thread_start + 15
  thread #12, name = 'KisTileDataSwapper'
    frame #0: 0x00007fff67833882 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff678f4425 libsystem_pthread.dylib`_pthread_cond_wait + 698
    frame #2: 0x000000010471123b QtCore`___lldb_unnamed_symbol285$$QtCore + 59
    frame #3: 0x00000001047111d4 QtCore`QWaitCondition::wait(QMutex*, QDeadlineTimer) + 100
    frame #4: 0x000000010470d93e QtCore`QSemaphore::tryAcquire(int, int) + 142
    frame #5: 0x000000010253baa5 libkritaimage.20.dylib`KisTileDataSwapper::run() + 53
    frame #6: 0x0000000104708f53 QtCore`___lldb_unnamed_symbol228$$QtCore + 323
    frame #7: 0x00007fff678f4109 libsystem_pthread.dylib`_pthread_start + 148
    frame #8: 0x00007fff678efb8b libsystem_pthread.dylib`thread_start + 15
  thread #14
    frame #0: 0x00007fff67830e4e libsystem_kernel.dylib`semaphore_timedwait_trap + 10
    frame #1: 0x00007fff67696b6b libdispatch.dylib`_dispatch_sema4_timedwait + 76
    frame #2: 0x00007fff67696f97 libdispatch.dylib`_dispatch_semaphore_wait_slow + 58
    frame #3: 0x00007fff676a4795 libdispatch.dylib`_dispatch_worker_thread + 284
    frame #4: 0x00007fff678f4109 libsystem_pthread.dylib`_pthread_start + 148
    frame #5: 0x00007fff678efb8b libsystem_pthread.dylib`thread_start + 15
  thread #15
    frame #0: 0x00007fff678324ce libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff678f0aa1 libsystem_pthread.dylib`_pthread_wqthread + 390
    frame #2: 0x00007fff678efb77 libsystem_pthread.dylib`start_wqthread + 15
  thread #16
    frame #0: 0x00007fff678324ce libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff678f0aa1 libsystem_pthread.dylib`_pthread_wqthread + 390
    frame #2: 0x00007fff678efb77 libsystem_pthread.dylib`start_wqthread + 15
  thread #17
    frame #0: 0x00007fff678324ce libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff678f0aa1 libsystem_pthread.dylib`_pthread_wqthread + 390
    frame #2: 0x00007fff678efb77 libsystem_pthread.dylib`start_wqthread + 15
  thread #18
    frame #0: 0x00007fff678324ce libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff678f0aa1 libsystem_pthread.dylib`_pthread_wqthread + 390
    frame #2: 0x00007fff678efb77 libsystem_pthread.dylib`start_wqthread + 15
  thread #19
    frame #0: 0x0000000000000000
(lldb)
Comment 1 vanyossi 2021-03-12 03:05:38 UTC
Im not so sure how to debug this one, this only crashes if the grid is shown on canvas creation routine. If pixel grid is off before creating the image, and pixel grid is shown after creating the image, there is no crash.
Comment 2 Halla Rempt 2021-03-12 09:15:13 UTC
Well, at least we have a stacktrace.
Comment 3 vanyossi 2021-05-31 13:41:57 UTC
Changing status
Comment 4 vanyossi 2021-06-02 22:18:05 UTC
OpenGl profiling shows the following:

glBlitFramebuffer(0, 356, 0, 356, 0, 356, 0, 356, GL_COLOR_BUFFER_BIT, GL_NEAREST) 
    Error: GL_INVALID_FRAMEBUFFER_OPERATION
    Context: 0x7ffc11f95600
    Virtual Screen:  0/2
    kCGLCPCurrentRendererID:  16925958 (0x01024506)
    GL_RENDERER:  Intel(R) Iris(TM) Graphics 6100
    GL_VENDOR:  Intel Inc.
    GL_VERSION:  4.1 INTEL-14.7.13
    kCGLCPGPUFragmentProcessing:  GL_TRUE
    kCGLCPGPUVertexProcessing:  GL_TRUE
    kCGLCPSwapInterval:  0
Function call stack: 
    0: 0x7fff3b3e492c in glBlitFramebuffer in <libGL.dylib> 
    1: 0x10ed8919b in QOpenGLFramebufferObject::blitFramebuffer(QOpenGLFramebufferObject*, QRect const&, QOpenGLFramebufferObject*, QRect const&, unsigned int, unsigned int, int, int, QOpenGLFramebufferObject::FramebufferRestorePolicy) in <QtGui> 
    2: 0x10ed88d53 in QOpenGLFramebufferObject::blitFramebuffer(QOpenGLFramebufferObject*, QRect const&, QOpenGLFramebufferObject*, QRect const&, unsigned int, unsigned int) in <QtGui> 
    3: 0x10b96e72e in KisOpenGLCanvas2::paintGL() in <libkritaui.20.dylib> 
    4: 0x10b96e357 in KisOpenGLCanvas2::resizeGL(int, int) in <libkritaui.20.dylib> 
    5: 0x10e128ba8 in QOpenGLWidget::resizeEvent(QResizeEvent*) in <QtWidgets> 
    6: 0x10e102ecc in QWidget::event(QEvent*) in <QtWidgets> 
    7: 0x10e0c8b39 in QApplicationPrivate::notify_helper(QObject*, QEvent*) in <QtWidgets> 
    8: 0x10e0c9e52 in QApplication::notify(QObject*, QEvent*) in <QtWidgets> 
    9: 0x10bb1954a in KisApplication::notify(QObject*, QEvent*) in <libkritaui.20.dylib> 
    10: 0x10f309d76 in QCoreApplication::notifyInternal2(QObject*, QEvent*) in <QtCore> 
    11: 0x10e0fb2ce in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) in <QtWidgets> 
    12: 0x10e101a86 in QWidgetPrivate::show_helper() in <QtWidgets> 
    13: 0x10e101e88 in QWidgetPrivate::showChildren(bool) in <QtWidgets> 
    14: 0x10e101aa8 in QWidgetPrivate::show_helper() in <QtWidgets> 
    15: 0x10e1028dc in QWidgetPrivate::setVisible(bool) in <QtWidgets> 
    16: 0x10e101e7e in QWidgetPrivate::showChildren(bool) in <QtWidgets> 
    17: 0x10e101aa8 in QWidgetPrivate::show_helper() in <QtWidgets> 
    18: 0x10e1028dc in QWidgetPrivate::setVisible(bool) in <QtWidgets> 
    19: 0x10e101e7e in QWidgetPrivate::showChildren(bool) in <QtWidgets> 
    20: 0x10e101aa8 in QWidgetPrivate::show_helper() in <QtWidgets> 
    21: 0x10e1028dc in QWidgetPrivate::setVisible(bool) in <QtWidgets> 
    22: 0x10e101e7e in QWidgetPrivate::showChildren(bool) in <QtWidgets> 
    23: 0x10e101aa8 in QWidgetPrivate::show_helper() in <QtWidgets> 
    24: 0x10e1028dc in QWidgetPrivate::setVisible(bool) in <QtWidgets> 
    25: 0x10e2381f5 in QMdiSubWindow::changeEvent(QEvent*) in <QtWidgets> 
    26: 0x10e102ad4 in QWidget::event(QEvent*) in <QtWidgets> 
    27: 0x10e237db7 in QMdiSubWindow::event(QEvent*) in <QtWidgets> 
    28: 0x10e0c8b39 in QApplicationPrivate::notify_helper(QObject*, QEvent*) in <QtWidgets> 
    29: 0x10e0c9e52 in QApplication::notify(QObject*, QEvent*) in <QtWidgets> 
    30: 0x10bb1954a in KisApplication::notify(QObject*, QEvent*) in <libkritaui.20.dylib> 
    31: 0x10f309d76 in QCoreApplication::notifyInternal2(QObject*, QEvent*) in <QtCore> 
    32: 0x10e0f62f8 in QWidget::setWindowState(QFlags<Qt::WindowState>) in <QtWidgets> 
    33: 0x10e0f6523 in QWidget::showMaximized() in <QtWidgets> 
    34: 0x10e2374c1 in QMdiSubWindow::eventFilter(QObject*, QEvent*) in <QtWidgets> 
    35: 0x10f30a041 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) in <QtCore> 
    36: 0x10e0c8b24 in QApplicationPrivate::notify_helper(QObject*, QEvent*) in <QtWidgets> 
    37: 0x10e0c9e52 in QApplication::notify(QObject*, QEvent*) in <QtWidgets> 
    38: 0x10bb1954a in KisApplication::notify(QObject*, QEvent*) in <libkritaui.20.dylib> 
    39: 0x10f309d76 in QCoreApplication::notifyInternal2(QObject*, QEvent*) in <QtCore> 
    40: 0x10e0f62f8 in QWidget::setWindowState(QFlags<Qt::WindowState>) in <QtWidgets> 
    41: 0x10e0f6523 in QWidget::showMaximized() in <QtWidgets> 
    42: 0x10bb52932 in KisMainWindow::showView(KisView*, QMdiSubWindow*) in <libkritaui.20.dylib> 
    43: 0x10bb519f5 in KisMainWindow::addView(KisView*, QMdiSubWindow*) in <libkritaui.20.dylib> 
    44: 0x10bb54d64 in KisMainWindow::addViewAndNotifyLoadingCompleted(KisDocument*, QMdiSubWindow*) in <libkritaui.20.dylib> 
    45: 0x10f3388d9 in QMetaObject::activate(QObject*, int, int, void**) in <QtCore> 
    46: 0x10b7208ec in <libkritaui.20.dylib> 
    47: 0x10f3388d9 in QMetaObject::activate(QObject*, int, int, void**) in <QtCore> 
    48: 0x10e25a75f in <QtWidgets> 
    49: 0x10f3388d9 in QMetaObject::activate(QObject*, int, int, void**) in <QtCore> 
    50: 0x10e1b035f in <QtWidgets> 
    51: 0x10e1b01fc in <QtWidgets> 
    52: 0x10e1b133c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) in <QtWidgets> 
    53: 0x10e102c1a in QWidget::event(QEvent*) in <QtWidgets> 
    54: 0x10e0c8b39 in QApplicationPrivate::notify_helper(QObject*, QEvent*) in <QtWidgets> 
    55: 0x10e0cb9d2 in QApplication::notify(QObject*, QEvent*) in <QtWidgets> 
    56: 0x10bb1954a in KisApplication::notify(QObject*, QEvent*) in <libkritaui.20.dylib> 
    57: 0x10f309d76 in QCoreApplication::notifyInternal2(QObject*, QEvent*) in <QtCore> 
    58: 0x10e0c9442 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) in <QtWidgets> 
    59: 0x10e121dcf in <QtWidgets> 
    60: 0x10e120abe in <QtWidgets> 
    61: 0x10e0c8b39 in QApplicationPrivate::notify_helper(QObject*, QEvent*) in <QtWidgets> 
    62: 0x10e0c9e52 in QApplication::notify(QObject*, QEvent*) in <QtWidgets> 
    63: 0x10bb1954a in KisApplication::notify(QObject*, QEvent*) in <libkritaui.20.dylib> 
    64: 0x10f309d76 in QCoreApplication::notifyInternal2(QObject*, QEvent*) in <QtCore> 
    65: 0x10ea93637 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) in <QtGui> 
    66: 0x10ea7ac8b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) in <QtGui> 
    67: 0x111dbd528 in <libqcocoa.dylib> 
    68: 0x7fff3151b832 in _CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ in <CoreFoundation> 
    69: 0x7fff3151b7d1 in _CFRunLoopDoSource0 in <CoreFoundation> 
    70: 0x7fff3151b5eb in _CFRunLoopDoSources0 in <CoreFoundation> 
    71: 0x7fff3151a31a in _CFRunLoopRun in <CoreFoundation> 
    72: 0x7fff3151991e in CFRunLoopRunSpecific in <CoreFoundation> 
    73: 0x7fff30145abd in RunCurrentEventLoopInMode in <HIToolbox> 
    74: 0x7fff301456f4 in ReceiveNextEventCommon in <HIToolbox> 
    75: 0x7fff30145579 in BlockUntilNextEventMatchingListInModeWithFilter in <HIToolbox> 
    76: 0x7fff2e78c039 in DPSNextEvent in <AppKit> 
    77: 0x7fff2e78a880 in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] in <AppKit> 
    78: 0x7fff2e77c58e in -[NSApplication run] in <AppKit> 
    79: 0x111dbc3dd in <libqcocoa.dylib> 
    80: 0x10f305797 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) in <QtCore> 
    81: 0x10e2c38ae in QDialog::exec() in <QtWidgets> 
    82: 0x10bb595c3 in KisMainWindow::slotFileNew() in <libkritaui.20.dylib> 
    83: 0x10f3388d9 in QMetaObject::activate(QObject*, int, int, void**) in <QtCore> 
    84: 0x10e1b035f in <QtWidgets> 
    85: 0x10e1b01fc in <QtWidgets> 
    86: 0x10e1b133c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) in <QtWidgets> 
    87: 0x10e102c1a in QWidget::event(QEvent*) in <QtWidgets> 
    88: 0x10e0c8b39 in QApplicationPrivate::notify_helper(QObject*, QEvent*) in <QtWidgets> 
    89: 0x10e0cb9d2 in QApplication::notify(QObject*, QEvent*) in <QtWidgets> 
    90: 0x10bb1954a in KisApplication::notify(QObject*, QEvent*) in <libkritaui.20.dylib> 
    91: 0x10f309d76 in QCoreApplication::notifyInternal2(QObject*, QEvent*) in <QtCore> 
    92: 0x10e0c9442 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) in <QtWidgets> 
    93: 0x10e121dcf in <QtWidgets> 
    94: 0x10e120abe in <QtWidgets> 
    95: 0x10e0c8b39 in QApplicationPrivate::notify_helper(QObject*, QEvent*) in <QtWidgets> 
    96: 0x10e0c9e52 in QApplication::notify(QObject*, QEvent*) in <QtWidgets> 
    97: 0x10bb1954a in KisApplication::notify(QObject*, QEvent*) in <libkritaui.20.dylib> 
    98: 0x10f309d76 in QCoreApplication::notifyInternal2(QObject*, QEvent*) in <QtCore> 
    99: 0x10ea93637 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) in <QtGui> 
    100: 0x10ea7ac8b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) in <QtGui> 
    101: 0x111dbd528 in <libqcocoa.dylib> 
    102: 0x7fff3151b832 in _CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ in <CoreFoundation> 
    103: 0x7fff3151b7d1 in _CFRunLoopDoSource0 in <CoreFoundation> 
    104: 0x7fff3151b5eb in _CFRunLoopDoSources0 in <CoreFoundation> 
    105: 0x7fff3151a31a in _CFRunLoopRun in <CoreFoundation> 
    106: 0x7fff3151991e in CFRunLoopRunSpecific in <CoreFoundation> 
    107: 0x7fff30145abd in RunCurrentEventLoopInMode in <HIToolbox> 
    108: 0x7fff301456f4 in ReceiveNextEventCommon in <HIToolbox> 
    109: 0x7fff30145579 in BlockUntilNextEventMatchingListInModeWithFilter in <HIToolbox> 
    110: 0x7fff2e78c039 in DPSNextEvent in <AppKit> 
    111: 0x7fff2e78a880 in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] in <AppKit> 
    112: 0x7fff2e77c58e in -[NSApplication run] in <AppKit> 
    113: 0x111dbc3dd in <libqcocoa.dylib> 
    114: 0x10f305797 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) in <QtCore> 
    115: 0x10f30a3d2 in QCoreApplication::exec() in <QtCore> 
    116: 0x10a7860ae in main in <krita> 
    117: 0x7fff6b602cc9 in start in <libdyld.dylib>
Comment 5 Halla Rempt 2021-07-13 11:27:30 UTC
*** Bug 439794 has been marked as a duplicate of this bug. ***
Comment 6 Alvin Wong 2021-09-01 15:04:40 UTC
*** Bug 441868 has been marked as a duplicate of this bug. ***
Comment 7 wolthera 2021-09-19 14:22:34 UTC
Is this still relevant with the new opengl handling patch?
Comment 8 Halla Rempt 2021-09-19 15:57:32 UTC
Yes, it happened to me this week with the multibuffer branch.
Comment 9 wolthera 2021-10-04 19:32:25 UTC
*** Bug 443318 has been marked as a duplicate of this bug. ***
Comment 10 Halla Rempt 2021-10-05 14:59:01 UTC
Maybe we should give in and make the minimum width/height of an image 64x64 on macos?
Comment 11 wolthera 2021-10-05 15:04:42 UTC
I think this might be wise for 5.0, yes. And then we revert the change once we have a real fix.
Comment 12 Halla Rempt 2021-10-06 09:28:52 UTC
Ivan, can you take care of that?
Comment 13 Wojciech Kosowicz 2021-10-06 09:54:41 UTC
Created attachment 142203 [details]
attachment-5195-0.html

Please do

śr., 6 paź 2021, 11:29 użytkownik Halla Rempt <bugzilla_noreply@kde.org>
napisał:

> https://bugs.kde.org/show_bug.cgi?id=430366
>
> --- Comment #12 from Halla Rempt <halla@valdyas.org> ---
> Ivan, can you take care of that?
>
> --
> You are receiving this mail because:
> You are watching all bug changes.
>
>
Comment 14 vanyossi 2021-10-07 19:29:11 UTC
Im on it
Comment 15 vanyossi 2021-10-11 08:57:52 UTC
I can no longer reproduce this bug in krita master (45ea106), also not reproductible on the stable branch. The trace shows there is an invalid buffer state during the gridDraw procedure, however, since we now create buffers differently it no longer crashes. 

Please reopen if you encounter this issue again.