Description
Steps to reproduce :
- Create an app which uses QtWebEngine and copies its resources under "Resources" dir
- Launch the app on Mac system volume where formatting is 'case-sensitive' and open QtWebEngine window
- 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.