Webstorm 2.1: Out of Memory

Hi,

I've just installed 2.1. After re-indexing my project (or while doing so, I'm not sure about it) Webstorm stops working with an "Out of Memory" error.
I've tried raising the Xmx Value to 1000, 1500 or even 2000, but it didnt help.
I havent seen this behaviour in prior versions.

23 comments

1) please provide IDEA log corresponding to your OOM exception.
2) OS/JVM versions?
3) is is deterministic - always happends at the same file (you can see the names on progress)?
4) Big javascript libs used / huge files in project? minified js or Css files?

0

1) have attached it now
2) Win7/Professional, 64bit, JDK: 1.6.0_21
3) I dont see any filenames. It just says "Indexing..." at the bottom with the yellow popup besides it saying "Updated project indices"
4) whats big for you? :) The project itsself contains ExtJs 3, but I removed that from the Webstorm-Project, as it was to slow with it anyway. No minified files, but css.



Attachment(s):
idea.log.zip
0

Clicking the progress in status bar will show the popup with details where you can see the indexed file names.

The definition of "big" is different for different file types, but more than 100K of minified code in a file may cause some hiccups. We constantly improving the situation, but we need to narrow the cause down - that's why we need to know whether its deterministic and the suspicious file.

Judging your log its related to javascript. I'll forward this thread to more appropriate developer.

0

Clicking the progress in status bar will show the popup with details where you can see the indexed file names.

The definition of "big" is different for different file types, but more than 100K of minified code in a file may cause some hiccups. We constantly improving the situation, but we need to narrow the cause down - that's why we need to know whether its deterministic and the suspicious file.


It acutally does a full run, the statusbar gets to 100%, and the Indexing popup disappears. But it then starts again, and it does that like 5 time or so, before it crashes.

0

Does the problem reproduces after running "invalidate caches" action?

0

Actually I can't do that, because the "Out of Memory"-box blocks all other input.

0

When project is started to load, please press cancel. After that you can invoke "Invalidate caches" action

0

In this case try deleting the caches/indexes folder manually:
1) Go to C:\Users\USERNAME\.WebIde10
2) Delete whole system subfolder (back it up first, just in case)

0

@Andriy "Delete whole system subfolder" is a real overkill here - erazing *local history* and *shelved changes*. Please always mention that if you giving such an advice.
Erasing "caches" & "index" subfolders is enough.

0

Ok, I did delete the "caches" & "index" folders, but the behaviour stays the same. I've attached another log of this.



Attachment(s):
idea.log.zip
0

Thanks Alexey -- did not thought about Shelved changes (not using it). Will keep this extra notice in mind.

But .. when Invalidating caches Local History got cleared anyway -- that warning message is displayed when I use "File | Invalidate caches...". If that is not true (local history is not get cleared) then why such message is displayed? If that is true, then with exception of Shelved Changes (if this feature is actually used by the user) I do not see big difference between deleting only those 2 subfolders (cache & index) and whole system folder (but I may be wrong here). Can you clear up this moment for me, please?

Plus, I have noticed few times in the past (during v2 EAP, there was 1 ticket or forum thread), that PhpStorm does not re-create ALL subfolders/files of system folder if only some of them are missing which was preventing PhpStorm from functioning correctly (this may work fine in current builds -- cannot (and don't really want to) investigate this moment, but I assume it does work fine now).

0

Just double checked - yes, Local History is erased on "invalidate caches"...
Looks like since I'm totally relying on local git commits so I'm a bit out of sync with state of things with local history, my fault.
And yes, it might be unsafe to mess with anything inside of system folder directly.

To sum the things up, its safer to just back up and kill entire system with warning on "Shelved changes will be lost".

0

So is there any solution for me in the last posts? ;)

0

Ok, I deleted (acutally just renamed) the \system subfolder, and now it loads and all seems working.

0

We will track the problem in http://youtrack.jetbrains.net/issue/WI-6428
If the problem will reproduce on some sharable project please attach it to the ticket

0

Hm, seems like it just helped to get rid of the message at startup. Now every autocompletion via CTRL+Space leads to a new "Re-indexing project". Again, after 5 or so of these re-indexing events, the Out-of-Memory error is back again.

0

Please attach your idea.log file

0

Have been working today with the new 107.175, and until yet the problem has not occurred.

0

Happens again now, after a bigger update to my code from the SVN. Any news on that issue?

0

We are not fixed the issue so far, lets continue discussion at http://youtrack.jetbrains.net/issue/WI-6428

0

Please sign in to leave a comment.