Spurious Out-of-Heap Error While Editing GSP

Hi,

I was editing a small GSP file and hit the enter key with an insertion point at the end of a line and IDEA went into what appeared to be an infinite loop. Shading and re-exposing the IDEA window did not redraw the contents for several seconds (probably about 15 seconds altogether) and when it did, there was an alert saying memory was exhausted, I could "Quit" or "Ignore." I chose "Ignore," saved the file (it was brand new and I figured I could take the risk of having it mangled) and then quit. It turns out the file was intact and reflected its appearance in IDEA at the time I saved and quit.

I've attached the tail end of the log file that I believe is relevant to this problem.

Addendum: I'm using JetGroovy 0.1.11420 with IDEA #7330.


Randall Schulz

Message was edited by:
Randall Schulz



Attachment(s):
idea7-log-JetGroovy-Crash-10-08.txt
7 comments

Randall,

Would it be possible to have a test file where we can reproduce the problem?

Eugene.

0

Well, it just happened again, while editing the same GSP file, and this time it's just an infinite loop. I'm not sure what to do besides kill IDEA, but I really, really hate doing that.

As far as a test file, I can give the GSP, but not the whole Grails application and other libraries on which it depends.

But first I'd like to know how to handle this situation now that it's happened again.


Randall Schulz

0

Well, it just happened again, while editing the same
GSP file, and this time it's just an infinite loop.
I'm not sure what to do besides kill IDEA, but I
really, really hate doing that.


Eventually IDEA ran out of memory, but this time it could only manage to put up the "Out of Memory" alert box but it could not draw its contents nor respond to any UI actions while it is displayed.

I've attached another excerpt from the log file.

I added the GSP file I was editing both times this symptom happened. To the best of my recollection, the last hang occurred when I typed "<text" on line 33. The completion pop-up appeared showing only "textarea" and I hit return to accept that completion. I had performed a few other edits to this file before the hang happened. The ".txt" is the same file with a different suffix so you won't be asked to "download" it when you click on it in a browser.


Randall Schulz

Message was edited by:
Randall Schulz



Attachment(s):
idea7-log-JetGroovy-Crash-10-08.02.txt
inspect.gsp
inspect.gsp.txt
0

Eugene,

That's great. Thank you.

I have two follow-up questions:

1) Can you tell me the situation that triggers the problem so I can possibly avoid it?
-or-
2) Could you produce an early release?

I'm using Vim to edit my GSP files at the moment for fear of falling into this trap again! It's ... not so good.


Randall Schulz

0

Randall,

I would hate to upload a version of plugin that is unstable, and the bad news is that it has not yet undergone development testing. Still if you are a brave soul, we can email plugin zip to you.

Eugene.

0

Hi, Eugene,

Brave enough for this one. Ilya has already sent it (0.1.11507) and I'm using it now.

Thanks for the quick work.


Randall Schulz

0

Please sign in to leave a comment.