Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-16114

QtCreator crashes with misconfigured ICU

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.0.0-rc1
    • Qt Creator 3.6.1
    • Editors
    • None
    • Windows 7, MSVC 2015

    Description

      ICU can build a stub icudtXX.dll that is only 3K in size and missing a lot of data. Attempts to access this data result in E_FILE_ACCESS_ERROR inside ICU and causes many of the functions to return 0/null. QtCreator behaviorsettingswidget.cpp around line 71 calls QTextCodec::codecForMib(), which in my case returned a null QTextCodec. The next line of code calls for codec->name() on the null QTextCodec, resulting in the crash. Obviously a properly built ICU would be the ideal resolution, but QtCreator should not crash. The end goal for this chunk of code is to populate Tools, Options, Text Editor, File Encodings, Default encoding combo box, there could be a reasonable fallback or just an empty combo box should the QTextCodec::codecForMib fail.

      Attachments

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

        Activity

          People

            davschul David Schulz
            jflatt Jason Flatt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes