wesabe / ssu

Server-Side Uploader, the data aggregation engine.
Apache License 2.0
250 stars 46 forks source link

"Component is not available" error in bootstrap.js #15

Open mdobson opened 12 years ago

mdobson commented 12 years ago

Hi!

I've been working to get SSU up and running on an Ubuntu Linux Amazon EC2 ami, and have run into a trouble right up until the point where I try to actually scrape something. It's become greek to me so if anyone knows of a work around it would be greatly appreciated.

ERROR: while printing object ([object XPCNativeWrapper [object Window]]) for log: [Exception... "Component is not available"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: chrome://desktopuploader/content/bootstrap.js :: anonymous :: line 880"  data: no]
makdad commented 12 years ago

Not sure of the root cause, but XPCNativeWrapper is what the window object is wrapped in to assist in putting a barrier between trusted (your Chrome JS -- e.g. SSU)/untrusted code (website DOM JS).

This exception seems to be thrown (?) by the util/inspect code as it tries to inspect the wrapped window. I don't know a fix for this at the moment, but would like to find one.