I am using ST3 3.2.2 (3211) on a Mac (Catalina but still had the same issue with Mojave) and my files are all stored on a linux box (ubuntu 18.04LTS) with a samba share. Overnight and sometimes during the day the server connectivity drops and I have to use finder to re-establish the connection.
All this time ST3 remains visible until I try to change projects or similar when it crashes with no errors displayed.
I would expect ST3 to at leat complain that the drive on which the files it has open is no longer available or similar.
Any help gratefully received.
ST3 crashes after network drive disconnected
Sublime Text uses memory mapping to quickly access the content of large files without loading anyithing into RAM. Unfortunatelly the OS interfaces don’t provide easy APIs to handle situations in which mapped files are no longer available. Instead they just send a global SIGBUS signal to the application, which then needs to try to forward the signal to the correct thread in order to handle this situation.
If the signal is not handled by the application for some reason, the app is just closed by the OS.
A detailed article about that can be found at: https://www.sublimetext.com/blog/articles/use-mmap-with-care
That said, you might file an issue at https://github.com/SublimeTextIssues/Core/issues with detailed information about what you are doing after a network share disconnected, so the devs can look into in detail. The issue tracker is the best place for things not to be forgotten.
I appreciate the quick response thank you. I sensed the underlying issue (cache/memory map) but I would have expected the app to stay open at least with a warning that the memory map is no longer valid.
I’ll read the article (thank you) and will file an issue once I have digested it and manually reproduced the scenario.
Thanks for the suggestion. I can’t say I’ve ever noticed the git status markers (largely because I rarely have the LH panel open). I use gitkraken separately to sublime - maybe it’s time to read up on more features!
I have set show_git_status = false in my user preferences and restarted sublime so I’ll report back in a day or two to let you know how I got on.
Cheers 