This page is no longer maintained — Please continue to the home page at www.scala-lang.org

scala eclipse plugin "hangs"

13 replies
Marcelo Fukushima
Joined: 2009-01-09,
User offline. Last seen 42 years 45 weeks ago.

Hello all. First of all, thanks for the great work on the plugin side.
I have one small complaint though: sometimes while using the scala
eclipse plugin, eclipse seen to "hang" for a bit, consuming a lot of
CPU. It also seems to happen on the netbeans plugin, so it might be
something in the compiler?
im using eclipse ganymede on solaris x86
thanks for the attention

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: scala eclipse plugin "hangs"

On Fri, Jan 9, 2009 at 1:37 PM, Marcelo Fukushima wrote:
> Hello all. First of all, thanks for the great work on the plugin side.
> I have one small complaint though: sometimes while using the scala
> eclipse plugin, eclipse seen to "hang" for a bit, consuming a lot of
> CPU. It also seems to happen on the netbeans plugin, so it might be
> something in the compiler?

Umm ... thanks for the report, but a _teensy_ bit more detail might be
helpful ;-)

Cheers,

Miles

Marcelo Fukushima
Joined: 2009-01-09,
User offline. Last seen 42 years 45 weeks ago.
Re: scala eclipse plugin "hangs"

errr... sorry about that... ill try to get the stack trace when that
happens again

none else notices it?

On Fri, Jan 9, 2009 at 11:50 AM, Miles Sabin wrote:
> On Fri, Jan 9, 2009 at 1:37 PM, Marcelo Fukushima wrote:
>> Hello all. First of all, thanks for the great work on the plugin side.
>> I have one small complaint though: sometimes while using the scala
>> eclipse plugin, eclipse seen to "hang" for a bit, consuming a lot of
>> CPU. It also seems to happen on the netbeans plugin, so it might be
>> something in the compiler?
>
> Umm ... thanks for the report, but a _teensy_ bit more detail might be
> helpful ;-)
>
> Cheers,
>
>
> Miles
>

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: scala eclipse plugin "hangs"

On Fri, Jan 9, 2009 at 2:01 PM, Marcelo Fukushima wrote:
> errr... sorry about that... ill try to get the stack trace when that
> happens again
>
> none else notices it?

Well, it's not all that obvious from you mail what "it" actually is ;-)

You said it was a hang but you didn't say what you were doing at the
time. Or if it recovered after a while (in which case how long) or
died completely and you had to quit or kill Eclipse.

And a stacktrace?

Cheers,

Miles

imaier
Joined: 2008-07-01,
User offline. Last seen 23 weeks 2 days ago.
Re: scala eclipse plugin "hangs"

Just a guess but most of the hangs I notice happen when the GC kicks in
or memory is running out. You can enable the heap status bar in the
Eclipse preferences to see whether that's the issue. You should set the
max heap size to at least 512MB, better 1GB.

Ingo

Marcelo Fukushima wrote:
> errr... sorry about that... ill try to get the stack trace when that
> happens again
>
> none else notices it?
>
> On Fri, Jan 9, 2009 at 11:50 AM, Miles Sabin wrote:
>> On Fri, Jan 9, 2009 at 1:37 PM, Marcelo Fukushima wrote:
>>> Hello all. First of all, thanks for the great work on the plugin side.
>>> I have one small complaint though: sometimes while using the scala
>>> eclipse plugin, eclipse seen to "hang" for a bit, consuming a lot of
>>> CPU. It also seems to happen on the netbeans plugin, so it might be
>>> something in the compiler?
>> Umm ... thanks for the report, but a _teensy_ bit more detail might be
>> helpful ;-)
>>
>> Cheers,
>>
>>
>> Miles
>>
>
>
>

Santiago Hirschfeld
Joined: 2008-12-31,
User offline. Last seen 42 years 45 weeks ago.
Re: scala eclipse plugin "hangs"

On Fri, Jan 9, 2009 at 12:01 PM, Marcelo Fukushima wrote:
> errr... sorry about that... ill try to get the stack trace when that
> happens again
>
> none else notices it?

I did notice it. I think that the first mail describes the situation I
encountered (in both eclipse and netbeans) where the CPU goes to 100%
for a minute or two (sometimes more) and the IDE window is freezed,
after that it returns to normal.

Regards

Marcelo Fukushima
Joined: 2009-01-09,
User offline. Last seen 42 years 45 weeks ago.
Re: scala eclipse plugin "hangs"

while editing a scala file, sometimes (its rare, but slightly
annoying), eclipse freezes for a couple of seconds, consuming 100% CPU
while on it

at first i though it was gc kicking in, but it isnt (checked with
jconsole and even permgen is less than half full)

when i get home, ill try to get the stacktrace

On Fri, Jan 9, 2009 at 12:31 PM, Ingo Maier wrote:
> Just a guess but most of the hangs I notice happen when the GC kicks in or
> memory is running out. You can enable the heap status bar in the Eclipse
> preferences to see whether that's the issue. You should set the max heap
> size to at least 512MB, better 1GB.
>
> Ingo
>
> Marcelo Fukushima wrote:
>>
>> errr... sorry about that... ill try to get the stack trace when that
>> happens again
>>
>> none else notices it?
>>
>> On Fri, Jan 9, 2009 at 11:50 AM, Miles Sabin wrote:
>>>
>>> On Fri, Jan 9, 2009 at 1:37 PM, Marcelo Fukushima
>>> wrote:
>>>>
>>>> Hello all. First of all, thanks for the great work on the plugin side.
>>>> I have one small complaint though: sometimes while using the scala
>>>> eclipse plugin, eclipse seen to "hang" for a bit, consuming a lot of
>>>> CPU. It also seems to happen on the netbeans plugin, so it might be
>>>> something in the compiler?
>>>
>>> Umm ... thanks for the report, but a _teensy_ bit more detail might be
>>> helpful ;-)
>>>
>>> Cheers,
>>>
>>>
>>> Miles
>>>
>>
>>
>>
>
>

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: scala eclipse plugin "hangs"

On Fri, Jan 9, 2009 at 2:34 PM, Santiago Hirschfeld
wrote:
> On Fri, Jan 9, 2009 at 12:01 PM, Marcelo Fukushima wrote:
>> errr... sorry about that... ill try to get the stack trace when that
>> happens again
>>
>> none else notices it?
>
> I did notice it. I think that the first mail describes the situation I
> encountered (in both eclipse and netbeans) where the CPU goes to 100%
> for a minute or two (sometimes more) and the IDE window is freezed,
> after that it returns to normal.

In which case Ingo's guess is very likely right.

Also beware of heaps larger than your physical memory ... the
combination of GC and swapping can be very ugly indeed.

Cheers,

Miles

Arthur Peters
Joined: 2009-01-09,
User offline. Last seen 42 years 45 weeks ago.
Re: scala eclipse plugin "hangs"
I have also experienced this. The problem appears to be sensitive to the code in the program, so I'm 99% sure that it is caused by the compiler becoming really slow in certain cases. I ran into it while playing with ScalaJoins (http://lamp.epfl.ch/~phaller/joins/index.html). It would freeze for maybe 5 sec when I had 1 or 2 cases in the "join" statement, but as I added more it got exponentially worse. By the time I had 5 cases the freeze was like 2 min.

I'm at work now. When I get home tonight I will try to create a eclipse project that exhibits the problem and report it as a bug. Would that be the best way to go about this?

I'll also test to see if increasing the heap-size helps.

-Arthur


On Fri, Jan 9, 2009 at 8:37 AM, Marcelo Fukushima <takeshi10@gmail.com> wrote:
Hello all. First of all, thanks for the great work on the plugin side.
I have one small complaint though: sometimes while using the scala
eclipse plugin, eclipse seen to "hang" for a bit, consuming a lot of
CPU. It also seems to happen on the netbeans plugin, so it might be
something in the compiler?
im using eclipse ganymede on solaris x86
thanks for the attention

--
[]'s
Marcelo Takeshi Fukushima

Marcelo Fukushima
Joined: 2009-01-09,
User offline. Last seen 42 years 45 weeks ago.
Re: scala eclipse plugin "hangs"

at least in my case, it was not memory. I have checked heap space and
permgen and both were fine (around 20% orso) and yes it was sensitive
to the editing file
it might be something that runs on the swt's EDT, because eclipse
freezes entirely

On Fri, Jan 9, 2009 at 1:44 PM, Arthur Peters wrote:
> I have also experienced this. The problem appears to be sensitive to the
> code in the program, so I'm 99% sure that it is caused by the compiler
> becoming really slow in certain cases. I ran into it while playing with
> ScalaJoins (http://lamp.epfl.ch/~phaller/joins/index.html). It would freeze
> for maybe 5 sec when I had 1 or 2 cases in the "join" statement, but as I
> added more it got exponentially worse. By the time I had 5 cases the freeze
> was like 2 min.
>
> I'm at work now. When I get home tonight I will try to create a eclipse
> project that exhibits the problem and report it as a bug. Would that be the
> best way to go about this?
>
> I'll also test to see if increasing the heap-size helps.
>
> -Arthur
>
>
> On Fri, Jan 9, 2009 at 8:37 AM, Marcelo Fukushima
> wrote:
>>
>> Hello all. First of all, thanks for the great work on the plugin side.
>> I have one small complaint though: sometimes while using the scala
>> eclipse plugin, eclipse seen to "hang" for a bit, consuming a lot of
>> CPU. It also seems to happen on the netbeans plugin, so it might be
>> something in the compiler?
>> im using eclipse ganymede on solaris x86
>> thanks for the attention
>>
>> --
>> []'s
>> Marcelo Takeshi Fukushima
>
>

Robert Kosara
Joined: 2008-12-18,
User offline. Last seen 42 years 45 weeks ago.
Re: scala eclipse plugin "hangs"
I've seen this in NetBeans, so I don't think it's SWT. I haven't done anything with Scala in a few weeks, so I don't remember what I was doing, but it would lock my computer for a few seconds, and sometimes for 20 seconds or so. This is on a Mac, perhaps this is Mac-specific?
I'll dive into Scala again next week or so, and when I see it again, I'll post a bit more on reproducing it.

Robert

On Fri, Jan 9, 2009 at 11:31 AM, Marcelo Fukushima <takeshi10@gmail.com> wrote:
at least in my case, it was not memory. I have checked heap space and
permgen and both were  fine (around 20% orso) and yes it was sensitive
to the editing file
it might be something that runs on the swt's EDT, because eclipse
freezes entirely


On Fri, Jan 9, 2009 at 1:44 PM, Arthur Peters <arthur.peters@gmail.com> wrote:
> I have also experienced this. The problem appears to be sensitive to the
> code in the program, so I'm 99% sure that it is caused by the compiler
> becoming really slow in certain cases. I ran into it while playing with
> ScalaJoins (http://lamp.epfl.ch/~phaller/joins/index.html). It would freeze
> for maybe 5 sec when I had 1 or 2 cases in the "join" statement, but as I
> added more it got exponentially worse. By the time I had 5 cases the freeze
> was like 2 min.
>
> I'm at work now. When I get home tonight I will try to create a eclipse
> project that exhibits the problem and report it as a bug. Would that be the
> best way to go about this?
>
> I'll also test to see if increasing the heap-size helps.
>
> -Arthur
>
>
> On Fri, Jan 9, 2009 at 8:37 AM, Marcelo Fukushima <takeshi10@gmail.com>
> wrote:
>>
>> Hello all. First of all, thanks for the great work on the plugin side.
>> I have one small complaint though: sometimes while using the scala
>> eclipse plugin, eclipse seen to "hang" for a bit, consuming a lot of
>> CPU. It also seems to happen on the netbeans plugin, so it might be
>> something in the compiler?
>> im using eclipse ganymede on solaris x86
>> thanks for the attention
>>
>> --
>> []'s
>> Marcelo Takeshi Fukushima
>
>



--
[]'s
Marcelo Takeshi Fukushima

Marcelo Fukushima
Joined: 2009-01-09,
User offline. Last seen 42 years 45 weeks ago.
Re: scala eclipse plugin "hangs"

its not on SWT, but its something that runs on SWT's EDT (event
dispatcher thread) - or in netbeans' case, the Swing's EDT

ant its not Mac-specific because i ran into it on an OpenSolaris x86
and WindowsXP

when i get home, ill try to get at least a stacktrace of the problematic piece

On Fri, Jan 9, 2009 at 3:17 PM, Robert Kosara wrote:
> I've seen this in NetBeans, so I don't think it's SWT. I haven't done
> anything with Scala in a few weeks, so I don't remember what I was doing,
> but it would lock my computer for a few seconds, and sometimes for 20
> seconds or so. This is on a Mac, perhaps this is Mac-specific?
> I'll dive into Scala again next week or so, and when I see it again, I'll
> post a bit more on reproducing it.
>
> Robert
>
> On Fri, Jan 9, 2009 at 11:31 AM, Marcelo Fukushima
> wrote:
>>
>> at least in my case, it was not memory. I have checked heap space and
>> permgen and both were fine (around 20% orso) and yes it was sensitive
>> to the editing file
>> it might be something that runs on the swt's EDT, because eclipse
>> freezes entirely
>>
>>
>> On Fri, Jan 9, 2009 at 1:44 PM, Arthur Peters
>> wrote:
>> > I have also experienced this. The problem appears to be sensitive to the
>> > code in the program, so I'm 99% sure that it is caused by the compiler
>> > becoming really slow in certain cases. I ran into it while playing with
>> > ScalaJoins (http://lamp.epfl.ch/~phaller/joins/index.html). It would
>> > freeze
>> > for maybe 5 sec when I had 1 or 2 cases in the "join" statement, but as
>> > I
>> > added more it got exponentially worse. By the time I had 5 cases the
>> > freeze
>> > was like 2 min.
>> >
>> > I'm at work now. When I get home tonight I will try to create a eclipse
>> > project that exhibits the problem and report it as a bug. Would that be
>> > the
>> > best way to go about this?
>> >
>> > I'll also test to see if increasing the heap-size helps.
>> >
>> > -Arthur
>> >
>> >
>> > On Fri, Jan 9, 2009 at 8:37 AM, Marcelo Fukushima
>> > wrote:
>> >>
>> >> Hello all. First of all, thanks for the great work on the plugin side.
>> >> I have one small complaint though: sometimes while using the scala
>> >> eclipse plugin, eclipse seen to "hang" for a bit, consuming a lot of
>> >> CPU. It also seems to happen on the netbeans plugin, so it might be
>> >> something in the compiler?
>> >> im using eclipse ganymede on solaris x86
>> >> thanks for the attention
>> >>
>> >> --
>> >> []'s
>> >> Marcelo Takeshi Fukushima
>> >
>> >
>>
>>
>>
>> --
>> []'s
>> Marcelo Takeshi Fukushima
>
>

Matt Weaver
Joined: 2008-12-16,
User offline. Last seen 42 years 45 weeks ago.
Re: scala eclipse plugin "hangs"

Just to throw in another data point, I've seen this on Windows (Vista)
in NetBeans, but haven't had any problems with Eclipse.

Hope it helps,
-Matt

Marcelo Fukushima wrote:
> its not on SWT, but its something that runs on SWT's EDT (event
> dispatcher thread) - or in netbeans' case, the Swing's EDT
>
> ant its not Mac-specific because i ran into it on an OpenSolaris x86
> and WindowsXP
>
> when i get home, ill try to get at least a stacktrace of the problematic piece
>
> On Fri, Jan 9, 2009 at 3:17 PM, Robert Kosara wrote:
>
>> I've seen this in NetBeans, so I don't think it's SWT. I haven't done
>> anything with Scala in a few weeks, so I don't remember what I was doing,
>> but it would lock my computer for a few seconds, and sometimes for 20
>> seconds or so. This is on a Mac, perhaps this is Mac-specific?
>> I'll dive into Scala again next week or so, and when I see it again, I'll
>> post a bit more on reproducing it.
>>
>> Robert
>>
>> On Fri, Jan 9, 2009 at 11:31 AM, Marcelo Fukushima
>> wrote:
>>
>>> at least in my case, it was not memory. I have checked heap space and
>>> permgen and both were fine (around 20% orso) and yes it was sensitive
>>> to the editing file
>>> it might be something that runs on the swt's EDT, because eclipse
>>> freezes entirely
>>>
>>>
>>> On Fri, Jan 9, 2009 at 1:44 PM, Arthur Peters
>>> wrote:
>>>
>>>> I have also experienced this. The problem appears to be sensitive to the
>>>> code in the program, so I'm 99% sure that it is caused by the compiler
>>>> becoming really slow in certain cases. I ran into it while playing with
>>>> ScalaJoins (http://lamp.epfl.ch/~phaller/joins/index.html). It would
>>>> freeze
>>>> for maybe 5 sec when I had 1 or 2 cases in the "join" statement, but as
>>>> I
>>>> added more it got exponentially worse. By the time I had 5 cases the
>>>> freeze
>>>> was like 2 min.
>>>>
>>>> I'm at work now. When I get home tonight I will try to create a eclipse
>>>> project that exhibits the problem and report it as a bug. Would that be
>>>> the
>>>> best way to go about this?
>>>>
>>>> I'll also test to see if increasing the heap-size helps.
>>>>
>>>> -Arthur
>>>>
>>>>
>>>> On Fri, Jan 9, 2009 at 8:37 AM, Marcelo Fukushima
>>>> wrote:
>>>>
>>>>> Hello all. First of all, thanks for the great work on the plugin side.
>>>>> I have one small complaint though: sometimes while using the scala
>>>>> eclipse plugin, eclipse seen to "hang" for a bit, consuming a lot of
>>>>> CPU. It also seems to happen on the netbeans plugin, so it might be
>>>>> something in the compiler?
>>>>> im using eclipse ganymede on solaris x86
>>>>> thanks for the attention
>>>>>
>>>>> --
>>>>> []'s
>>>>> Marcelo Takeshi Fukushima
>>>>>
>>>>
>>>
>>> --
>>> []'s
>>> Marcelo Takeshi Fukushima
>>>
>>
>
>
>
>

Sean McDirmid
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: scala eclipse plugin "hangs"
Check both permgen and your maximum heap status. It sounds like a GC problem if its just happening spuriously and comes back. If it were a compiler problem, it would lock you out for much longer. But still, you haven't given many details, like how big the file you are editing is.
This should probably be moved to scala-tools

On Fri, Jan 9, 2009 at 10:35 PM, Marcelo Fukushima <takeshi10@gmail.com> wrote:
while editing a scala file, sometimes (its rare, but slightly
annoying), eclipse freezes for a couple of seconds, consuming 100% CPU
while on it

at first i though it was gc kicking in, but it isnt (checked with
jconsole and even permgen is less than half full)

when i get home, ill try to get the stacktrace

On Fri, Jan 9, 2009 at 12:31 PM, Ingo Maier <ingo.maier@epfl.ch> wrote:
> Just a guess but most of the hangs I notice happen when the GC kicks in or
> memory is running out. You can enable the heap status bar in the Eclipse
> preferences to see whether that's the issue. You should set the max heap
> size to at least 512MB, better 1GB.
>
> Ingo
>
> Marcelo Fukushima wrote:
>>
>> errr... sorry about that... ill try to get the stack trace when that
>> happens again
>>
>> none else notices it?
>>
>> On Fri, Jan 9, 2009 at 11:50 AM, Miles Sabin <miles@milessabin.com> wrote:
>>>
>>> On Fri, Jan 9, 2009 at 1:37 PM, Marcelo Fukushima <takeshi10@gmail.com>
>>> wrote:
>>>>
>>>> Hello all. First of all, thanks for the great work on the plugin side.
>>>> I have one small complaint though: sometimes while using the scala
>>>> eclipse plugin, eclipse seen to "hang" for a bit, consuming a lot of
>>>> CPU. It also seems to happen on the netbeans plugin, so it might be
>>>> something in the compiler?
>>>
>>> Umm ... thanks for the report, but a _teensy_ bit more detail might be
>>> helpful ;-)
>>>
>>> Cheers,
>>>
>>>
>>> Miles
>>>
>>
>>
>>
>
>



--
[]'s
Marcelo Takeshi Fukushima

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland