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

Mac : QtWebEngine crashes in case the system volume formatting is 'case-sensitive'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.12.11, 5.15.3
    • 5.9.3, 5.12.7
    • WebEngine
    • None
    • macOS

    Description

      Steps to reproduce :

      1. Create an app which uses QtWebEngine and copies its resources under "Resources" dir
      2. Launch the app on Mac system volume where formatting is 'case-sensitive' and open QtWebEngine window
      3. The app gets crashed

      When you check console, it logged following while crashing :

      Qt WebEngine ICU data not found at /Volumes/Volume/<APPLICATION_NAME>.app/Contents/resources. Trying parent directory...
      Qt WebEngine ICU data not found at /Volumes/Volume/<APPLICATION_NAME>.app/Contents. Trying application directory...
      Qt WebEngine ICU data not found at /Volumes/Volume/<APPLICATION_NAME>.app/Contents/QtWebEngine. Trying fallback directory... The application MAY NOT work.
      

      As you can clearly see, the reason for the crash is that Qt WebEngine is unable to find its resources (icudtl.dat in this case) in "resources" dir.

      The bug or issue here is Qt WebEngine is looking for its resources under "resources" rather than "Resources" dir with capital "R".

      As per Mac Documentation, Mac application bundle should hold its resources under "Resources" dir. More info on this can be found in Bundle Programming Guide .

      We have followed the same in our application and copied all our resources under "Resources" dir. This works fine for 'case-insensitive' system but on 'case-sensitive' it causes crash in QtWebEngine.

      Can you make changes so QtWebEngine looks for its resources under "Resources" dir ?

      This will help in Qt Application deployment on 'case-sensitive' systems.

      Attachments

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

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            gaurav Gaurav
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes