Atom crashed and my source file ended up blank


#41

This is the source of my concern here:

Here is the output of an official Atom release:

Atom    : 1.10.2
Electron: 0.37.8

Notice the difference in Electron versions. Atom v1.10.x hasn’t been tested or updated to work properly with any version of Electron other than v0.37.8. Changing Electron versions can have a huge impact on the stability and proper operation of Atom … going from v0.37.8 to any Electron version 1.x or beyond is especially impactful, which is why we have taken so long to do it.

  • Do I know that the change in Electron versions is what caused your problem? No.
  • Will we continue to investigate this report? Yes, to the extent that we can on an official release of Atom.

Be aware that we do not and will not support unofficial builds of Atom. I strongly recommend that you report this misbehavior to the maintainer where you got this version from and have them open their own investigation into whether or not this could have been caused by their modifications.


#42

Ok, thank you, I’m going to send to the maintainer of this package the link of our discussion here.


#43

Was it an Atom crash or a kernel panic? Do you have a core dump (coredumpctl)?


#44

I searched for a core dump related to Atom or the Kernel itself but apparently the only executable generating those files in my system by default is my file manager Thunar:

$ coredumpctl list
TIME                            PID   UID   GID SIG PRESENT EXE
qua 2016-09-14 13:46:48 BRT    6188  1000  1000   6 * /usr/bin/thunar

I could use gdb to generate a core dump during the execution of Atom, but I’m unable to reproduce the steps that led to this bug behavior, I don’t know if this is going to happen again because now I checked the editor settings option to create a temporary backup file that is not enabled by default (I don’t know if this is going to help with this problem in the future):


I searched for entries in the systemd log in the day that this bug ocorrured but I was unable to find any relevant information:

$ journalctl | grep -iE 'set 12 *.*atom'
$ journalctl | grep -iE 'set 12 *.*erro|set 12 *.*fail'
set 12 07:53:40 chmercesmoreira kernel: acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM
set 12 07:53:41 chmercesmoreira systemd-udevd[227]: Process '/usr/bin/tlp auto' failed with exit code 4.
set 12 07:53:42 chmercesmoreira systemd-udevd[227]: Process '/usr/bin/set-wireless-regdom' failed with exit code 1.
set 12 07:53:44 chmercesmoreira at-spi-bus-launcher[561]: ** (process:561): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 07:54:18 chmercesmoreira at-spi-bus-launcher[712]: ** (process:712): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 07:54:20 chmercesmoreira colord[954]: (colord:954): Cd-WARNING **: failed to get session [pid 936]: No such device or address
set 12 07:54:25 chmercesmoreira ntpd[454]: bind(23) AF_INET6 fe80::9de9:3210:8bc2:3a28%3#123 flags 0x11 failed: Cannot assign requested address
set 12 07:54:25 chmercesmoreira ntpd[454]: failed to init interface for address fe80::9de9:3210:8bc2:3a28%3
set 12 07:54:43 chmercesmoreira dbus[397]: [system] Failed to activate service 'org.bluez': timed out
set 12 07:54:43 chmercesmoreira pulseaudio[713]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
set 12 09:17:32 chmercesmoreira lightdm[449]: ** (lightdm:449): CRITICAL **: session_get_login1_session_id: assertion 'session != NULL' failed
set 12 09:17:32 chmercesmoreira dbus[397]: [system] Activation via systemd failed for unit 'polkit.service': Refusing activation, D-Bus is shutting down.
set 12 09:17:32 chmercesmoreira NetworkManager[422]: <warn>  [1473682652.3095] error requesting auth for org.freedesktop.NetworkManager.wifi.share.protected: Authorization check failed: Refusing activation, D-Bus is shutting down.
set 12 09:17:32 chmercesmoreira NetworkManager[422]: <warn>  [1473682652.3096] error requesting auth for org.freedesktop.NetworkManager.wifi.share.open: Authorization check failed: Refusing activation, D-Bus is shutting down.
set 12 09:17:32 chmercesmoreira dbus[397]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Refusing activation, D-Bus is shutting down.
set 12 09:40:31 chmercesmoreira kernel: acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM
set 12 09:40:32 chmercesmoreira systemd-udevd[219]: Process '/usr/bin/tlp auto' failed with exit code 4.
set 12 09:40:34 chmercesmoreira systemd-udevd[222]: Process '/usr/bin/set-wireless-regdom' failed with exit code 1.
set 12 09:40:35 chmercesmoreira at-spi-bus-launcher[540]: ** (process:540): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 09:43:01 chmercesmoreira at-spi-bus-launcher[764]: ** (process:764): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 09:43:02 chmercesmoreira colord[993]: (colord:993): Cd-WARNING **: failed to get session [pid 982]: No such device or address
set 12 09:43:26 chmercesmoreira dbus[380]: [system] Failed to activate service 'org.bluez': timed out
set 12 09:43:26 chmercesmoreira pulseaudio[752]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
set 12 09:57:00 chmercesmoreira org.a11y.atspi.Registry[773]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
set 12 09:57:00 chmercesmoreira lightdm[432]: ** (lightdm:432): CRITICAL **: session_get_login1_session_id: assertion 'session != NULL' failed
set 12 09:57:00 chmercesmoreira dbus[380]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Refusing activation, D-Bus is shutting down.
set 12 12:06:13 chmercesmoreira kernel: acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM
set 12 12:06:14 chmercesmoreira systemd-udevd[224]: Process '/usr/bin/tlp auto' failed with exit code 4.
set 12 12:06:15 chmercesmoreira systemd-udevd[236]: Process '/usr/bin/set-wireless-regdom' failed with exit code 1.
set 12 12:06:17 chmercesmoreira at-spi-bus-launcher[554]: ** (process:554): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 12:06:27 chmercesmoreira at-spi-bus-launcher[710]: ** (process:710): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 12:06:29 chmercesmoreira colord[1228]: (colord:1228): Cd-WARNING **: failed to get session [pid 1227]: No such device or address
set 12 12:06:30 chmercesmoreira colord-sane[1241]: [bjnp] create_broadcast_socket: ERROR - bind socket to local address failed - Cannot assign requested address
set 12 12:06:30 chmercesmoreira ntpd[439]: bind(23) AF_INET6 fe80::8ffc:4c10:5c43:928c%3#123 flags 0x11 failed: Cannot assign requested address
set 12 12:06:30 chmercesmoreira ntpd[439]: failed to init interface for address fe80::8ffc:4c10:5c43:928c%3
set 12 12:06:52 chmercesmoreira pulseaudio[737]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
set 12 12:06:52 chmercesmoreira dbus[393]: [system] Failed to activate service 'org.bluez': timed out
set 12 12:13:45 chmercesmoreira dbus[393]: [system] Failed to activate service 'org.bluez': timed out
set 12 12:15:34 chmercesmoreira sudo[2141]: pam_unix(sudo:auth): conversation failed
set 12 12:15:34 chmercesmoreira sudo[2142]: pam_unix(sudo:auth): conversation failed
set 12 12:15:35 chmercesmoreira gvfsd[679]: mkdir failed on directory /var/cache/samba: PermissΓ£o negada
set 12 12:15:35 chmercesmoreira gvfsd[679]: mkdir failed on directory /var/cache/samba: PermissΓ£o negada
set 12 12:15:36 chmercesmoreira gvfsd[679]: mkdir failed on directory /var/cache/samba: PermissΓ£o negada
set 12 12:15:36 chmercesmoreira gvfsd[679]: mkdir failed on directory /var/cache/samba: PermissΓ£o negada
set 12 12:15:37 chmercesmoreira gvfsd[679]: mkdir failed on directory /var/cache/samba: PermissΓ£o negada
set 12 12:15:37 chmercesmoreira gvfsd[679]: mkdir failed on directory /var/cache/samba: PermissΓ£o negada
set 12 12:15:38 chmercesmoreira gvfsd[679]: ** (gvfsd:679): WARNING **: dbus_mount_reply: Error from org.gtk.vfs.Mountable.mount(): Falha ao recuperar a lista de compartilhamento do servidor: ConexΓ£o recusada
set 12 12:15:38 chmercesmoreira gvfsd[679]: mkdir failed on directory /var/cache/samba: PermissΓ£o negada
set 12 12:15:38 chmercesmoreira gvfsd[679]: mkdir failed on directory /var/cache/samba: PermissΓ£o negada
set 12 12:15:38 chmercesmoreira gvfsd[679]: ** (process:2146): WARNING **: Couldn't create directory monitor on smb://x-gnome-default-workgroup/. Error: A localização especificada não estÑ montada
set 12 12:15:39 chmercesmoreira gvfsd[679]: mkdir failed on directory /var/cache/samba: PermissΓ£o negada
set 12 12:15:39 chmercesmoreira gvfsd[679]: mkdir failed on directory /var/cache/samba: PermissΓ£o negada
set 12 12:15:40 chmercesmoreira gvfsd[679]: mkdir failed on directory /var/cache/samba: PermissΓ£o negada
set 12 12:15:40 chmercesmoreira gvfsd[679]: mkdir failed on directory /var/cache/samba: PermissΓ£o negada
set 12 12:15:41 chmercesmoreira gvfsd[679]: ** (gvfsd:679): WARNING **: dbus_mount_reply: Error from org.gtk.vfs.Mountable.mount(): Falha ao recuperar a lista de compartilhamento do servidor: ConexΓ£o recusada
set 12 12:15:41 chmercesmoreira gvfsd[679]: ** (process:2148): WARNING **: Couldn't create directory monitor on smb://x-gnome-default-workgroup/. Error: A localização especificada não estÑ montada
set 12 14:12:25 chmercesmoreira at-spi-bus-launcher[5581]: ** (process:5581): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 14:50:01 chmercesmoreira lightdm[435]: ** (lightdm:435): WARNING **: Error using VT_WAITACTIVE 7 on /dev/tty0: Interrupted system call
set 12 15:06:17 chmercesmoreira at-spi-bus-launcher[6680]: ** (process:6680): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 15:39:31 chmercesmoreira at-spi-bus-launcher[7319]: ** (process:7319): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 15:39:32 chmercesmoreira msm_notifier[7275]: QSharedMemomry::create() failed: QSharedMemoryPrivate::initKey: unable to set key on lockQSharedMemomry::attach() failed: QSharedMemoryPrivate::initKey: unable to set key on lock
set 12 15:39:56 chmercesmoreira dbus[393]: [system] Failed to activate service 'org.bluez': timed out
set 12 15:39:56 chmercesmoreira pulseaudio[7320]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
set 12 16:03:33 chmercesmoreira at-spi-bus-launcher[8071]: ** (process:8071): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 16:49:47 chmercesmoreira lightdm[435]: ** (lightdm:435): WARNING **: Error using VT_WAITACTIVE 8 on /dev/tty0: Interrupted system call
set 12 16:49:50 chmercesmoreira org.a11y.atspi.Registry[7329]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
set 12 16:49:51 chmercesmoreira at-spi-bus-launcher[8915]: ** (process:8915): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 22:53:38 chmercesmoreira kernel: acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM
set 12 22:53:38 chmercesmoreira systemd-udevd[215]: Process '/usr/bin/tlp auto' failed with exit code 4.
set 12 22:53:40 chmercesmoreira systemd-udevd[225]: Process '/usr/bin/set-wireless-regdom' failed with exit code 1.
set 12 22:53:42 chmercesmoreira at-spi-bus-launcher[548]: ** (process:548): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 22:53:43 chmercesmoreira lightdm[589]: pam_unix(lightdm:auth): authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost=  user=chmercesmoreira
set 12 22:54:09 chmercesmoreira lightdm[437]: ** (lightdm:437): CRITICAL **: session_get_login1_session_id: assertion 'session != NULL' failed
set 12 23:40:03 chmercesmoreira kernel: acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM
set 12 23:40:04 chmercesmoreira systemd-udevd[218]: Process '/usr/bin/tlp auto' failed with exit code 4.
set 12 23:40:06 chmercesmoreira systemd-udevd[219]: Process '/usr/bin/set-wireless-regdom' failed with exit code 1.
set 12 23:40:07 chmercesmoreira at-spi-bus-launcher[543]: ** (process:543): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 23:41:30 chmercesmoreira at-spi-bus-launcher[704]: ** (process:704): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
set 12 23:41:31 chmercesmoreira colord[978]: (colord:978): Cd-WARNING **: failed to get session [pid 956]: No such device or address
set 12 23:41:55 chmercesmoreira dbus[363]: [system] Failed to activate service 'org.bluez': timed out
set 12 23:41:55 chmercesmoreira pulseaudio[678]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

My guess is that my notebook abruptly turned off this day with Atom opened, it wasn’t a system crash nor a atom crash. I’m pretty sure that’s what happened because my notebook is without the battery and sometimes the wall outlet where it is connected get bad electrical contact and it happens.


#45

I’ve had a similar experience. I have a LOT of files opened as I use my editor as a quasi-permanent paste buffer, an idea scratchpad as well as editor. After about 2 weeks and 30 files opened, Atom crashed. After it restarted, my project folders were missing and open files were forgotten. No blanked files so far but my unsaved work is lost. I’ve never Sublime and Text Wrangler and after a couple of times, it’s a deal breaker for me.
Deets:

  • OS is OSX 10.12.2. All apps patched and running Sophos AV Home w/ current defs
  • Atom version:
$ /usr/local/bin/atom --version
Atom    : 1.13.0
Electron: 1.3.13
Chrome  : 52.0.2743.82
Node    : 6.5.0
  • Package list
Built-in Atom Packages (89)
β”œβ”€β”€ atom-dark-syntax@0.28.0
β”œβ”€β”€ atom-dark-ui@0.53.0
β”œβ”€β”€ atom-light-syntax@0.29.0
β”œβ”€β”€ atom-light-ui@0.46.0
β”œβ”€β”€ base16-tomorrow-dark-theme@1.4.0
β”œβ”€β”€ base16-tomorrow-light-theme@1.4.0
β”œβ”€β”€ one-dark-ui@1.8.2
β”œβ”€β”€ one-light-ui@1.8.2
β”œβ”€β”€ one-dark-syntax@1.6.0
β”œβ”€β”€ one-light-syntax@1.6.0
β”œβ”€β”€ solarized-dark-syntax@1.1.1
β”œβ”€β”€ solarized-light-syntax@1.1.1
β”œβ”€β”€ about@1.7.2
β”œβ”€β”€ archive-view@0.62.0
β”œβ”€β”€ autocomplete-atom-api@0.10.0
β”œβ”€β”€ autocomplete-css@0.14.1
β”œβ”€β”€ autocomplete-html@0.7.2
β”œβ”€β”€ autocomplete-plus@2.33.1
β”œβ”€β”€ autocomplete-snippets@1.11.0
β”œβ”€β”€ autoflow@0.29.0
β”œβ”€β”€ autosave@0.23.2
β”œβ”€β”€ background-tips@0.26.1
β”œβ”€β”€ bookmarks@0.43.2
β”œβ”€β”€ bracket-matcher@0.85.1
β”œβ”€β”€ command-palette@0.39.1
β”œβ”€β”€ deprecation-cop@0.55.1
β”œβ”€β”€ dev-live-reload@0.47.0
β”œβ”€β”€ encoding-selector@0.22.0
β”œβ”€β”€ exception-reporting@0.40.0
β”œβ”€β”€ find-and-replace@0.204.5
β”œβ”€β”€ fuzzy-finder@1.4.0
β”œβ”€β”€ git-diff@1.2.0
β”œβ”€β”€ go-to-line@0.31.2
β”œβ”€β”€ grammar-selector@0.48.2
β”œβ”€β”€ image-view@0.60.0
β”œβ”€β”€ incompatible-packages@0.26.1
β”œβ”€β”€ keybinding-resolver@0.35.0
β”œβ”€β”€ line-ending-selector@0.5.1
β”œβ”€β”€ link@0.31.2
β”œβ”€β”€ markdown-preview@0.159.1
β”œβ”€β”€ metrics@1.1.2
β”œβ”€β”€ notifications@0.65.1
β”œβ”€β”€ open-on-github@1.2.1
β”œβ”€β”€ package-generator@1.0.2
β”œβ”€β”€ settings-view@0.244.0
β”œβ”€β”€ snippets@1.0.4
β”œβ”€β”€ spell-check@0.68.5
β”œβ”€β”€ status-bar@1.6.0
β”œβ”€β”€ styleguide@0.48.0
β”œβ”€β”€ symbols-view@0.113.1
β”œβ”€β”€ tabs@0.103.1
β”œβ”€β”€ timecop@0.33.2
β”œβ”€β”€ tree-view@0.211.1
β”œβ”€β”€ update-package-dependencies@0.10.0
β”œβ”€β”€ welcome@0.35.1
β”œβ”€β”€ whitespace@0.35.0
β”œβ”€β”€ wrap-guide@0.39.0
β”œβ”€β”€ language-c@0.54.0
β”œβ”€β”€ language-clojure@0.22.1
β”œβ”€β”€ language-coffee-script@0.48.1
β”œβ”€β”€ language-csharp@0.13.0
β”œβ”€β”€ language-css@0.40.1
β”œβ”€β”€ language-gfm@0.88.0
β”œβ”€β”€ language-git@0.15.0
β”œβ”€β”€ language-go@0.43.0
β”œβ”€β”€ language-html@0.47.1
β”œβ”€β”€ language-hyperlink@0.16.1
β”œβ”€β”€ language-java@0.24.0
β”œβ”€β”€ language-javascript@0.122.0
β”œβ”€β”€ language-json@0.18.3
β”œβ”€β”€ language-less@0.29.6
β”œβ”€β”€ language-make@0.22.2
β”œβ”€β”€ language-mustache@0.13.0
β”œβ”€β”€ language-objective-c@0.15.1
β”œβ”€β”€ language-perl@0.37.0
β”œβ”€β”€ language-php@0.37.3
β”œβ”€β”€ language-property-list@0.8.0
β”œβ”€β”€ language-python@0.45.1
β”œβ”€β”€ language-ruby@0.70.2
β”œβ”€β”€ language-ruby-on-rails@0.25.1
β”œβ”€β”€ language-sass@0.57.0
β”œβ”€β”€ language-shellscript@0.23.0
β”œβ”€β”€ language-source@0.9.0
β”œβ”€β”€ language-sql@0.25.0
β”œβ”€β”€ language-text@0.7.1
β”œβ”€β”€ language-todo@0.29.1
β”œβ”€β”€ language-toml@0.18.1
β”œβ”€β”€ language-xml@0.34.12
└── language-yaml@0.27.1
Community Packages (23) /Users/evarona/.atom/packages
β”œβ”€β”€ atom-beautify@0.29.16
β”œβ”€β”€ atom-cform@0.6.0
β”œβ”€β”€ atom-clock@0.1.3
β”œβ”€β”€ atom-prettify@0.1.3
β”œβ”€β”€ atom-shortcuts@0.0.2
β”œβ”€β”€ autocomplete-bash-builtins@0.3.4
β”œβ”€β”€ css-clean@2.17.0
β”œβ”€β”€ file-icons@2.0.9
β”œβ”€β”€ git-plus@7.1.0
β”œβ”€β”€ json-converter@0.2.4
β”œβ”€β”€ language-awk@0.1.12
β”œβ”€β”€ linter@1.11.21
β”œβ”€β”€ minimap@4.26.6
β”œβ”€β”€ monokai@0.18.0
β”œβ”€β”€ monokai-seti@0.7.0
β”œβ”€β”€ open-files@0.4.1
β”œβ”€β”€ plist-converter@0.1.6
β”œβ”€β”€ pretty-dir@0.0.17
β”œβ”€β”€ pretty-json@1.6.1
β”œβ”€β”€ run-command2@1.12.2
β”œβ”€β”€ script@3.14.0
β”œβ”€β”€ tab-smart-sort@0.3.0
└── tag@0.4.0
  • config.cson
"*":
  core:
    disabledPackages: [
      "atom-clock"
      "minimap"
    ]
    projectHome: "/Users/evarona/repos/"
    telemetryConsent: "limited"
    themes: [
      "atom-dark-ui"
      "one-dark-syntax"
    ]
    useCustomTitleBar: true
  editor:
    scrollPastEnd: true
  "exception-reporting":
    userId: "75b7388b-36af-8c9c-19e6-b625e6f3cfba"
  "git-plus":
    general:
      _analyticsUserId: "d680bc98-fb6c-4b18-8169-94776b51d4ec"
  minimap: {}
  "open-files":
    sortOrder: "base"
  welcome:
    showOnStartup: false
  • init.coffee
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
#   editor.onDidSave ->
#     console.log "Saved! #{editor.getPath()}"
  • Additional relevant info: I’m running Mackup for backup of local files to Dropbox.

#46

I had a problem today.
My system froze (not sure if because Atom or not) and I had to manualy press the button to restart my laptop. After restarting, the file I was working on wasn’t saved. If wasn’t blank, thank god, but my recent changes (one hour or so) weren’t saved.
Doesn’t Atom have a periodic backup feature? Maybe a package?
I really love Atom, but this is really annoying.


#47

You could have Atom auto-save constantly. I don’t know of a package that does backups separately from Atom’s built-in backup system. Atom does store unsaved changes in its IndexedDB and I’m not sure why it wouldn’t have saved the changes right up to the freeze, but this is why constantly saving files is important.


#48

I think that package would solve my problem!
Thank you DamnedScholar :slight_smile:


#50

Just had to restart after seeing that I was out of disk space and when I loaded up my file again it was blank. Lost an afternoon of work. I came here and saw that since I’m running Atom 1.15.0 I should be able to go to .atom/recovery and see a backup but there’s nothing there.


#51

So this just happened to me over the weekend. Last Friday I had a number of files open in different Atom sessions. I save regularly and some of the files I had open I had been editing and saving over the past several weeks.

Last Friday while working I had to open several very large log files. At one point Atom crashed. I reopened Atom and didn’t really notice anything odd at that time. However, when I started working this morning (Monday) I noticed that several of the files that I had open had been wiped clean. The files were there and opened up in Atom but they were empty. Even ones that had been saved. As I said some of these files were weeks old and had been saved and backed up numerous times (which I had to restore). I have plenty of disk space available.

There’s also nothing in the .atom/recovery folder. Are there other options to try and restore lost changes?


#52

I should have included I am using version of Atom 1.14.x on Mac OS 10.12.3.


#53

I can’t find this option… Is there achane in 1.16.0?


#54

*a change.


#55

Just happened to me. Two years after this thread started. Just lost an entire day of work because:

I was working with 3 β€œwindows” of Atom. I would call them processes, but since atom creates multiple processes for a single window, doesn’t seem to be the right term. So I had multiple windows, each with a few files openned. One of them, had three files, two of them were saved. The unsaved one was just holding not-important notes.

Made some changes. Saved the file (on a SSD). Went back to testing the file, an HTML file so I just refreshed the page. Power shortage. Power comes back. Reopened Atom and:

  • Unsaved file comes back ok;
  • One of the saved one is ok;
  • All the other files, on other windows, came back ok;
  • The other saved one, the biggest and more changed (and most important, of course) came back all blank except with a huge line of i-don’t-know-what.

I tried to git diff it, and it doesn’t even recognize as a text file, returning a diff for binary. Plus it got all messed up, when opened with atom. Heres a screenshot:


I’m trying to remain calm, and find a solution

Is there any solution to this problem?

PS.: It’s not the first time this occours with me. But luckily, in the previous occurrences, I had only a few modifications, which I was able to redo.

Here’s the details:

  1. What OS and version of the OS you’re running

Windows 8.1 Pro 64-bits

  1. Which version of Atom you have installed

$ atom --version
Atom : 1.18.0
Electron: 1.3.15
Chrome : 52.0.2743.82
Node : 6.5.0

  1. A list of all the packages you have installed along with their versions

$ apm list
Built-in Atom Packages (91)
β”œβ”€β”€ atom-dark-syntax@0.28.0
β”œβ”€β”€ atom-dark-ui@0.53.0
β”œβ”€β”€ atom-light-syntax@0.29.0
β”œβ”€β”€ atom-light-ui@0.46.0
β”œβ”€β”€ base16-tomorrow-dark-theme@1.5.0
β”œβ”€β”€ base16-tomorrow-light-theme@1.5.0
β”œβ”€β”€ one-dark-ui@1.10.4
β”œβ”€β”€ one-light-ui@1.10.4
β”œβ”€β”€ one-dark-syntax@1.7.1
β”œβ”€β”€ one-light-syntax@1.7.1
β”œβ”€β”€ solarized-dark-syntax@1.1.2
β”œβ”€β”€ solarized-light-syntax@1.1.2
β”œβ”€β”€ about@1.7.6
β”œβ”€β”€ archive-view@0.63.2
β”œβ”€β”€ autocomplete-atom-api@0.10.1
β”œβ”€β”€ autocomplete-css@0.16.2
β”œβ”€β”€ autocomplete-html@0.8.0
β”œβ”€β”€ autocomplete-plus@2.35.4
β”œβ”€β”€ autocomplete-snippets@1.11.0
β”œβ”€β”€ autoflow@0.29.0
β”œβ”€β”€ autosave@0.24.3
β”œβ”€β”€ background-tips@0.27.0
β”œβ”€β”€ bookmarks@0.44.4
β”œβ”€β”€ bracket-matcher@0.85.5
β”œβ”€β”€ command-palette@0.40.4
β”œβ”€β”€ dalek@0.2.1
β”œβ”€β”€ deprecation-cop@0.56.7
β”œβ”€β”€ dev-live-reload@0.47.1
β”œβ”€β”€ encoding-selector@0.23.4
β”œβ”€β”€ exception-reporting@0.41.4
β”œβ”€β”€ find-and-replace@0.208.3
β”œβ”€β”€ fuzzy-finder@1.5.8
β”œβ”€β”€ github@0.3.3
β”œβ”€β”€ git-diff@1.3.6
β”œβ”€β”€ go-to-line@0.32.1
β”œβ”€β”€ grammar-selector@0.49.5
β”œβ”€β”€ image-view@0.61.2
β”œβ”€β”€ incompatible-packages@0.27.3
β”œβ”€β”€ keybinding-resolver@0.38.0
β”œβ”€β”€ line-ending-selector@0.7.1
β”œβ”€β”€ link@0.31.3
β”œβ”€β”€ markdown-preview@0.159.12
β”œβ”€β”€ metrics@1.2.5
β”œβ”€β”€ notifications@0.67.2
β”œβ”€β”€ open-on-github@1.2.1
β”œβ”€β”€ package-generator@1.1.1
β”œβ”€β”€ settings-view@0.249.4
β”œβ”€β”€ snippets@1.1.4
β”œβ”€β”€ spell-check@0.71.4
β”œβ”€β”€ status-bar@1.8.11
β”œβ”€β”€ styleguide@0.49.6
β”œβ”€β”€ symbols-view@0.116.0
β”œβ”€β”€ tabs@0.106.2
β”œβ”€β”€ timecop@0.36.0
β”œβ”€β”€ tree-view@0.217.1
β”œβ”€β”€ update-package-dependencies@0.12.0
β”œβ”€β”€ welcome@0.36.4
β”œβ”€β”€ whitespace@0.36.2
β”œβ”€β”€ wrap-guide@0.40.2
β”œβ”€β”€ language-c@0.58.0
β”œβ”€β”€ language-clojure@0.22.2
β”œβ”€β”€ language-coffee-script@0.48.7
β”œβ”€β”€ language-csharp@0.14.2
β”œβ”€β”€ language-css@0.42.2
β”œβ”€β”€ language-gfm@0.89.0
β”œβ”€β”€ language-git@0.19.1
β”œβ”€β”€ language-go@0.44.0
β”œβ”€β”€ language-html@0.47.2
β”œβ”€β”€ language-hyperlink@0.16.1
β”œβ”€β”€ language-java@0.27.1
β”œβ”€β”€ language-javascript@0.126.1
β”œβ”€β”€ language-json@0.19.1
β”œβ”€β”€ language-less@0.32.0
β”œβ”€β”€ language-make@0.22.3
β”œβ”€β”€ language-mustache@0.14.1
β”œβ”€β”€ language-objective-c@0.15.1
β”œβ”€β”€ language-perl@0.37.0
β”œβ”€β”€ language-php@0.38.0
β”œβ”€β”€ language-property-list@0.9.1
β”œβ”€β”€ language-python@0.45.2
β”œβ”€β”€ language-ruby@0.71.0
β”œβ”€β”€ language-ruby-on-rails@0.25.2
β”œβ”€β”€ language-sass@0.59.0
β”œβ”€β”€ language-shellscript@0.25.0
β”œβ”€β”€ language-source@0.9.0
β”œβ”€β”€ language-sql@0.25.5
β”œβ”€β”€ language-text@0.7.2
β”œβ”€β”€ language-todo@0.29.1
β”œβ”€β”€ language-toml@0.18.1
β”œβ”€β”€ language-xml@0.35.0
└── language-yaml@0.29.0

Community Packages (18) C:\Users\Pedro.atom\packages
β”œβ”€β”€ busy-signal@1.4.3
β”œβ”€β”€ highlight-selected@0.13.1
β”œβ”€β”€ intentions@1.1.2
β”œβ”€β”€ jscs-fixer@1.3.0
β”œβ”€β”€ language-docker@1.1.8
β”œβ”€β”€ linter@2.2.0
β”œβ”€β”€ linter-docker@0.2.0
β”œβ”€β”€ linter-eslint@8.2.1
β”œβ”€β”€ linter-ui-default@1.6.2
β”œβ”€β”€ minimap@4.28.2
β”œβ”€β”€ minimap-cursorline@0.2.0
β”œβ”€β”€ minimap-git-diff@4.3.1
β”œβ”€β”€ minimap-highlight-selected@4.6.1
β”œβ”€β”€ multi-cursor@2.1.5
β”œβ”€β”€ pretty-json@1.6.3
β”œβ”€β”€ sequential-number@0.5.0
β”œβ”€β”€ split-diff@1.4.2
└── xml-formatter@0.11.0

  1. Your entire config.cson

β€œ*”:
core:
allowPendingPaneItems: false
telemetryConsent: β€œno”
editor:
invisibles:
cr: " "
eol: " "
showIndentGuide: true
showInvisibles: true
tabLength: 4
tabType: β€œhard”
zoomFontWhenCtrlScrolling: false
β€œexception-reporting”:
userId: β€œa7638081-cd10-42a1-8e51-1efd53da3e47”
minimap:
plugins:
cursorline: true
cursorlineDecorationsZIndex: 0
β€œgit-diff”: true
β€œgit-diffDecorationsZIndex”: 0
β€œhighlight-selected”: true
β€œhighlight-selectedDecorationsZIndex”: 0
welcome:
showOnStartup: false

  1. Your init.coffee

Seems to be the default. All lines starts with β€˜#’, which I removed here in order to preserve the text formatting

Your init script

Atom will evaluate this file each time a new window is opened. It is run
after packages are loaded/activated and after the previous editor state
has been restored.

An example hack to log to the console when each text editor is saved.

atom.workspace.observeTextEditors (editor) ->
editor.onDidSave ->
console.log β€œSaved! #{editor.getPath()}”

6- Anything else you can think of that is relevant

Help me.


#56

This happened to me today, too!

After updating windows (which closed atom while rebooting), a script I was working on for TWO WEEKS, was gone!
This happening in 2k17 is unbelievable. Last time i can remember, that happened to me was in the 90s using a MSDOS-WORD.
Luckily i was working with hydrogen on a remote jupyter kernel and could reconstruct almost everything from the cmd history of the running kernel.


#57

Just had something which seems to be related.
Restart due to windows updates while I was away from the computer. Had a file open with some unsaved changes.
After restart, no project is open anymore. After reopening the project and opening the file, there’s just all null characters (checked with notepad++). Lost a lot of work, not only the last unsaved changes, but a day work (backup runs every night)…
Obviously not to happy with this.

What OS and version of the OS you're running

    Windows 10 Pro 64-bits

Which version of Atom you have installed

Atom    : 1.19.2
Electron: 1.6.9
Chrome  : 56.0.2924.87
Node    : 7.4.0

A list of all the packages you have installed along with their versions

Built-in Atom Packages (91)

β”œβ”€β”€ atom-dark-syntax@0.28.0
β”œβ”€β”€ atom-dark-ui@0.53.0
β”œβ”€β”€ atom-light-syntax@0.29.0
β”œβ”€β”€ atom-light-ui@0.46.0
β”œβ”€β”€ base16-tomorrow-dark-theme@1.5.0
β”œβ”€β”€ base16-tomorrow-light-theme@1.5.0
β”œβ”€β”€ one-dark-ui@1.10.5
β”œβ”€β”€ one-light-ui@1.10.5
β”œβ”€β”€ one-dark-syntax@1.7.1
β”œβ”€β”€ one-light-syntax@1.7.1
β”œβ”€β”€ solarized-dark-syntax@1.1.2
β”œβ”€β”€ solarized-light-syntax@1.1.2
β”œβ”€β”€ about@1.7.6
β”œβ”€β”€ archive-view@0.63.3
β”œβ”€β”€ autocomplete-atom-api@0.10.1
β”œβ”€β”€ autocomplete-css@0.16.2
β”œβ”€β”€ autocomplete-html@0.8.0
β”œβ”€β”€ autocomplete-plus@2.35.5
β”œβ”€β”€ autocomplete-snippets@1.11.0
β”œβ”€β”€ autoflow@0.29.0
β”œβ”€β”€ autosave@0.24.3
β”œβ”€β”€ background-tips@0.27.1
β”œβ”€β”€ bookmarks@0.44.4
β”œβ”€β”€ bracket-matcher@0.87.3
β”œβ”€β”€ command-palette@0.40.4
β”œβ”€β”€ dalek@0.2.1
β”œβ”€β”€ deprecation-cop@0.56.7
β”œβ”€β”€ dev-live-reload@0.47.1
β”œβ”€β”€ encoding-selector@0.23.4
β”œβ”€β”€ exception-reporting@0.41.4
β”œβ”€β”€ find-and-replace@0.208.3
β”œβ”€β”€ fuzzy-finder@1.5.8
β”œβ”€β”€ github@0.3.4-1
β”œβ”€β”€ git-diff@1.3.6
β”œβ”€β”€ go-to-line@0.32.1
β”œβ”€β”€ grammar-selector@0.49.5
β”œβ”€β”€ image-view@0.61.2
β”œβ”€β”€ incompatible-packages@0.27.3
β”œβ”€β”€ keybinding-resolver@0.38.0
β”œβ”€β”€ line-ending-selector@0.7.3
β”œβ”€β”€ link@0.31.3
β”œβ”€β”€ markdown-preview@0.159.12
β”œβ”€β”€ metrics@1.2.6
β”œβ”€β”€ notifications@0.67.2
β”œβ”€β”€ open-on-github@1.2.1
β”œβ”€β”€ package-generator@1.1.1
β”œβ”€β”€ settings-view@0.250.0
β”œβ”€β”€ snippets@1.1.4
β”œβ”€β”€ spell-check@0.71.4
β”œβ”€β”€ status-bar@1.8.11
β”œβ”€β”€ styleguide@0.49.6
β”œβ”€β”€ symbols-view@0.116.1
β”œβ”€β”€ tabs@0.106.2
β”œβ”€β”€ timecop@0.36.0
β”œβ”€β”€ tree-view@0.217.2
β”œβ”€β”€ update-package-dependencies@0.12.0
β”œβ”€β”€ welcome@0.36.4
β”œβ”€β”€ whitespace@0.37.2
β”œβ”€β”€ wrap-guide@0.40.2
β”œβ”€β”€ language-c@0.58.1
β”œβ”€β”€ language-clojure@0.22.3
β”œβ”€β”€ language-coffee-script@0.48.7
β”œβ”€β”€ language-csharp@0.14.2
β”œβ”€β”€ language-css@0.42.4
β”œβ”€β”€ language-gfm@0.89.1
β”œβ”€β”€ language-git@0.19.1
β”œβ”€β”€ language-go@0.44.1
β”œβ”€β”€ language-html@0.47.3
β”œβ”€β”€ language-hyperlink@0.16.1
β”œβ”€β”€ language-java@0.27.2
β”œβ”€β”€ language-javascript@0.126.1
β”œβ”€β”€ language-json@0.19.1
β”œβ”€β”€ language-less@0.32.0
β”œβ”€β”€ language-make@0.22.3
β”œβ”€β”€ language-mustache@0.14.1
β”œβ”€β”€ language-objective-c@0.15.1
β”œβ”€β”€ language-perl@0.37.0
β”œβ”€β”€ language-php@0.39.0
β”œβ”€β”€ language-property-list@0.9.1
β”œβ”€β”€ language-python@0.45.3
β”œβ”€β”€ language-ruby@0.71.1
β”œβ”€β”€ language-ruby-on-rails@0.25.2
β”œβ”€β”€ language-sass@0.59.0
β”œβ”€β”€ language-shellscript@0.25.1
β”œβ”€β”€ language-source@0.9.0
β”œβ”€β”€ language-sql@0.25.6
β”œβ”€β”€ language-text@0.7.3
β”œβ”€β”€ language-todo@0.29.1
β”œβ”€β”€ language-toml@0.18.1
β”œβ”€β”€ language-xml@0.35.1
└── language-yaml@0.30.0

Community Packages (6) C:\Users\xxx.atom\packages
β”œβ”€β”€ busy-signal@1.4.3
β”œβ”€β”€ intentions@1.1.2
β”œβ”€β”€ linter@2.2.0
β”œβ”€β”€ linter-flake8@2.2.1
β”œβ”€β”€ linter-ui-default@1.6.2
└── minimap@4.28.2

Your entire config.cson

"*":
  core:
    openEmptyEditorOnStart: false
    projectHome: "C:\\Users\\xxx\\Desktop"
    restorePreviousWindowsOnStart: "always"
    telemetryConsent: "limited"
  editor:
    preferredLineLength: 160
    showIndentGuide: true
    tabLength: 4
  "exception-reporting":
    userId: "23fb9455-c719-41f9-8ab6-82ddf23bbed1"
  "linter-flake8":
    ignoreErrorCodes: [
      "E501"
      "D401"
    ]
  "linter-ui-default":
    panelHeight: 69
  minimap:
    absoluteMode: true
    adjustAbsoluteModeHeight: true
    disablePythonDocLinks: true
  welcome:
    showOnStartup: false

Your init.coffee

# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
#   editor.onDidSave ->
#     console.log "Saved! #{editor.getPath()}"

#58

Seems like this is as described here: https://github.com/atom/atom/issues/11406


#59

This just happened to me as well. Windows restarted overnight while Atom was open and I lost the contents of an uncommitted file (I use Git). It’s possible that I hadn’t used ctrl+s to save but I do it so often out of habit that I would consider it highly unlikely. Whether I saved the file manually or not, since when does a reasonably good text editor, let alone an IDE, lose an unsaved file?


#60

https://stackoverflow.com/questions/28816593/notepad-showing-null-values-after-crash

This worked for me.


#61

This happened to me twice while working through an online programming degree. First time, I thought it was due to my ignorance of the tool itself. I was devastated but looked at the bright side (allows me to practice what I’ve learned by re-creating everything). It happened to me again and this time and I lost everything. I was smart enough to create back up copies in a different folder than the one where I was saving the active html & css files but everything within the parent folder was erased, even my excel file that had my template and outline.

I’m glad I found this thread because now I don’t feel like a complete idiot. At the same time, I’m going to try to work with sublime because I lost 2 months of progress (as I’ve been working on this every day in small chunks and can’t afford these sorts of mishaps, not that anyone here can afford them either.) and I feel your pain. So when or if this gets fixed, please keep in mind the novice user as well. It took me some time get up to speed and find this thread.