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

Qt Crash while displaying certain Utf8 strings

    XMLWordPrintable

Details

    Description

      I have been using Qt since 4.6.0. This bug has been around forever, even in the latest release.

      Please note that the crash doesn't happen 100% of the time. You might have to try a few times until it pops up, but as it is a very simple application that shouldn't be an issue.

      There are a few things worth noting that I observed:

      1) QString::fromUtf8() alone doesn't trigger the crash. For example loading the list of users into a zero size QListView will not cause the application to crash, the strings have to be visible for the crash to appear. - I am not sure what that implies, but there you go

      2) The crash appears after all the data has been loaded, not in the middle of loading the data. That supports (1)

      And this is about it. From my point of view this is a rather serious crash bug, as many gamers using the tool I created started getting it. This made me look into it, and I realized it's been there for years.

      This is my first bug report, I hope it's helpful. If you need anything else please let me know

      Note: move the "users.50.txt" into the release directory

      Attachments

        1. char_tester.pro
          0.3 kB
        2. main.cpp
          3 kB
        3. users.50.txt
          40 kB
        4. main.cpp
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ritt.ks Konstantin Ritt
            sir-rogers Roger Weber
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes