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

error occurred while processing 'sources: TypeError: can't access dead object #1542

Closed
ghost opened this issue Apr 16, 2019 · 4 comments
Closed
Labels

Comments

@ghost
Copy link

ghost commented Apr 16, 2019

System

  • Version: ?
  • Platform: Windows 10
  • Firefox: 66.0.3
  • Selenium: ?

Testcase

I don't know why show this error. Not every time but appears.

(async function ()
{
    let tabs = {};
    function onTabActivated(activeInfo)
    {
        let id = activeInfo.tabId;
        if (tabs[id] !== undefined && !tabs[id].activated)
        {
            setTimeout(function () {

            console.log(tabs[id]);

            browser.tabs.update(id, {
            loadReplace: true,
            url: "https://google.com"
            });

            }, 100);

            tabs[id].activated = true;
        }
    }
    browser.tabs.onActivated.addListener(onTabActivated);
})();

Stacktrace

error occurred while processing 'sources: TypeError: can't access dead object
Stack: createSourceActor@resource://devtools/server/actors/utils/TabSources.js:240:5
onSources@resource://devtools/server/actors/thread.js:1238:7
onPacket@resource://devtools/server/main.js:1286:15
receiveMessage@resource://devtools/shared/transport/child-transport.js:66:5
Line: 240, column: 5 main.js:1155
    _unknownError resource://devtools/server/main.js:1155
    onPacket resource://devtools/server/main.js:1289
    receiveMessage resource://devtools/shared/transport/child-transport.js:66

Trace-level log

@whimboo
Copy link
Collaborator

whimboo commented Apr 16, 2019

Could you please attach a trace-level log from geckodriver? Read more about reporting actionable bugs in our contribution guidelines.

@ghost
Copy link
Author

ghost commented Apr 16, 2019

How can I do that from Firefox Extension ?
First time to make an extension.

@andreastt
Copy link
Contributor

You appear to have filed this bug in the wrong place. Try the Web Extensions component on Bugzilla.

@lock
Copy link

lock bot commented Aug 16, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue.

@lock lock bot locked and limited conversation to collaborators Aug 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants