Bug 455951

Summary: "Qt WebEngine resources not found" causes tests under Windows CI/CD to fail
Product: [Developer tools] buildsystem Reporter: Dawid Wróbel <me>
Component: generalAssignee: Alexander Neundorf <neundorf>
Status: REPORTED ---    
Severity: normal CC: bcooksley, rakuco
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:

Description Dawid Wróbel 2022-06-26 12:12:23 UTC
SUMMARY
A test fails for Alkimia CI/CD under Windows with:

QWARN  : AlkOnlineQuoteTest::testLaunchWithBrowser() Qt WebEngine resources not found at C:/Craft/windows-msvc2019_64-cl/resources. Trying parent directory...
QWARN  : AlkOnlineQuoteTest::testLaunchWithBrowser() Qt WebEngine resources not found at C:/Craft/windows-msvc2019_64-cl. Trying application directory...
QWARN  : AlkOnlineQuoteTest::testLaunchWithBrowser() Qt WebEngine resources not found at C:/builds/office/alkimia/_build/bin. Trying fallback directory... The application MAY NOT work.
[0626/044433.743:ERROR:icu_util.cc(251)] Couldn't mmap icu data file
crash occurred in C:\builds\office\alkimia\_build\bin\alkonlinequotestest.exe.

Appears that because resources/icudtl.dat file cannot be found, icu fails, causing alkonlinequotestest.exe crash.

See also: https://forum.qt.io/topic/70457/qt-5-7-qtwebenginewidgets-not-working-on-linux

STEPS TO REPRODUCE
1. https://invent.kde.org/office/alkimia/-/jobs/369766#L732

OBSERVED RESULT
icu fails to map data file

EXPECTED RESULT
icu should be able to find the data file and the test should be able to carry on.
Comment 1 Raphael Kubo da Costa 2022-06-26 13:31:43 UTC
+Ben, as this is not a buildsystem issue but I'm not sure if it's a problem in the CI setup or what component fits this bug best.
Comment 2 Ben Cooksley 2022-06-26 19:24:53 UTC
The CI system uses Craft to source various Dependencies which are not part of Windows itself - including Qt.

Bit strange to hit this now though as I'd have expected we would have received reports of this earlier with other apps that rely on Webengine...