Coder Social home page Coder Social logo

Comments (7)

bvaughn avatar bvaughn commented on May 16, 2024

Hey Dan. Any info about what you were doing when this happened? (Any breakpoints set or anything?) Can you reproduce it?

from react-devtools-experimental.

gaearon avatar gaearon commented on May 16, 2024

Nope, just happened randomly. :-(

from react-devtools-experimental.

bvaughn avatar bvaughn commented on May 16, 2024

I've seen this one before, but only when I had breakpoints set in the Chrome extension itself.

Regarding transferables, the postMessage docs say:

An optional array of Transferable objects to transfer ownership of. If the ownership of an object is transferred, it becomes unusable (neutered) in the context it was sent from and becomes available only to the worker it was sent to.

So it seems like some part of the DevTools code is referencing the array buffer somehow after it's been sent across the bridge. I'm not sure how this is happening though, because the flow of code is:

I'm not sure where in this flow of code we could be accessing the array in any way after it had been neutered. The error message wording actually sounds like we're trying to send the same array buffer through twice, but I don't know how that would happen either.

Maybe someone else will have an idea here 😄

from react-devtools-experimental.

bvaughn avatar bvaughn commented on May 16, 2024

I've commented out the transferrable for now (c184493) which should avoid this issue. Would still like to figure out the cause so we can re-enable it for Firefox.

from react-devtools-experimental.

gaearon avatar gaearon commented on May 16, 2024

Can we do if (!window.chrome) or something?

from react-devtools-experimental.

sompylasar avatar sompylasar commented on May 16, 2024

This may potentially be fixed with this cleanup: #229

from react-devtools-experimental.

bvaughn avatar bvaughn commented on May 16, 2024

This repository is being merged into the main React repo (github.com/facebook/react). As part of this, I am moving all issues to that repository as well and closing them here.

This issue has been relocated to:
facebook/react#16488

from react-devtools-experimental.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.