Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annoying messages in console about QWebEngine not finding its resources/translations #349

Closed
jmarrec opened this issue May 27, 2021 · 0 comments

Comments

@jmarrec
Copy link
Collaborator

jmarrec commented May 27, 2021

Issue overview

Current Behavior

Run OPENSTUDIO_APPLICATION_DEBUG=1 /usr/local/openstudioapplication-1.2.0-alpha/bin/OpenStudioApp then click on the Geometry Preview tab, look at console output:

Warning: Qt WebEngine resources not found at /usr/local/resources. Trying parent directory... ((null):0, (null))
Warning: Qt WebEngine resources not found at /usr/local. Trying application directory... ((null):0, (null))
Warning: Installed Qt WebEngine locales directory not found at location /usr/local/translations/qtwebengine_locales. Trying application directory... ((null):0, (null))
Warning: Qt WebEngine locales directory not found at location /usr/local/openstudioapplication-1.2.0-alpha/bin/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct. ((null):0, (null))
Warning: Path override failed for key ui::DIR_LOCALES and path '/home/julien/.OpenStudioApp' ((null):0, (null))
[0527/153750.318432:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 
Qt WebEngine resources not found at /usr/local/resources. Trying parent directory...
Qt WebEngine resources not found at /usr/local. Trying application directory...
Installed Qt WebEngine locales directory not found at location /usr/local/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /usr/local/openstudioapplication-1.2.0-alpha/bin/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/julien/.QtWebEngineProcess'
[0527/153750.335082:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for locale 

DevTools listening on ws://127.0.0.1:34833/devtools/browser/31f0f4f1-5084-4d3f-8097-181d4c97f627
Qt WebEngine resources not found at /usr/local/resources. Trying parent directory...
Qt WebEngine resources not found at /usr/local. Trying application directory...
Installed Qt WebEngine locales directory not found at location /usr/local/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /usr/local/openstudioapplication-1.2.0-alpha/bin/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/julien/.QtWebEngineProcess'
[0527/153750.417863:WARNING:resource_bundle_qt.cpp(115)] locale_file_path.empty() for loc

Possible Solution

Install these resources/translation in the appropriate directory. Use a qt.conf file in both installed and local build directory (local too so that we can these issues much earlier during developement).

Details

Environment

Some additional details about your environment for this issue (if relevant):

  • Platform (Operating system, version):
  • Version of OpenStudioApplication (if using an intermediate build, include SHA):

Context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant