sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
809 stars 39 forks source link

Sublime Text crashes after adding specific folder to project / after searching it. #6442

Open Brambor opened 2 months ago

Brambor commented 2 months ago

Description of the bug

After adding a big folder to project in Sublime Text, it crashes after a few moments.

The folder in question: image

It was created in Ubuntu 22 WSL.

It cannot be just the size or filecount, this folder was added fine and I have been working with it for a long time: image

Steps to reproduce

I don't know. I hope the crash dump is sufficient:

7b0e3f96-c62f-46a9-9e4e-7d94db5960ed.dmp

Originally I did this:

  1. Add iwyu folder
  2. Search it for a phrase
  3. Sublime Text crashed
  4. Rebooted Sublime Text (the iwyu is still added)
  5. It crashed again (after about 5 seconds)
  6. Rebooted Sublime Text (the iwyu is still added)
  7. Quickly remove iwyu folder from the project
  8. Sublime Text no longer crashes

Now, I can reproduce it on my PC without searching the iwyu folder:

  1. Open Sublime text
  2. Add the iwyu folder to the project
  3. Sublime Text crashes
  4. Reboot Sublime Text (iwyu folder is not there)

Expected behavior

No crash.

Actual behavior

Crash after about two seconds.

Sublime Text build number

4169

Operating system & version

Windows 10

(Linux) Desktop environment and/or window manager

No response

Additional information

Decided to make new issue instead of commenting on

OpenGL context information

No response

BenjaminSchaaf commented 2 months ago

Does it still happen in dev build 4178? Is it running out of memory?

Brambor commented 2 months ago

Does it still happen in dev build 4178? Is it running out of memory?

I restarted the PC, still happens.

Updated to 4180, still happens.

How can I check for running out of memory? I have 14.8GB free space on drive C, it would swap before running out, right?

BenjaminSchaaf commented 2 months ago

How can I check for running out of memory?

Watch task manager as it crashes.

it would swap before running out, right?

No on windows afaik.

Brambor commented 2 months ago

How can I check for running out of memory?

Watch task manager as it crashes.

I did, it stayed at 4 GB / 8 GB used. Then it just crashed.

Just from looking at Memory usage, I couldn't tell that there was a RAM-heavy operation.

Edit: actually, if it asked for 20 GB of memory, maybe it wouldn't show in task manager? I expect something like:

  1. Sublime text: give me 20 GB please
  2. OS: you have them (but actually not)
  3. Sublime text: access my 20 GB
  4. OS: Actually, cannot do that, so I am crashing you.

Just saying it might run out of memory, but maybe it is harder to diagnose than this.

My disk spikes, but that is totally expected, as it should read the folder data.

BenjaminSchaaf commented 2 months ago

We recently released a new stable build, I suggest updating and trying again. I also suggest trying in safe mode.