Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-136948

Access violation in QQuickTextControlPrivate::inputMethodEvent

    XMLWordPrintable

Details

    • Windows

    Description

      Observing this when analyzing our users' crashes in Sentry. It's never reproduced in our testing environment, so I have no idea about preconditions/steps.

      Unhandled exception at 0x00007FF937ACC296 (Qt6Gui.dll) in 6bfa48f6-948c-4952-b1e4-1428bb68096f.dmp: 0xC0000005: Access violation reading location 0x0000000000000000.
      

      Call stack:

       	[Inline Frame] Qt6Gui.dll!QTextEngine::preeditAreaText() Line 566	C++
      >	Qt6Gui.dll!QTextLayout::preeditAreaText() Line 492	C++
       	Qt6Quick.dll!QQuickTextControlPrivate::inputMethodEvent(QInputMethodEvent * e) Line 1313	C++
       	Qt6Quick.dll!QQuickTextControl::processEvent(QEvent * e, const QPointF & coordinateOffset) Line 707	C++
       	Qt6Quick.dll!QQuickTextEdit::inputMethodEvent(QInputMethodEvent * event) Line 2255	C++
       	Qt6Quick.dll!QQuickItem::event(QEvent * ev) Line 9164	C++
       	Qt6Core.dll!QCoreApplication::notifyInternal2(QObject * receiver, QEvent * event) Line 1177	C++
       	qwindows.dll!QWindowsInputContext::composition(HWND__ * hwnd, __int64 lParamIn) Line 522	C++
       	qwindows.dll!QWindowsContext::windowsProc(HWND__ * hwnd, unsigned int message, QtWindows::WindowsEventType et, unsigned __int64 wParam, __int64 lParam, __int64 * result, QWindowsWindow * * platformWindowPtr) Line 1026	C++
       	qwindows.dll!qWindowsWndProc(HWND__ * hwnd, unsigned int message, unsigned __int64 wParam, __int64 lParam) Line 1500	C++
      ...
      

      It looks like that cursor block's layout can be nullptr under some circumstances.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              studiosus Vladimir Belyavsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes