GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: do not crash when using a closed fs event watcher by codebytere · Pull Request #70 · electron/node

This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Conversation

@codebytere

@codebytere codebytere commented Sep 28, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Resolves electron/electron#14844.

This PR backports nodejs/node#20985 to 3-0-x.

The original fix went out in v10.5.0, so we don't need to backport it anywhere else since we'll cut 4-0-x with at least Node v10.10.0.

/cc @pfrazee

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

pfrazee reacted with hooray emoji
All reactions
  • 🎉 1 reaction
@codebytere
fix: do not crash when using a closed fs event watcher
db42936
ryzokuken
ryzokuken approved these changes Sep 28, 2018
View reviewed changes

@ryzokuken ryzokuken left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@codebytere
codebytere merged commit fcaf11a into electron-node-v10.2.0-3.0.x Sep 28, 2018
@codebytere
codebytere deleted the fix-fs-issue branch September 28, 2018 17:39
@bpasero

bpasero commented Mar 21, 2019

Copy link
Copy Markdown
Contributor

@codebytere hey, you might want to look at microsoft/vscode#70566 (comment) where a user in VSCode sees that crash in the picture. Could it be that checking for null is not good because it could be undefined too? Any reason for this change and divergence from the node.js original implementation?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bpasero bpasero mentioned this pull request Mar 21, 2019
High CPU Usage on Windows with Mapped Drive when leaving VS Code Open for a while microsoft/vscode#70566
Closed
@bpasero

bpasero commented Mar 21, 2019

Copy link
Copy Markdown
Contributor

Ah ok, looks like this came in as a backport. Maybe Electron should follow up and check if a more recent patch is available that avoids this issue.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shiftkey shiftkey mentioned this pull request Mar 21, 2019
TypeError: Cannot read property 'close' of undefined at FSEvent.FSWatcher._handle.onchange desktop/desktop#7127
Closed
@bpasero

bpasero commented Mar 22, 2019

Copy link
Copy Markdown
Contributor

I am actually clueless how the crash in microsoft/vscode#70566 (comment) can happen. Looking at the code it seems like this._handle is either null or has its value ❓ .

image

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@ryzokuken ryzokuken ryzokuken approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@codebytere @bpasero @ryzokuken
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.