Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
internal errors that block UI-Thread
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  19 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Simon Schäfer  
View profile  
 More options Oct 6 2012, 6:59 pm
From: Simon Schäfer <m...@antoras.de>
Date: Sun, 07 Oct 2012 00:58:57 +0200
Local: Sat, Oct 6 2012 6:58 pm
Subject: internal errors that block UI-Thread
After updating to the last nightly build, I get some internal build
errors.

They are extremely problematic because they can block the UI-Thread for
about 5 to 10 seconds. First I thought it is related to the bug that
lets semantic highlighting running forever but after deactivating
semantic highlighting the errors still occur. It seems that the errors
are unproblematic on simple save actions but when I want to use
hyperlinking for example the UI-Thread is blocked for several seconds.

The errors:http://codepad.org/yz1UHjeZ

The first two exceptions occur always while the last two belong to
hyperlinking.

I use 2.10 nightly and eclipse 3.7. Is this bug already known?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iulian dragos  
View profile  
 More options Oct 7 2012, 2:23 am
From: iulian dragos <jagua...@gmail.com>
Date: Sun, 7 Oct 2012 08:23:19 +0200
Local: Sun, Oct 7 2012 2:23 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread
Hi Simon,

I've seen similar, it's a binary incompatibility between different
versions of 2.10 nightlies. It looks like your system has an older
scala-refactoring build, that is incompatible with the compiler
bundle. Can you paste here the version of the scala.library/compiler
bundle, and also scala-refactoring? (the first 2 can easily be
copy-pasted from the Scala/Report A Bug dialog).

The second is not an exception per se, it's not thrown: it's a timeout
in ask-option, and we print the stack trace for debugging purposes.

It would be great to get to the bottom of this..

thanks,
iulian

--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Schäfer  
View profile  
 More options Oct 7 2012, 5:32 am
From: Simon Schäfer <m...@antoras.de>
Date: Sun, 07 Oct 2012 11:32:16 +0200
Local: Sun, Oct 7 2012 5:32 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread
The information from scala-ide:

  Scala plugin version: 2.1.0.nightly-2_10-201210070323-4d78173

  Scala compiler version:       2.10.0.v20121005-094526-bfde8c79cf
  Scala library version:        2.10.0.v20121005-094526-bfde8c79cf
  Eclipse version: 3.7.2.v201202080800

Eclipse' Plug-in Registry tells me that I use:

  org.scala-refactoring.library (0.5.0.201210070506-null)

On Sun 07 Oct 2012 08:23:19 AM CEST, iulian dragos wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iulian dragos  
View profile  
 More options Oct 7 2012, 8:22 am
From: iulian dragos <jagua...@gmail.com>
Date: Sun, 7 Oct 2012 14:22:07 +0200
Local: Sun, Oct 7 2012 8:22 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread
Thanks Simon,

I think it's a missing Import-Package in scala-refactoring. I'll
prepare a fix and let you know.

iulian

--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mirco Dotta  
View profile  
 More options Oct 7 2012, 8:30 am
From: Mirco Dotta <mirco.do...@typesafe.com>
Date: Sun, 7 Oct 2012 14:30:27 +0200
Local: Sun, Oct 7 2012 8:30 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread

> org.scala-refactoring.library (0.5.0.201210070506-null)

Oh, the null at the end was supposed to be the git hash. Fixing this now, thanks Simon!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
virtualeyes  
View profile  
 More options Oct 7 2012, 8:41 am
From: virtualeyes <sit1...@gmail.com>
Date: Sun, 7 Oct 2012 05:41:43 -0700 (PDT)
Local: Sun, Oct 7 2012 8:41 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread

and this has nothing to do with sematic highlighting forever issue?

A nightly from a couple of days ago made progress in the sense that after a
few minutes the hung thread is resolved (interestingly, only when I shift
focus away from the IDE and do something else like check email).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mirco Dotta  
View profile  
 More options Oct 7 2012, 9:01 am
From: Mirco Dotta <mirco.do...@typesafe.com>
Date: Sun, 7 Oct 2012 15:00:58 +0200
Local: Sun, Oct 7 2012 9:00 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread

On Oct 7, 2012, at 2:22 PM, iulian dragos wrote:

> Thanks Simon,

> I think it's a missing Import-Package in scala-refactoring. I'll
> prepare a fix and let you know.

And this is a related ticket: https://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/100...

I guess the fix is to add a `scala.reflect.io;resolution:=optional` in the scala-refactoring MANIFEST. I'm already
working on a small patch for fixing the `null` git-hash suffix, I could also push this little fix together.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iulian dragos  
View profile  
 More options Oct 7 2012, 9:02 am
From: iulian dragos <jagua...@gmail.com>
Date: Sun, 7 Oct 2012 15:01:48 +0200
Local: Sun, Oct 7 2012 9:01 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread

On Sun, Oct 7, 2012 at 2:41 PM, virtualeyes <sit1...@gmail.com> wrote:
> and this has nothing to do with sematic highlighting forever issue?

> A nightly from a couple of days ago made progress in the sense that after a
> few minutes the hung thread is resolved (interestingly, only when I shift
> focus away from the IDE and do something else like check email).

The timeout is 10 seconds. I don't think it has anything to do with the focus.

iulian

--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eugene Burmako  
View profile  
 More options Oct 7 2012, 9:02 am
From: Eugene Burmako <eugene.burm...@epfl.ch>
Date: Sun, 7 Oct 2012 15:02:45 +0200
Local: Sun, Oct 7 2012 9:02 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread

Is this an OSGI problem then?

On 7 October 2012 15:00, Mirco Dotta <mirco.do...@typesafe.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iulian dragos  
View profile  
 More options Oct 7 2012, 9:03 am
From: iulian dragos <jagua...@gmail.com>
Date: Sun, 7 Oct 2012 15:02:39 +0200
Local: Sun, Oct 7 2012 9:02 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread

On Sun, Oct 7, 2012 at 3:00 PM, Mirco Dotta <mirco.do...@typesafe.com> wrote:

> On Oct 7, 2012, at 2:22 PM, iulian dragos wrote:

>> Thanks Simon,

>> I think it's a missing Import-Package in scala-refactoring. I'll
>> prepare a fix and let you know.

> And this is a related ticket: https://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/100...

Thanks for digging it out.

I already pushed a fix, waiting for the build to finish. If it's ok,
I'll close the ticket.

iulian

--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mirco Dotta  
View profile  
 More options Oct 7 2012, 9:04 am
From: Mirco Dotta <mirco.do...@typesafe.com>
Date: Sun, 7 Oct 2012 15:04:39 +0200
Local: Sun, Oct 7 2012 9:04 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread

On Oct 7, 2012, at 3:02 PM, iulian dragos wrote:

> On Sun, Oct 7, 2012 at 3:00 PM, Mirco Dotta <mirco.do...@typesafe.com> wrote:

>> On Oct 7, 2012, at 2:22 PM, iulian dragos wrote:

>>> Thanks Simon,

>>> I think it's a missing Import-Package in scala-refactoring. I'll
>>> prepare a fix and let you know.

>> And this is a related ticket: https://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/100...

> Thanks for digging it out.

> I already pushed a fix, waiting for the build to finish. If it's ok,
> I'll close the ticket.

Ok!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iulian dragos  
View profile  
 More options Oct 7 2012, 9:37 am
From: iulian dragos <jagua...@gmail.com>
Date: Sun, 7 Oct 2012 15:36:53 +0200
Local: Sun, Oct 7 2012 9:36 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread

On Sun, Oct 7, 2012 at 3:02 PM, Eugene Burmako <eugene.burm...@epfl.ch> wrote:
> Is this an OSGI problem then?

Yes. It's fixed now, upgrade your nightlies, gentlemen!

iulian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Schäfer  
View profile  
 More options Oct 7 2012, 11:23 am
From: Simon Schäfer <m...@antoras.de>
Date: Sun, 07 Oct 2012 17:23:22 +0200
Local: Sun, Oct 7 2012 11:23 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread
Thanks, works well!

The remaining problem now is that `askOption` can have a timeout. Any
ideas on how to fix that?

On Sun 07 Oct 2012 03:36:53 PM CEST, iulian dragos wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iulian dragos  
View profile  
 More options Oct 8 2012, 6:21 am
From: iulian dragos <jagua...@gmail.com>
Date: Mon, 8 Oct 2012 12:21:37 +0200
Local: Mon, Oct 8 2012 6:21 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread

On Sun, Oct 7, 2012 at 5:23 PM, Simon Schäfer <m...@antoras.de> wrote:
> Thanks, works well!

> The remaining problem now is that `askOption` can have a timeout. Any
> ideas on how to fix that?

The timeout is needed because we couldn't track down and fix a race
condition that is plaguing the IDE for months now: some `ask` calls are
never answered by the compiler, usually when the compiler is shutdown and
restarted. In order not to have freezes or threads that hang, we added the
timeout. I recently had a little breakthrough and been able to reproduce it
in the debugger, but we don't have a fix yet.

Regardless of when this is fixed, I think the timeout is necessary for all
operations that end up blocking the UI thread. Most users would gladly
trade-off some precision for snappiness.

iulian

--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Schäfer  
View profile  
 More options Oct 8 2012, 10:10 am
From: Simon Schäfer <m...@antoras.de>
Date: Mon, 08 Oct 2012 16:10:25 +0200
Local: Mon, Oct 8 2012 10:10 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread
I don't critisize the timeouts in general - my problem is only that
they occur now for some days on nearly each save action, which is
extremely annoying.

Is the timeout a simple constant that can be edited? If yes, where can
I find it? Maybe a change can be useful on my local build (or at least
in the debugger).

On Mon 08 Oct 2012 12:21:37 PM CEST, iulian dragos wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mirco Dotta  
View profile  
 More options Oct 8 2012, 11:21 am
From: Mirco Dotta <mirco.do...@typesafe.com>
Date: Mon, 8 Oct 2012 17:21:11 +0200
Local: Mon, Oct 8 2012 11:21 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread

> I don't critisize the timeouts in general - my problem is only that they occur now for some days on nearly each save action, which is extremely annoying.

Simon, I share your pain, and we need to fix it.

> Is the timeout a simple constant that can be edited? If yes, where can I find it? Maybe a change can be useful on my local build (or at least in the debugger).

No, it isn't a user-editable constant. The default value is hardcoded in `ScalaPresentationCompiler.askOption`, and it is currently set to 10s, which is probably
not a good default in many cases.
I think we need to tune the timeout value on a case-by-case need. For instance, askOption calls in semantic highlighting should give back an answer almost
instantaneously, as this calls should operate on an already type checked tree. Hence, I'd say that a good default for them should be 100/200ms.

Also, it would be much better to log timeouts in the scala-ide.log file alone (all those `Timeout in askOption` entries in the Error Log View are madness :))

I'm planning to have a look at it as soon as I nail down this beauty https://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/100...
But, if you want it fix it right away, please feel free to hack on ;)

-- Mirco

---------------
Mirco Dotta
Typesafe - The software stack for applications that scale
PSE-D, 1015 Lausanne, Switzerland
Work: +41 (0)21 691 49 65
Twitter: @mircodotta

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Schäfer  
View profile  
 More options Oct 8 2012, 12:47 pm
From: Simon Schäfer <m...@antoras.de>
Date: Mon, 08 Oct 2012 18:47:27 +0200
Local: Mon, Oct 8 2012 12:47 pm
Subject: Re: [scala-ide-user] internal errors that block UI-Thread

On Mon 08 Oct 2012 05:21:11 PM CEST, Mirco Dotta wrote:

Yeah, another annoying bug.

> But, if you want it fix it right away, please feel free to hack on ;)

It seems this is a bug in the compiler, which I think is impossible for
me to fix. ;)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iulian dragos  
View profile  
 More options Oct 21 2012, 6:44 am
From: iulian dragos <jagua...@gmail.com>
Date: Sun, 21 Oct 2012 12:44:29 +0200
Local: Sun, Oct 21 2012 6:44 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread

On Sun, Oct 7, 2012 at 6:56 PM, virtualeyes <sit1...@gmail.com> wrote:
> k, can't get anything done with semantic highlighting enabled, hung thread
> issue just drags IDE performance to a crawl.

This issue has been fixed in recent nightlies. Can you please give it
another try?

iulian

--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Schäfer  
View profile  
 More options Oct 21 2012, 7:34 am
From: Simon Schäfer <m...@antoras.de>
Date: Sun, 21 Oct 2012 13:34:37 +0200
Local: Sun, Oct 21 2012 7:34 am
Subject: Re: [scala-ide-user] internal errors that block UI-Thread
For me, it seems to be fixed. Thanks very much for the fix!

On Sun 21 Oct 2012 12:44:29 PM CEST, iulian dragos wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »