Sublime Forum

ST3 always crashes when compiling (Win10 x64)

#1

Hi folks,

I’m a developer on Windows 10 x64 and I work on the Brave web browser, which is forked from the Chromium project. If you’re not familiar with the Chromium project, the source code itself is massive (both in terms of the source code itself and the git history that gets download via gclient)

SublimeText works great with this massive codebase, including all my packages (list below). The problem is exclusively when compiling the source code. I can start a compile and SublimeText starts to freeze - like it’s waiting for a file lock to free up or something. Eventually, it crashes. It’s super easy to reproduce for me - maybe I have too many files open in my workspace?

When looking at the root directory for SublimeText, each of these crashes results in a crash dump which is 0KB

I’m a paid user, love the product - never had problems with this same usage on macOS. I’m curious if anyone can help. Besides the crash itself, I’m curious why all the crash dumps are 0KB. I’d love to collect useful information that someone could inspect

I’m using version 3.2.2 Build 3211. Here are a list of packages I have installed via PackageControl:

  1. Babel
  2. BracketHighlighter
  3. EditorConfig
  4. Favorites
  5. FileDiffs
  6. GitGutter
  7. Handlebars
  8. MarkdownPreview
  9. MarkdownTOC
  10. Package Control
  11. Pretty JSON
  12. ProjectEnvironment
  13. SideBarEnhancements
  14. StringEncode
  15. SublimeLinter
  16. SublimeLinter-contrib-standard
  17. TrailingSpaces
  18. TypeScript

Some of my configuration (key bindings, preferences, etc) is public:

0 Likes

#2

Does it still crash in a freshly installed state? Have you tried excluding build directories from the side bar (using "folder_exclude_patterns" or similar)?

0 Likes

#3

Hi @bschaaf - thanks for the quick reply

I do have all the important build / output directories excluded; I can confirm they don’t show in the sidebar

For the freshly installed state - this is interesting. I probably installed the portable version of the app and those folders don’t exist. But finding the Data folder is easy enough. Let me try moving this out of the way, creating a new project, and then seeing if the problem reproduces

0 Likes

#4

OK quick update - looks like moving the folder (in my case, at %USERPROFILE%/.sublime/Data) out of the way does create the new profile as expected (ex: %APPDATA%\Sublime Text 3)

I didn’t create a new workspace… but I did open the same folder having the problem, added the same folder excludes, made similar edits, and then compiled. I tried this a few times and could not reproduce the problem :slight_smile:

Seems this is definitely related to something in my profile (packages? cache?). Are there any documents about what is in the profile? I’d like to avoid hand-creating a new one if possible. The data folder I have has files going back to 2016 (ex: in Data/Backup). Is the Data/Cache folder safe to destroy? (cache is ~12.7 MB)

0 Likes

#5

The “Cache” and “Index” folders are used to store syntax highlighting caches and indexed symbols, they’re both generally safe to clear. The most likely culprit for crashes is usually a plugin, so systematically enabling/disabling them could help narrow it down.

1 Like

#6

OK great - thanks! I’ll do some investigative work and report back once a smoking gun is found. Might be a while - but the problem will definitely be found :slightly_smiling_face: Thanks again!

0 Likes