depthjs icon indicating copy to clipboard operation
depthjs copied to clipboard

Chrome Extension Crashes Chome

Open lukefinsaas opened this issue 12 years ago • 7 comments

I really hope this works - we hope to use it for our magazine launch early September. It would be awesome if it did.

So, I have installed OpenNI and NITE, and have successfully built the Chrome Extension in Firebreath, compiled it in Visual Studio, and upload it to the Chrome Extension - or at least there have not been any red flags (I worked through a number of them).

But once installed in Chrome, unfortunately, it's doesn't do anything, except crash the app. The error comes from the .dll file, according to the Chrome error log. Any ideas? I saw that some folks had to remove pieces from the Visual Studio build.

I'm using a Windows Vista 32-bit (unfortunately).

lukefinsaas avatar Aug 01 '12 21:08 lukefinsaas

I had a similar issue - the code is hard coded to look for an OpenNI config file depending on your CMake build settings:

https://github.com/doug/depthjs/blob/master/firebreath-plugin/openni_backend.cpp#L174

I would first confirm that its looking for a file that actually exists.

Also, could you post the output from your Chrome Console?

adatta02 avatar Aug 02 '12 01:08 adatta02

Thanks adatta02. Sorry on vacation there for awhile...

I'm not sure how to post the output from the Chrome Console, or it's blank. Now it doesn't appear to be crashing Chrome, but it's still not working.

No webpage was found for the web address: chrome-extension://adgkbokcckoommkfgfmkhhailhlbailj/popup.html Error 6 (net::ERR_FILE_NOT_FOUND): The file or directory could not be found.

I'll take a look at this file and see if it is actually calling a file in existence..

lukefinsaas avatar Aug 16 '12 16:08 lukefinsaas

How do I confirm that the file actually exists? I can't determine where it's pointing..this is probably pretty simple, not real familiar with C++...

lukefinsaas avatar Aug 16 '12 19:08 lukefinsaas

Regarding Chrome, to get the "console" output for the extension you'll need to do the following:

  • Open the "Extensions" tab - chrome://chrome/extensions/
  • Then, next under the DepthJS extension where it says "Inspect Views" just click "background.html"
  • That should bring up the web inspector for the background.html page, just tab over to "Console" and you'll see the console output for the actual extension.

Regarding the config file, I'm pretty unfamiliar with C++ and even more so with CMake (it uses a CMake variable) so I actually just hard coded it to a known good path in the code.

I modified https://github.com/doug/depthjs/blob/master/firebreath-plugin/Win/ResourceRecovery.cpp#L4

To just return an absolute path.

adatta02 avatar Aug 16 '12 20:08 adatta02

Thanks - here' what the console is outputing (it does the OpenNIBackend: GestureIntermediateStageCompletedHandler a lot at the beginning):

OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureProgressHandler undefined:1 OpenNIBackend: FocusProgress undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureProgressHandler undefined:1 OpenNIBackend: FocusProgress undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureProgressHandler undefined:1 OpenNIBackend: FocusProgress undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureProgressHandler undefined:1 OpenNIBackend: FocusProgress undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureProgressHandler undefined:1 OpenNIBackend: FocusProgress undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureProgressHandler undefined:1 OpenNIBackend: FocusProgress undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: SessionStarting undefined:1 Got the backend object undefined:1 ------Thu Aug 16 2012 13:19:08 GMT-0500 (Central Daylight Time) root.js:71 [" 9 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 8 Move; last = ", Object ] root.js:73 [" 1 Register; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:09 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:10 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:11 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:12 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:13 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:14 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:15 GMT-0500 (Central Daylight Time) root.js:71 [" 29 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 29 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:16 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:17 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 31 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:18 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:19 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 29 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:20 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 31 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:21 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:22 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:23 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 29 Move; last = ", Object ] root.js:73 [" 1 Push; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:24 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 29 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:25 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:26 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:27 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:28 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:29 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:30 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:31 GMT-0500 (Central Daylight Time) root.js:71 [" 31 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 [" 1 Push; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:32 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:33 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:34 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:35 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:36 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:37 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:38 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:39 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:40 GMT-0500 (Central Daylight Time) root.js:71 [" 31 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 [" 1 Push; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:41 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:42 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:43 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:44 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 ------Thu Aug 16 2012 13:19:45 GMT-0500 (Central Daylight Time) root.js:71 [" 30 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 30 Move; last = ", Object ] root.js:73 OpenNIBackend: NoHands undefined:1 ------Thu Aug 16 2012 13:19:46 GMT-0500 (Central Daylight Time) root.js:71 [" 19 Could not find ports for tabId 26; last = ", undefined] root.js:73 [" 18 Move; last = ", Object ] root.js:73 [" 1 Unregister; last = ", Object ] root.js:73 OpenNIBackend: SessionEnding undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureProgressHandler undefined:1 OpenNIBackend: FocusProgress undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 OpenNIBackend: GestureReadyForNextIntermediateStageHandler undefined:1 OpenNIBackend: GestureIntermediateStageCompletedHandler undefined:1 event port connected chrome.js:14 Assertion failed: chrome.js:13 (anonymous function) chrome.js:13 chrome.Event.dispatch event_bindings:237 chromeHidden.Port.dispatchOnConnect miscellaneous_bindings:215 thumbnails port connected chrome.js:14 event port disconnected on tab 28 chrome.js:26 thumbnails port disconnected on tab 28 chrome.js:26 for all ports on this tab chrome.js:33 event port connected chrome.js:14 Assertion failed: chrome.js:13 (anonymous function) chrome.js:13 chrome.Event.dispatch event_bindings:237 chromeHidden.Port.dispatchOnConnect miscellaneous_bindings:215 thumbnails port connected chrome.js:14 event port disconnected on tab 28 chrome.js:26 thumbnails port disconnected on tab 28 chrome.js:26 for all ports on this tab chrome.js:33 event port connected chrome.js:14 Assertion failed: chrome.js:13 (anonymous function) chrome.js:13 chrome.Event.dispatch event_bindings:237 chromeHidden.Port.dispatchOnConnect miscellaneous_bindings:215 thumbnails port connected chrome.js:14 event port disconnected on tab 30 chrome.js:26 thumbnails port disconnected on tab 30 chrome.js:26 for all ports on this tab chrome.js:33 event port connected chrome.js:14 Assertion failed: chrome.js:13 (anonymous function) chrome.js:13 chrome.Event.dispatch event_bindings:237 chromeHidden.Port.dispatchOnConnect miscellaneous_bindings:215 thumbnails port connected chrome.js:14 event port disconnected on tab 30 chrome.js:26 thumbnails port disconnected on tab 30 chrome.js:26 for all ports on this tab chrome.js:33 event port connected chrome.js:14 Assertion failed: chrome.js:13 (anonymous function) chrome.js:13 chrome.Event.dispatch event_bindings:237 chromeHidden.Port.dispatchOnConnect miscellaneous_bindings:215 thumbnails port connected chrome.js:14 event port disconnected on tab 36 chrome.js:26 thumbnails port disconnected on tab 36 chrome.js:26 for all ports on this tab chrome.js:33

lukefinsaas avatar Aug 16 '12 20:08 lukefinsaas

Hmm so from my limited understanding of all of this it looks like its activating the OpenNI drivers correctly.

Have you tried running the OpenNI/PrimeSense demos?

adatta02 avatar Aug 17 '12 20:08 adatta02

The latest push that fixes the Chrome extension should fix this problem. https://github.com/doug/depthjs/tree/master/chrome-extension

steven-king avatar Jan 17 '13 16:01 steven-king