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 253917 - ide hung scanning projects
Summary: ide hung scanning projects
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-28 19:03 UTC by tbrunhoff
Modified: 2015-09-07 14:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
current log. (49.22 KB, text/x-log)
2015-07-28 19:03 UTC, tbrunhoff
Details
updated log (195.52 KB, text/x-log)
2015-07-28 20:47 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2015-07-28 19:03:14 UTC
Created attachment 154984 [details]
current log.

From time to time, after making big changes, or changing the "main project", the background scanning of projects hangs.

Currently its been showing 6% with 23 more. The attached log is not showing anything (I think).

I can leave it like this for the next hour or two... could you tell me how to capture whatever is hanging?

This could be a dup of #207991, but that was marked fixed long ago.


Product Version: NetBeans IDE Dev (Build 201507280002)
Updates: Updates available
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Linux version 3.14.27-100.fc19.x86_64 running on amd64; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 1 tbrunhoff 2015-07-28 20:47:31 UTC
Created attachment 154988 [details]
updated log

Gave up waiting, but closing the ide introduces a new hang, with a few interesting lines in the attached log.
Comment 2 Ondrej Vrabec 2015-07-29 12:36:05 UTC
cnd project please investigate, the second log shows a lot of cnd threads just waiting.
Comment 3 Vladimir Voskresensky 2015-07-29 23:55:13 UTC
very strange huge amount of "Open/Close project ..." activity together with 
"Code Completion: scheduleParsing..."
Comment 4 Vladimir Voskresensky 2015-07-29 23:56:07 UTC
Todd when you said scanning what was the name of task in progress? "Scanning" or "Parsing"?
Comment 5 tbrunhoff 2015-07-30 00:09:22 UTC
"scanning...", I'm sure of it.
Comment 6 tbrunhoff 2015-07-30 00:11:16 UTC
Is there something I could capture next time this occurs. Has not happened since I filed this yesterday. Maybe a few times per week.
Comment 7 Vladimir Voskresensky 2015-07-30 10:11:06 UTC
If you have seen "scanning..." then I think the reason is:
you switched between IDE and other application, then back to IDE.
IDE assume that you might touch some files while been out of IDE context (i.e. from your command line). So, when you move focus back to IDE it starts 
Thread id 150, "Refresh-After-WindowActivated"
and checks all source roots.
But in your case smth happened with locks.

So, the next time you see that scanning progress which doesn't move forward, please, take threads dump.
Comment 8 Vladimir Voskresensky 2015-09-07 12:45:15 UTC
Todd,
Were you able to see the issue and take threads dump?

Thanks,
Vladimir.
Comment 9 tbrunhoff 2015-09-07 14:39:29 UTC
No. Sorry. It may have been fixed in a later build. I am currently running 20150823.
Comment 10 tbrunhoff 2015-09-07 14:41:02 UTC
No. Sorry. It may have been fixed in a later build. I am currently running 20150823.