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 230198 - project verification in the background netbeans never ends
Summary: project verification in the background netbeans never ends
Status: REOPENED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
: 230676 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-05-23 17:50 UTC by franciscocpg
Modified: 2018-03-10 11:29 UTC (History)
13 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log do IDE (400.03 KB, text/plain)
2013-05-23 17:50 UTC, franciscocpg
Details
Arquivo .npss anexado do NetBeans (1.10 MB, application/x-npss)
2013-05-27 20:53 UTC, franciscocpg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description franciscocpg 2013-05-23 17:50:10 UTC
Product Version = NetBeans IDE Dev (Build nbms-and-javadoc-10705-on-20130412)
Operating System = Linux version 3.0.0-32-generic-pae running on i386
Java; VM; Vendor = 1.7.0_17
Runtime = Java HotSpot(TM) Client VM 23.7-b01

When I get a few hours coding (like 4 or 5, I can't tell), the project verification in the background netbeans never ends (loop).

I know this an old problem, please verify then end of the log "Indexing of: /media/DADOS/svn/Acessa/AcessaTIWEB/Java/trunk/AcessaTIWEBDirhect/AcessaTIWEBDirhectEntities/src" and "Indexing of: /media/DADOS/svn/Acessa/AcessaTIWEB/Java/trunk/AcessaTIWEBDirhect/AcessaTIWEBDirhectEntities/teste".

Thank you
Comment 1 franciscocpg 2013-05-23 17:50:19 UTC
Created attachment 134828 [details]
Log do IDE
Comment 2 franciscocpg 2013-05-23 17:52:57 UTC
I forgot to say. I have to close and open the IDE to solve the error.
Comment 3 Tomas Zezula 2013-05-24 14:01:02 UTC
The scan of the AcessaTIWEBDirhectEntities/src takes approximately 10 seconds, but whenever it's done it's restarted again by the FaceletsLibrarySupport, again and again.

>INFO [FaceletsLibrarySupport]: Invalidating facelets libraries due to a library descriptor change.
Comment 4 Tomas Zezula 2013-05-24 14:02:49 UTC
I think that FaceletsLibrarySupport is a part of JSF, please reassign to correct j2ee submodule if not.
Comment 5 Martin Fousek 2013-05-27 06:14:51 UTC
I added logging message at another invalidation but that will be unrelated, I think (web-main #c730d01dffe7).

The logic is such that:
- FLS counts hash from indexes for composite library names and library descriptors
- if it differs it sets the new hash and forces the refresh
- checks the hash again
-> here must be problem that the hash from the index must be always different than the previous counted one - it can be maybe issue in the EL index

Reporter please could you do snapshot from one cycle of the background scan? When you will have IDE in such state as was the reported one, start the IDE profiling (ALT + SHIFT + Y) and stop it after one round showing in the bottom status. Then please attach the snapshot to this issue.

BTW. Ideal would be if you could also share your project with me (privately - marfous[at]netbeans[dot]org) but I understand that it's not always possible.

Thanks a lot.
Comment 6 Martin Fousek 2013-05-27 07:57:40 UTC
Sorry, of course - not in EL but in JSF Editor.
Comment 7 franciscocpg 2013-05-27 19:21:03 UTC
I'm gonna try to reproduce the problem and follow the directions you gave me.

Unfortunately i cannot share the project.

Thank you 

(In reply to comment #5)
> I added logging message at another invalidation but that will be unrelated, I
> think (web-main #c730d01dffe7).
> 
> The logic is such that:
> - FLS counts hash from indexes for composite library names and library
> descriptors
> - if it differs it sets the new hash and forces the refresh
> - checks the hash again
> -> here must be problem that the hash from the index must be always different
> than the previous counted one - it can be maybe issue in the EL index
> 
> Reporter please could you do snapshot from one cycle of the background scan?
> When you will have IDE in such state as was the reported one, start the IDE
> profiling (ALT + SHIFT + Y) and stop it after one round showing in the bottom
> status. Then please attach the snapshot to this issue.
> 
> BTW. Ideal would be if you could also share your project with me (privately -
> marfous[at]netbeans[dot]org) but I understand that it's not always possible.
> 
> Thanks a lot.
Comment 8 franciscocpg 2013-05-27 20:53:47 UTC
Created attachment 134974 [details]
Arquivo .npss anexado do NetBeans

arquivo .npss
Comment 9 franciscocpg 2013-05-27 20:56:29 UTC
The problem occurred again today.

I have attached the IDE profiling at the comment 8.
Comment 10 Martin Fousek 2013-05-28 07:52:02 UTC
Thanks for attaching the snapshot. I figured out at least cause of these troubles which is fix for issue #226968. I'm going to remove "IndexingManager.getDefault().refreshAllIndices()" call with some comment addition and reopen the original bug since it requires different solution.

BTW, this code is not part of the Nb731, I'm including not-a-stopper status.
Comment 11 Martin Fousek 2013-05-28 08:00:16 UTC
Fixed in web-main #808c18d16386.

Franciscocpg if you will download new development build in about 2 days, your troubles with the background scanning should be gone.
Comment 12 Quality Engineering 2013-05-29 02:04:34 UTC
Integrated into 'main-golden', will be available in build *201305282301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/808c18d16386
User: Martin Fousek <marfous@netbeans.org>
Log: #230198 - project verification in the background netbeans never ends
Comment 13 Martin Fousek 2013-06-04 12:17:20 UTC
*** Bug 230676 has been marked as a duplicate of this bug. ***
Comment 14 scanti 2017-08-01 17:15:21 UTC
Background scanning of project never ends. It is stuck on Collecting project dependencies
See report id #857395.