Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
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

Open

Description

@adamdwexler

This is a very simple problem to produce and so far is 100% reproducible.,, it is also very, very annoying.

Steps to create:

  1. Open a project file from a removable or network drive.
  2. Modify the file
  3. Remove/disconnect drive <-- yes, we all know this is bad/dumb, and it happens (sometimes our fault, sometimes not)
  4. Save file (or at least try to)
  5. 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:
Atom_crash

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

  1. icecream17 commented on Nov 9, 2021

    @icecream17
    Contributor

    Maybe this console.log should be changed?

    console.log(
    `Couldn't retain ${recoveryFile.recoveryPath}. Code: ${
    err.code
    }. Message: ${err.message}`
    );

    I'm not sure why this function doesn't show anything

    async didCrashWindow(window) {

    Could you ctrl+shift+i and see if anything happens when the file doesn't save correctly?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions