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

Chromium debug fails #675

Closed
jmarrec opened this issue Jan 22, 2024 · 0 comments · Fixed by #676
Closed

Chromium debug fails #675

jmarrec opened this issue Jan 22, 2024 · 0 comments · Fixed by #676

Comments

@jmarrec
Copy link
Collaborator

jmarrec commented Jan 22, 2024

Issue overview

Current Behavior

Unable to use chromium debugging.

image

Expected Behavior

It should work

Steps to Reproduce

$ OPENSTUDIO_APPLICATION_DEBUG=1 /usr/local/openstudioapplication-1.7.0-rc2/bin/OpenStudioApp

[...]

DevTools listening on ws://127.0.0.1:45225/devtools/browser/c1025c7d-043a-4680-b226-bd06cd5a9c1c
Debug: doh set to ""  --  SystemOnly ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: QSslSocket::connectToHostEncrypted: TLS initialization failed ((null):0, (null))
Warning: Remote debugging server started successfully. Try pointing a Chromium-based browser to http://127.0.0.1:45225 ((null):0, (null))

I open chrome, and go to that http://127.0.0.1:45225:

[1403407:1403407:0122/115932.484420:ERROR:devtools_http_handler.cc(766)] Rejected an incoming WebSocket connection from the http://127.0.0.1:45225 origin. Use the command line flag --remote-allow-origins=http://127.0.0.1:45225 to allow connections from this origin or --remote-allow-origins=* to allow all origins.

Possible Solution

Pass that flag. This works:

OPENSTUDIO_APPLICATION_DEBUG=1 QTWEBENGINE_CHROMIUM_FLAGS="--ignore-gpu-blacklist --blink-settings=forceDarkModeEnabled=false --blink-settings=darkModeEnabled=false --remote-allow-origins=*" /usr/local/openstudioapplication-1.7.0-rc2/bin/OpenStudioApp

Details

Environment

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

  • Platform (Operating system, version): Ubuntu at least
  • Version of OpenStudioApplication (if using an intermediate build, include SHA): 1.7.0-rc2

Context

Testing 1.7.0-rc2: #669

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

Successfully merging a pull request may close this issue.

1 participant