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

Crash on translate (memory access violation)

    XMLWordPrintable

Details

    • Linux/Wayland

    Description

      We translate the text dynamically (as it described here https://wiki.qt.io/How_to_do_dynamic_translation_in_QML). After language changing from English to English US UI retranslation begins and then crash occures. Stack shows us that crash was in match function.

       FYI kileppal

      Clip from the stack trace:

      #0 0x0000007fa4f2540c in match (targetLen=18, target=0x33709728
      "ClimateBlowerGroup", foundLen=136,
      found=0x7f5184bfd5 <error: Cannot access memory at address
      0x7f5184bfd5>)
      at /usr/src/debug/qtbase/5.12.10+gitAUTOINC+c919fc5f65-r0/git/src/corelib/
      kernel/qtranslator.cpp:102
      #1 QTranslatorPrivate::do_translate (this=0x2f4e1380, context=0x33709728
      "ClimateBlowerGroup", sourceText=0x31387718 "1",
      comment=0x7fa500c490 <QArrayData::shared_null+24> "",
      n=-1) at /usr/src/debug/qtbase/5.12.10+gitAUTOINC+c919fc5f65-r0/git/src/coreli
      b/kernel/qtranslator.cpp:1001

      Attachments

        Activity

          People

            kkohne Kai Köhne
            dmitry_yerin Dmitry Erin
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: