-
Notifications
You must be signed in to change notification settings - Fork 31
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
qbrt fails to start #170
Comments
Same problem here
Error: JavaScript error: file:///C:/Users/patri/AppData/Roaming/npm/node_modules/qbrt/dist/win32/runtime/qbrt/components/DisabledAddonManager.js, line 24: TypeError: XPCOMUtils.generateQI is not a function
JavaScript error: file:///C:/Users/patri/AppData/Roaming/npm/node_modules/qbrt/dist/win32/runtime/qbrt/components/DisabledTelemetryStartup.js, line 14: TypeError: XPCOMUtils.generateQI is not a function
JavaScript error: file:///C:/Users/patri/AppData/Roaming/npm/node_modules/qbrt/dist/win32/runtime/qbrt/components/CommandLineHandler.js, line 42: TypeError: XPCOMUtils.generateQI is not a function
JavaScript error: resource://gre/modules/ActorManagerChild.jsm, line 269: TypeError: singletons is null Tested on Windows 10 x64 Version 1809 |
Same here in Manjaro. |
Me too. |
It's a Mozilla issue: mozilla/tls-canary#171 |
Windows 10 same issue. |
Same here in Debian 9.8 (stretch) 😿
Someone did get success on troubleshooting this issue? |
same on debian buster... can a fix be deployed for qrbt similar to that in the ticket above? |
@star-buck I tried that, but now I'm stuck at the error:
:/ |
Same on MacOS |
Still the issue persists, please can someone tell what can be done? |
Would love to see that fixed as well. Otherwise qbrt is useless?
|
I am totally out of my depth here, but let's see where we can get with this. These errors are being generated by:
These are all in qbrt's components directory and to my untrained eye appear to be designed to stub out components that aren't used by qbrt but that Firefox (being used as a runtime) somehow expects to be there. The errors appear to be caused by calls these components make to an If I comment out the lines in those components which call
...and that is as far as I have got. |
I note that mozilla/tls-canary#172 fixed a similar error by replacing instances of If I do this for qbrt I no longer get the error messages above, I get a new error:
Progress..? |
Note: The above is the error I get when trying to run my own application with the qbrt runtime with If I try to run the eggtimer example as in the STR at the top of this issue (
|
There wasn't a need to develop a like or dislike while Firefox still has |
I just have the vague understanding of what's going on that |
Any calls on top of .generateQI() fall through to respective C++ methods through IDL, so I'd start looking at the associated IDL specs. For example: window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).outerWindowID; should first go through https://searchfox.org/mozilla-central/source/xpcom/base/nsIInterfaceRequestor.idl , which defines a .getInterface() method (as throwing NS_NOINTERFACE on error), and also https://searchfox.org/mozilla-central/source/dom/interfaces/base/nsIDOMWindowUtils.idl supports the .outerWindowID attribute. So one may have to check argument types, but the error is obviously elsewhere: I think the actual call failing is Line 79 in 43d1b4a
Another thing that has sometimes mended things was importing the right modules. The only other code I could find querying Ci.nsDOMWindowUtils is https://searchfox.org/mozilla-central/source/dom/canvas/test/webgl-conf/checkout/js/js-test-pre.js#730 . Perhaps the webgl-conf test harness makes some magic imports before that code is run? Anyway, just a few pointers and loose threads. I wish I could help you more to the point. |
Thanks for the pointers @cr! Whilst I haven't got any further trying to fix that bug, I have realised that this broken code is part of the So replacing instances of The remaining error when trying to launch the example egg timer app appears to be related to the
which worked previously, but for some reason now returns From the docs and source code I haven't been able to figure out why this no longer works. I'd also really like to get devtools working again! |
Looks like See https://bugzilla.mozilla.org/show_bug.cgi?id=1513241#c35 |
STR:
npm install -g qbrt
qbrt run https://eggtimer.org/
Error:
Tested on Ubuntu 18.04 LTS.
The text was updated successfully, but these errors were encountered: