-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Uncaught Error: Cannot decorate a destroyed marker #134
Comments
seeing a lot of these recently too
|
Have just got this Versions** Pulsar**: 1.101.0-beta x64 Stack TraceUncaught Error: Cannot decorate a destroyed marker
Commands
Non-Core Packages
|
Any update here? |
able to reproduce (yay?) using Apple Silicon Pulsar from CI on the macos code signing PR and macOS Ventura 13.2 (public beta), and also in safe mode.
Commands
No non-core packages |
My educated guess (maybe its obvious) is that the git diff view was closed before it was fully initialised, so the code to initialise is still in the process of running, but the instance was destroyed. So, a race condition of sorts. Here the error is thrown while its still initialising: pulsar/packages/git-diff/lib/git-diff-view.js Line 247 in 1da0dab
|
actually nuh i didn't follow the stacktrace up. Here is where the error is constructed and thrown: pulsar/src/decoration-manager.js Lines 207 to 221 in 8d52f90
I think this would be an edge case. maybe its best to just log an error but silently ignore it? |
Might be a good way. I only see this error for git-diff-view anyways (since a long time in Atom and Pulsar 😄 ). Just log it into the devtools and not show the error box. Of course fixing the source would be better but since everything works fine after closing the error message it could be a simple log |
(Without researching into why this happens with |
actually that's exactly what the throwing code is doing! (checking if the marker is destroyed already) :p |
Oh wow, then ignore my previous comment. Yeah then I'm not to sure if this has to be a big error. Unless this exists as an error to protect some other state we aren't thinking of? Since if the only time this would really happen is when the user closes the tab then we shouldn't care about it being gone |
Throwing the error does stop the operation, but I think it would achieve the same effect if you just |
@meadowsys did you have time to look at this one? |
Still getting this error. /Applications/Pulsar.app/Contents/Resources/app.asar/src/decoration-manager.js:220 |
What's weird about this is that it implies the marker is destroyed already when it's returned from pulsar/packages/git-diff/lib/git-diff-view.js Lines 261 to 265 in 1da0dab
No idea why, but it does make a band-aid fix possible for this specific issue without requiring that we suppress all exceptions whenever someone tries to decorate a destroyed marker. |
Thanks @savetheclocktower !! Looking very good so far. |
Thanks in advance for your bug report!
What happened?
Versions
Atom: 1.63.2022110914 x64
Electron: 12.2.3
OS: linux 6.0.7-arch1-1
Thrown From: Atom Core
Stack Trace
Uncaught Error: Cannot decorate a destroyed marker
Commands
Which OS does this happen on?
🐧 Arch based (Manjaro, Garuda, etc.)
OS details
Gnome 43 Wayland
Which CPU architecture are you running this on?
64-bit(x86_64)
What steps are needed to reproduce this?
Additional Information:
Issue has been reported in Atom, but was closed due to inactivity atom/atom#19173. This issue is probably triggered by pulsar-edit/github .
The text was updated successfully, but these errors were encountered: