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 255548 - inaccuracy tests: IDE can't parse gunichartables.h file for a 30 minutes
Summary: inaccuracy tests: IDE can't parse gunichartables.h file for a 30 minutes
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P1 normal (vote)
Assignee: Alexander Simon
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2015-09-24 15:37 UTC by soldatov
Modified: 2015-10-01 05:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch (3.48 KB, patch)
2015-09-29 16:33 UTC, Alexander Simon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-09-24 15:37:24 UTC
I see this regression from March.

Prepare project
- Unpack clucene-core-0.9.21.tar.bz2
- Create project in automatic mode
- Set "C++ Standard" = C++11 in Project Properties window
- Close IDE

Check project
- Start IDE with fresh user directory
- Open project
- Call "Code Assistance|Test Error Highlighting" context menu item
==> Test stops in 'src/CLucene/config/gunichartables.h' files (I think IDE parses this file for a 90 minutes)

If I don't change C++ Standard field, then "Test Error Highlighting" test works quickly.
Comment 1 Vladimir Kvashin 2015-09-29 10:12:06 UTC
Valera, is this a regression?
Does it work in previous IDE versions or with -J-Dapt.use.clank=false?
Comment 2 soldatov 2015-09-29 10:37:27 UTC
1) -J-Dapt.use.clank=false doesn't fix test
2) last "good" test run is 2015-03-16

bash-4.1$ cat 150317_050938/..../testErrorHighlightingCluceneCpp11.main.log | grep gunichartables.h
Name = clucene_cpp11/src/CLucene/config/gunichartables.h, Errors = 0, Invalid identifiers = 0, Time = 1200.818, Lines = 11264

bash-4.1$ cat 150316_044142/..../testErrorHighlightingCluceneCpp11.main.log | grep gunichartables.h
Name = clucene_cpp11/src/CLucene/config/gunichartables.h, Errors = 0, Invalid identifiers = 0, Time = 16.747, Lines = 11264
Comment 3 Vladimir Kvashin 2015-09-29 11:46:58 UTC
One more observation: we have the same problem with -J-Dapt.use.clank=false.
Comment 4 Vladimir Kvashin 2015-09-29 11:47:44 UTC
(In reply to Vladimir Kvashin from comment #3)
Please disregard my previous comment, it concerned another issue.
Sorry.
Comment 5 Alexander Simon 2015-09-29 14:39:24 UTC
regression after fixing bug #251181
Comment 6 Alexander Simon 2015-09-29 15:47:42 UTC
I see two performance problem:
1. Method CsmOffsetResolver.findContext() puts in cache a lot of objects.
2. Method CompletionSupport.tryGetSeparatorFromModel() returns start of offsetable declaration instead of last separator offset.
Comment 7 Alexander Simon 2015-09-29 16:33:09 UTC
Created attachment 156469 [details]
proposed patch
Comment 9 Quality Engineering 2015-10-01 05:01:58 UTC
Integrated into 'main-silver', will be available in build *201510010328* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7de1fef89ec4
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #255548 - inaccuracy tests: IDE can't parse gunichartables.h file for a 30 minutes