-
Notifications
You must be signed in to change notification settings - Fork 26
Chromium debug fails #675
Copy link
Copy link
Closed
Description
Issue overview
Current Behavior
Unable to use chromium debugging.
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
Reactions are currently unavailable
