Skip to content

Fix occasional MacOS freezing issue on application startup#2237

Merged
dpwatrous merged 5 commits intomasterfrom
bugfix/macos-freeze
Jan 6, 2021
Merged

Fix occasional MacOS freezing issue on application startup#2237
dpwatrous merged 5 commits intomasterfrom
bugfix/macos-freeze

Conversation

@dpwatrous
Copy link
Member

This seems to have been caused by a bug in chokidar: paulmillr/chokidar#434

Also included some development process improvements:

  • Better error handling when the main window fails to load
  • A new VSCode launch profile for debugging both the main and renderer processes at once
  • Added pyenv's local .python-version file to .gitignore

Accessing Window.id after a window has been destroyed throws an error. Prevent this by checking if the window is destroyed first.
This fixes a race condition which could cause freezes on MacOS

See: paulmillr/chokidar#434
@codecov
Copy link

codecov bot commented Jan 6, 2021

Codecov Report

Merging #2237 (37b5261) into master (373fb50) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2237   +/-   ##
=======================================
  Coverage   65.23%   65.23%           
=======================================
  Files         903      903           
  Lines       25693    25693           
  Branches     5102     5102           
=======================================
  Hits        16761    16761           
  Misses       8932     8932           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 373fb50...37b5261. Read the comment docs.

@cRui861 cRui861 force-pushed the bugfix/macos-freeze branch from ef760be to 37b5261 Compare January 6, 2021 18:59
@dpwatrous dpwatrous merged commit 0ef9007 into master Jan 6, 2021
@dpwatrous dpwatrous deleted the bugfix/macos-freeze branch January 6, 2021 20:29
@cRui861 cRui861 modified the milestone: 2.8.0 Jan 14, 2021
@cRui861
Copy link
Member

cRui861 commented Jan 15, 2021

Fixed #2254

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants