Sublime Forum

Certain projects causing memory leak

#1

Starting from this morning, opening certain projects in Sublime Text 3 causes memory leaks that eventually cause the program and my computer to become unresponsive. I’ve been working on the projects for months without issue, only this morning did the problems start. I can’t find any common factor in the projects that would create such a problem. The only thing that has changed is the Linux kernel… I upgraded to 4.4.0-57 this morning. I dont know if that would be enough to cause this issue though. Any ideas?

OS: Ubuntu 16.04
Sublime version: build 3126

0 Likes

#2

Have any of your plugins been updated recently? Does the memory still leak with all third party packages disabled?

0 Likes

#3

thanks for the quick reply @kingkeith

Nothing has been updated in the last day or two. I just tried disabling them all and the problem still occurs.

0 Likes

#4

I wonder why it affects some projects but not others… silly question, but does restarting your computer help?

0 Likes

#5

Yes, I’ve tried restarting several times. Really no idea why this is happening. I have no project specific settings or anything. Some of the projects havent been touched in over a month, but now when I open them, they cause the leak.

0 Likes

#6

does turning indexing off help? i.e. putting the following in your ST user preferences:

"index_files": false,

or renaming the ST data folder temporarily so that it starts with fresh config?

https://www.sublimetext.com/docs/3/revert.html

0 Likes

#7

Turning indexing off seems to have done it. Oddly, I turned it back on to test, and the problem didn’t come back :confused: Hopefully it will stay gone. Thanks @kingkeith !

0 Likes

#8

glad to hear it seemed to fix it, though I wouldn’t be able to explain why! if it recurs, it might be worth checking Help -> Indexing Status to see what it says

0 Likes

#9

If it’s a truly enormous project, it might be possible that the memory leak is actually the indexer continuing to chew on the project sources until it just runs out of space.

0 Likes

#10

Got the memory leak also.

0 Likes