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

Access violation on QBidiAlgorithm::generateDirectionalRuns()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.8.3
    • GUI: Text handling
    • None
    • Windows

    Description

      Found this in our user crash reports on Sentry. It doesn't affect many users, but it's pretty consistent. Unfortunately, there are no much details as we can't reproduce it locally.

      Unhandled exception at 0x00007FFFCB7C9525 (Qt6Gui.dll) in fdc32558-2752-4416-9a09-fd21b79427dc.dmp: 0xC0000005: Access violation writing location 0x0000000000000000.
      

      Call stack:

       	Qt6Gui.dll!`anonymous-namespace'::QBidiAlgorithm::generateDirectionalRuns::__l2::<lambda_1>::operator()(int runEnd) Line 335	C++
      >	Qt6Gui.dll!`anonymous namespace'::QBidiAlgorithm::generateDirectionalRuns(const QVarLengthArray<`anonymous namespace'::QBidiAlgorithm::IsolatePair,64> & isolatePairs, QVarLengthArray<`anonymous namespace'::QBidiAlgorithm::DirectionalRun,64> & runs) Line 490	C++
       	[Inline Frame] Qt6Gui.dll!`anonymous-namespace'::QBidiAlgorithm::resolveExplicitLevels(QVarLengthArray<`anonymous namespace'::QBidiAlgorithm::DirectionalRun,64> &) Line 506	C++
       	Qt6Gui.dll!`anonymous namespace'::QBidiAlgorithm::process() Line 1055	C++
       	Qt6Gui.dll!QTextEngine::itemize() Line 1946	C++
       	Qt6Gui.dll!QTextLayout::beginLayout() Line 604	C++
       	Qt6Quick.dll!QQuickTextPrivate::setupTextLayout(double * const baseline) Line 987	C++
       	Qt6Quick.dll!QQuickTextPrivate::updateSize() Line 491	C++
       	Qt6Quick.dll!QQuickTextPrivate::updateLayout() Line 269	C++
      ...
      

       

      It looks like the runs array is empty, and we simply crash on nullptr access when trying to get the element at index 0.

      Attachments

        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:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes