Sublime Forum

ST3 Crashes when saving as into directory with large number of files

#1

Hi

Merry Christmas and Happy new year to y’all

Am using linux, I have a directory with approx 790k files. They are small, but numerous. Am trying to write some diagnostic software, I can save my program into that directory (and then build it using ST3 once I’ve killed ST3 (or forced quit) and restarted) but then ST3 crashes. I then have to restart it.

I appreciate 800k files is a lot, but then on a 500Gig drive I guess it’s possible to have billions of files.

I don’t need a solution (turning off and on works) (a bit annoying maybe) but am letting the powers that be know…

In summary: Can save file into folder with 790k files but then ST3 crashes. Forced quit or kill required. On restart file is saved in correct place. (Fan’s going like the clappers so I guess something’s working a lot)

ST3 3211 on linux MATE 17.1

Hope everyone’s ok during this period ! (I’m getting some coding done, woo hoo !)

Lozminda :unicorn::skull_and_crossbones:

0 Likes

#2

Where does it crash when this happens? At a guess I would think the issue would be with the save dialog trying to gather the names of all of the files for display, which either takes a while or uses a crazy amount of memory or something.

If that’s the case I’m not sure there would be a way around that other than to have a plugin that asks you to enter the whole filename manually without prompting for a filename in the dialog or something.

0 Likes

#3

Hi @OdatNurd, been a while, hope you’re well…

It’s now the morning where I am and my laptop has been off for (as in totally off, switched off at the socket, no volts going in, no battery) 8 hours or so. On start up everything’s fine, but and still trying to address yesterdays issues, ie write some code to at least investigate the Huge directory eg:

The second/third option in this post (the C program)
(by the way it does work)

However, I know not to “look at” the huge directory, but the fact that it exists and that I’m trying to skirt around it (I’ll come up with some better language in a bit) still causes ST3 to crash, CPU usage goes to 100%. I’m going to try another text editor, I’ll get back with some better diagnosis.

In fairness the linux OS can’t handle these files either, both find and ls crash even with various flags (eg -f).

It’s a bit of a pain, because I need to look into that directory to diagnose the fault with the software I’m currently writing…Anyway working on work arounds.

Peace :unicorn::skull_and_crossbones:

0 Likes

#4

Ps I answer to your questions, whenever there’s a dialogue box with that folder in it. Save, Open, Save As.

PPs The only solution I’ve found is to save in the directory below, and include the offending directory name in the file name when saving, eg

Save: directoryContainingMassiveAmountOfFiles/filename.

ST3 then saves filename in the appropriate directory. The secret is too “not let ST3 look at” the offending directory and one might get away without having to restart/force quit.
The OS is fine and I can now run progs to inspect the files (as long as I don’t use the afore mentioned system commands.)

Pluma (TE supplied with Mint) doesn’t crash (or doesn’t crash as quickly) so I’m guessing it is in theory possible to handle all those files. The C program in the previous link can at least count all the files (and possibly print out there names if I don’t try to store them). The prog I’ve written allows me to count a wild card search too eg count all files ending in “.cpp”

I digress. :unicorn::skull_and_crossbones:

0 Likes