This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 123363 - Move Hg commands from event thread
Summary: Move Hg commands from event thread
Status: VERIFIED DUPLICATE of bug 121354
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-04 14:55 UTC by Jiri Skrivanek
Modified: 2008-01-03 09:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump. (25.69 KB, text/plain)
2007-12-04 14:56 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2007-12-04 14:55:49 UTC
I faced a UI freeze when I was opening a project. Other freeze was described in issue 121354, so it should probably
needs to be fixed some general way. To reproduce:

- take repository from
http://deadlock.netbeans.org/hudson/job/hgimport/lastSuccessfulBuild/artifact/apisupportx/hgimport/out/main.tar.gz
- open o.o.util project in IDE
- it freezes for a while. See attached thread dump.

Mercurial plugin 1.4.1.42.1, Mercurial runtime 0.9.5, NetBeans IDE Dev (Build 20071204063712), WindowsXP.
Comment 1 Jiri Skrivanek 2007-12-04 14:56:13 UTC
Created attachment 53845 [details]
Thread dump.
Comment 2 John Rice 2007-12-04 15:45:09 UTC
This is a known issue with the annotate API, as Maros pointed out to us:

"The annotations API in general does not support asynchronous operation so the best thing you can do is to:
1) query the cache if you have the status
2) if you do NOT have the status then return unannotated name immediately
3) start a background process (thread) that does the regular scanFolder
4) once the scanning finishes and status is known then fire status change"

We will implement a solution along these lines. The other issue in 121354 is to do with handling of huge ignored
directories and having to process 1000's of files to get status info for them. So will need another fix related to
processing the .hgignore files.

BTW: puzzled as to why you are on 1.4.1. We have released 1.4.2 and it's in both head and release60 branch. Can you make
sure to test against the 1.4.2 build. The problem will still be there, but that's what we'll be putting the fix into.
Comment 3 John Rice 2007-12-04 16:01:31 UTC
Ignore my comment on the 1.4.2 - we had planned to bump, but haven't yet, brain is in melt down!
Comment 4 Padraig Obriain 2007-12-06 08:35:40 UTC

*** This issue has been marked as a duplicate of 121354 ***
Comment 5 Jiri Skrivanek 2007-12-06 09:19:03 UTC
Verified.