qt6 inconsistent crash when opening viewer with plain text file · Issue #2265 · doublecmd/doublecmd · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doublecmd sometimes crashes when I view (F3) plain text file (no syntax highlighting) I see this in terminal when doublecmd crashes (qt custom debug build):
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
ASSERT: "s" in file /home/asd/s/qt/qtbase/src/gui/painting/qpaintengine_raster.cpp, line 587
I can only crash doublecmd in host, not qemu virtual machine.
#0QBackingStore::endPaint (this=0x2f224d0) at /home/asd/s/qt/qtbase/src/gui/painting/qbackingstore.cpp:178
#10x00007ffff6bee5ea in QWidgetRepaintManager::paintAndFlush (this=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidgetrepaintmanager.cpp:910
#20x00007ffff6becd5d in QWidgetRepaintManager::sync (this=0x2eeb7d0, exposedWidget=0x2f5a350, exposedRegion=...) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidgetrepaintmanager.cpp:632
#30x00007ffff6ba8c38 in QWidgetPrivate::syncBackingStore (this=0x2fb57a0, region=...) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:1780
#40x00007ffff6bfcc88 in QWidgetWindow::handleExposeEvent (this=0x2f1e930, event=0x7fffffffa560) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidgetwindow.cpp:1090
#50x00007ffff6bf943a in QWidgetWindow::event (this=0x2f1e930, event=0x7fffffffa560) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidgetwindow.cpp:339
#60x00007ffff6b26cf2 in QApplicationPrivate::notify_helper (this=0x19965d0, receiver=0x2f1e930, e=0x7fffffffa560) at /home/asd/s/qt/qtbase/src/widgets/kernel/qapplication.cpp:3301
#70x00007ffff6b26ad6 in QApplication::notify (this=0x19ad1f0, receiver=0x2f1e930, e=0x7fffffffa560) at /home/asd/s/qt/qtbase/src/widgets/kernel/qapplication.cpp:3251
#80x00007ffff4f682b0 in QCoreApplication::notifyInternal2 (receiver=0x2f1e930, event=0x7fffffffa560) at /home/asd/s/qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#90x00007ffff4f68ecb in QCoreApplication::sendSpontaneousEvent (receiver=0x2f1e930, event=0x7fffffffa560) at /home/asd/s/qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1560
#100x00007ffff5c64ef5 in QGuiApplicationPrivate::processExposeEvent (e=0x3029030) at /home/asd/s/qt/qtbase/src/gui/kernel/qguiapplication.cpp:3487
#110x00007ffff5c5f72c in QGuiApplicationPrivate::processWindowSystemEvent (e=0x3029030) at /home/asd/s/qt/qtbase/src/gui/kernel/qguiapplication.cpp:2281
#120x00007ffff5d2907a in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /home/asd/s/qt/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1113
#130x00007ffff178c36c in xcbSourceDispatch (source=0x1a0cca0) at /home/asd/s/qt/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:57
#140x00007ffff78a7638 in ??? () at /lib64/libglib-2.0.so.0
#150x00007ffff78a9398 in ??? () at /lib64/libglib-2.0.so.0
#160x00007ffff78a9bac in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#170x00007ffff5410136 in QEventDispatcherGlib::processEvents (this=0x1a09580, flags=...) at /home/asd/s/qt/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#180x00007ffff178c5ca in QXcbGlibEventDispatcher::processEvents (this=0x1a09580, flags=...) at /home/asd/s/qt/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:96
#190x00007ffff4f6893b in QCoreApplication::processEvents (flags=...) at /home/asd/s/qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1341
#200x00007ffff7cea1c1 in QCoreApplication_processEvents (flags=1) at /home/asd/s/lazarus/lcl/interfaces/qt6/cbindings/src/qcoreapplication_c.cpp:107
#210x00000000008161a7 in Show (this=0x300ad10, AWidget=0x2eeace0) at /home/asd/s/lazarus/lcl/interfaces/qt6/qtcaret.pas:397
#220x0000000000815786 in ShowCaret (Widget=0x2eeace0) at /home/asd/s/lazarus/lcl/interfaces/qt6/qtcaret.pas:208
#230x00000000006f4d63 in ShowCaret (this=0x19af9c0, hWnd=49196256) at /home/asd/s/lazarus/lcl/interfaces/qt6/qtwinapi.inc:6471
#240x000000000065188e in ShowCaret (hWnd=49196256) at /home/asd/s/lazarus/lcl/include/winapi.inc:1014
#250x0000000000ca869f in OutText (this=0x301fe20, x=4, y=0, sText=..., StartPos=0, DataLength=1) at /home/asd/s/doublecmd/components/viewer/viewercontrol.pas:2156
#260x0000000000ca75ef in WriteText (this=0x301fe20) at /home/asd/s/doublecmd/components/viewer/viewercontrol.pas:1833
#270x0000000000ca3b09 in Paint (this=0x301fe20) at /home/asd/s/doublecmd/components/viewer/viewercontrol.pas:708
#280x000000000072a096 in PaintWindow (this=0x301fe20, DC=140737018628528) at /home/asd/s/lazarus/lcl/include/customcontrol.inc:123
#290x000000000070f657 in PaintHandler (this=0x301fe20, TheMessage=...) at /home/asd/s/lazarus/lcl/include/wincontrol.inc:4925
#300x0000000000713fdd in WMPaint (this=0x301fe20, Msg=...) at /home/asd/s/lazarus/lcl/include/wincontrol.inc:6870
#310x0000000000729fc3 in WMPaint (this=0x301fe20, Message=...) at /home/asd/s/lazarus/lcl/include/customcontrol.inc:103
#320x0000000000441018 in Dispatch (this=0x301fe20, message=<error reading variable: Attempt to dereference a generic pointer.>) at /home/asd/s/fpc/rtl/inc/objpas.inc:768
#330x000000000071f0e3 in WndProc (this=0x301fe20, TheMessage=...) at /home/asd/s/lazarus/lcl/include/control.inc:2299
#340x0000000000710cbd in WndProc (this=0x301fe20, Message=...) at /home/asd/s/lazarus/lcl/include/wincontrol.inc:5474
#350x000000000081faad in SlotPaint (this=0x2efa1c0, Sender=0x2f29d20, Event=0x7fffffffb8f0) at /home/asd/s/lazarus/lcl/interfaces/qt6/qtwidgets.pas:4355
#360x000000000081c491 in EventFilter (this=0x2efa1c0, Sender=0x2f29d20, Event=0x7fffffffb8f0) at /home/asd/s/lazarus/lcl/interfaces/qt6/qtwidgets.pas:2826
#370x00000000008406f1 in EventFilter (this=0x2efa1c0, Sender=0x2f29d20, Event=0x7fffffffb8f0) at /home/asd/s/lazarus/lcl/interfaces/qt6/qtwidgets.pas:17555
#380x0000000000841b8e in ViewPortEventFilter (this=0x2eeace0, event=0x7fffffffb8f0, retval=0x7fffffffb4a7) at /home/asd/s/lazarus/lcl/interfaces/qt6/qtwidgets.pas:18083
#390x00007ffff7da2d16 in QLCLAbstractScrollArea::viewportEvent (this=0x2efaaf0, event=0x7fffffffb8f0) at /home/asd/s/lazarus/lcl/interfaces/qt6/cbindings/src/qlclabstractscrollarea.h:40
#400x00007ffff6cd4ffb in QAbstractScrollAreaPrivate::viewportEvent (this=0x2fb91a0, event=0x7fffffffb8f0) at /home/asd/s/qt/qtbase/src/widgets/widgets/qabstractscrollarea_p.h:74
#410x00007ffff6cd50f4 in QAbstractScrollAreaFilter::eventFilter (this=0x2efa9c0, o=0x2f29d20, e=0x7fffffffb8f0) at /home/asd/s/qt/qtbase/src/widgets/widgets/qabstractscrollarea_p.h:85
#420x00007ffff4f687a2 in QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=0x2f29d20, event=0x7fffffffb8f0) at /home/asd/s/qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1243
#430x00007ffff6b26cc6 in QApplicationPrivate::notify_helper (this=0x19965d0, receiver=0x2f29d20, e=0x7fffffffb8f0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qapplication.cpp:3295
#440x00007ffff6b26aae in QApplication::notify (this=0x19ad1f0, receiver=0x2f29d20, e=0x7fffffffb8f0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qapplication.cpp:3247
#450x00007ffff4f682b0 in QCoreApplication::notifyInternal2 (receiver=0x2f29d20, event=0x7fffffffb8f0) at /home/asd/s/qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#460x00007ffff4f68ecb in QCoreApplication::sendSpontaneousEvent (receiver=0x2f29d20, event=0x7fffffffb8f0) at /home/asd/s/qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1560
#470x00007ffff6bb4d41 in QWidgetPrivate::sendPaintEvent (this=0x2ef6080, toBePainted=...) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:5664
#480x00007ffff6bb4896 in QWidgetPrivate::drawWidget (this=0x2ef6080, pdev=0x21ea310, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:5614
#490x00007ffff6bb5770 in QWidgetPrivate::paintSiblingsRecursive (this=0x2fb91a0, pdev=0x21ea310, siblings=..., index=1, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:5793
#500x00007ffff6bb4cb7 in QWidgetPrivate::drawWidget (this=0x2fb91a0, pdev=0x21ea310, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:5655
#510x00007ffff6bb5770 in QWidgetPrivate::paintSiblingsRecursive (this=0x30134a0, pdev=0x21ea310, siblings=..., index=0, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:5793
#520x00007ffff6bb4cb7 in QWidgetPrivate::drawWidget (this=0x30134a0, pdev=0x21ea310, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:5655
#530x00007ffff6bb5770 in QWidgetPrivate::paintSiblingsRecursive (this=0x2154700, pdev=0x21ea310, siblings=..., index=1, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:5793
#540x00007ffff6bb4cb7 in QWidgetPrivate::drawWidget (this=0x2154700, pdev=0x21ea310, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:5655
#550x00007ffff6bb5770 in QWidgetPrivate::paintSiblingsRecursive (this=0x2f4e3e0, pdev=0x21ea310, siblings=..., index=0, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:5793
#560x00007ffff6bb4cb7 in QWidgetPrivate::drawWidget (this=0x2f4e3e0, pdev=0x21ea310, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:5655
#570x00007ffff6bb5770 in QWidgetPrivate::paintSiblingsRecursive (this=0x2fb57a0, pdev=0x21ea310, siblings=..., index=0, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:5793
#580x00007ffff6bb5615 in QWidgetPrivate::paintSiblingsRecursive (this=0x2fb57a0, pdev=0x21ea310, siblings=..., index=1, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:5779
#590x00007ffff6bb4cb7 in QWidgetPrivate::drawWidget (this=0x2fb57a0, pdev=0x21ea310, rgn=..., offset=..., flags=..., sharedPainter=0x0, repaintManager=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:5655
#600x00007ffff6bee5d3 in QWidgetRepaintManager::paintAndFlush (this=0x2eeb7d0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidgetrepaintmanager.cpp:907
#610x00007ffff6becd5d in QWidgetRepaintManager::sync (this=0x2eeb7d0, exposedWidget=0x2f5a350, exposedRegion=...) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidgetrepaintmanager.cpp:632
#620x00007ffff6ba8c38 in QWidgetPrivate::syncBackingStore (this=0x2fb57a0, region=...) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidget.cpp:1780
#630x00007ffff6bfcc88 in QWidgetWindow::handleExposeEvent (this=0x2f1e930, event=0x7fffffffcef0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidgetwindow.cpp:1090
#640x00007ffff6bf943a in QWidgetWindow::event (this=0x2f1e930, event=0x7fffffffcef0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qwidgetwindow.cpp:339
#650x00007ffff6b26cf2 in QApplicationPrivate::notify_helper (this=0x19965d0, receiver=0x2f1e930, e=0x7fffffffcef0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qapplication.cpp:3301
#660x00007ffff6b26ad6 in QApplication::notify (this=0x19ad1f0, receiver=0x2f1e930, e=0x7fffffffcef0) at /home/asd/s/qt/qtbase/src/widgets/kernel/qapplication.cpp:3251
#670x00007ffff4f682b0 in QCoreApplication::notifyInternal2 (receiver=0x2f1e930, event=0x7fffffffcef0) at /home/asd/s/qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#680x00007ffff4f68ecb in QCoreApplication::sendSpontaneousEvent (receiver=0x2f1e930, event=0x7fffffffcef0) at /home/asd/s/qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1560
#690x00007ffff5c64ef5 in QGuiApplicationPrivate::processExposeEvent (e=0x2181c10) at /home/asd/s/qt/qtbase/src/gui/kernel/qguiapplication.cpp:3487
#700x00007ffff5c5f72c in QGuiApplicationPrivate::processWindowSystemEvent (e=0x2181c10) at /home/asd/s/qt/qtbase/src/gui/kernel/qguiapplication.cpp:2281
#710x00007ffff5d2907a in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /home/asd/s/qt/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1113
#720x00007ffff178c36c in xcbSourceDispatch (source=0x1a0cca0) at /home/asd/s/qt/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:57
#730x00007ffff78a7638 in ??? () at /lib64/libglib-2.0.so.0
#740x00007ffff78a9398 in ??? () at /lib64/libglib-2.0.so.0
#750x00007ffff78a9bac in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#760x00007ffff5410136 in QEventDispatcherGlib::processEvents (this=0x1a09580, flags=...) at /home/asd/s/qt/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#770x00007ffff178c5ca in QXcbGlibEventDispatcher::processEvents (this=0x1a09580, flags=...) at /home/asd/s/qt/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:96
#780x00007ffff4f6893b in QCoreApplication::processEvents (flags=...) at /home/asd/s/qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1341
#790x00007ffff7cea1c1 in QCoreApplication_processEvents (flags=0) at /home/asd/s/lazarus/lcl/interfaces/qt6/cbindings/src/qcoreapplication_c.cpp:107
#800x00000000006e1c67 in AppProcessMessages (this=0x19af9c0) at /home/asd/s/lazarus/lcl/interfaces/qt6/qtobject.inc:335
#810x000000000051806d in HandleMessage (this=0x19aeaf0) at /home/asd/s/lazarus/lcl/include/application.inc:1309
#820x000000000051872d in RunLoop (this=0x19aeaf0) at /home/asd/s/lazarus/lcl/include/application.inc:1452
#830x00000000006e1c25 in AppRun (this=0x19af9c0, ALoop=...) at /home/asd/s/lazarus/lcl/interfaces/qt6/qtobject.inc:308
#840x00000000005186cc in Run (this=0x19aeaf0) at /home/asd/s/lazarus/lcl/include/application.inc:1440
#850x00000000004281d3 in $main () at /home/asd/s/doublecmd/src/doublecmd.lpr:252
looks like it's not safe to call LCLIntf.ShowCaret inside paint event handler because it indirectly calls QCoreApplication::processEvents which may cause another paint event
The text was updated successfully, but these errors were encountered:
I see this in terminal when doublecmd crashes (qt custom debug build): I can only crash doublecmd in host, not qemu virtual machine.
gdb backtrace of breakpoint at qbackingstore.cpp:178
LCLIntf.ShowCaret
inside paint event handler because it indirectly callsQCoreApplication::processEvents
which may cause another paint eventThe text was updated successfully, but these errors were encountered: