You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Atom crashes when drive connectivity is lost. Data loss without warning! #23221
This is a very simple problem to produce and so far is 100% reproducible.,, it is also very, very annoying.
Steps to create:
Open a project file from a removable or network drive.
Modify the file
Remove/disconnect drive <-- yes, we all know this is bad/dumb, and it happens (sometimes our fault, sometimes not)
Save file (or at least try to)
Wait a few minutes (go make a sandwich), and voila! your stable data in RAM is now gone! in a brilliant flash of white! as it is announced that the text editor has stopped working... le sigh.
Expected behavior:
You try to save to a non-existent directory.
Atom realizes this is not going to work
Atom sends an error message: "The drive/directory you are attempting to save to is not available. Please save to a different location."
Atom does not crash, and your words, code, or ASCII art is still happily vibrating in active RAM.
Observed behavior:
You try to save to a non-existent directory.
No indication that drive/directory is unavailable.
Blue "changes" dot does not disappear.
Atom says nothing. <-- the crux of the issue!
A few minutes later, the window blanks to white and a windows message stating "The editor has crashed" appears. You have three choices, none will recover your data.
You feel sad.
The white screen of sadness:
Some system information:
Text Editor Atom v1.58.0
OS Name Microsoft Windows 10 Pro for Workstations
Version 10.0.19042 Build 19042
OS Manufacturer Microsoft Corporation
System Manufacturer Dell Inc.
System Model Precision 7820 Tower
System Type x64-based PC
Processor Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz, 2195 Mhz, 10 Core(s), 20 Logical Processor(s)
BIOS Version/Date Dell Inc. 2.15.0, 9/29/2021
SMBIOS Version 3.2
Installed Physical Memory (RAM) 96.0 GB
Total Physical Memory 94.7 GB
Available Physical Memory 83.7 GB
Total Virtual Memory 183 GB
Available Virtual Memory 167 GB
Activity
icecream17 commentedon Nov 9, 2021
Maybe this console.log should be changed?
atom/src/main-process/file-recovery-service.js
Lines 30 to 34 in 10f7d45
I'm not sure why this function doesn't show anything
atom/src/main-process/file-recovery-service.js
Line 68 in 10f7d45
Could you
ctrl+shift+iand see if anything happens when the file doesn't save correctly?