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 234299 - "No Types Found" message in Go To Type window
Summary: "No Types Found" message in Go To Type window
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-13 07:49 UTC by soldatov
Modified: 2013-08-14 14:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2013-08-13 07:49:58 UTC
empty Go To Type window

Scenario:
- Start IDE
- Create Quote_1 project
- Wait project parsed
- Close project
- Reopen project
- Press Navigate|Go To Type menu item
- Type cpu
==> "No Types Found" message appears

Also I see such exception:
java.nio.channels.ClosedChannelException
	at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:94)
	at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:665)
	at org.netbeans.modules.cnd.repository.sfs.BufferedRWAccess.read(BufferedRWAccess.java:111)
	at org.netbeans.modules.cnd.repository.sfs.IndexedStorageFile.read(IndexedStorageFile.java:142)
	at org.netbeans.modules.cnd.repository.sfs.DoubleFileStorage.read(DoubleFileStorage.java:139)
	at org.netbeans.modules.cnd.repository.disk.UnitImpl.get(UnitImpl.java:139)
	at org.netbeans.modules.cnd.repository.disk.DiskRepositoryManager.get(DiskRepositoryManager.java:187)
	at org.netbeans.modules.cnd.repository.impl.DelegateRepository.get(DelegateRepository.java:108)
	at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.get(RepositoryUtils.java:124)
	at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.get(RepositoryUtils.java:96)
	at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$CachedUID.getObject(UIDUtilities.java:497)
	at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoCsmObject(UIDCsmConverter.java:111)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection.convertToObject(LazyCsmCollection.java:76)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection.access$400(LazyCsmCollection.java:65)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection$MySafeIterator.getNextNonNull(LazyCsmCollection.java:300)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection$MySafeIterator.<init>(LazyCsmCollection.java:282)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection$MySafeIterator.<init>(LazyCsmCollection.java:276)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection$MySafeIterator.<init>(LazyCsmCollection.java:269)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection.iterator(LazyCsmCollection.java:104)
	at org.netbeans.modules.cnd.gotodeclaration.type.CppTypeProvider$Worker.processDeclaration(CppTypeProvider.java:319)
	at org.netbeans.modules.cnd.gotodeclaration.type.CppTypeProvider$Worker.processNamespace(CppTypeProvider.java:297)
	at org.netbeans.modules.cnd.gotodeclaration.type.CppTypeProvider$Worker.processNamespace(CppTypeProvider.java:301)
	at org.netbeans.modules.cnd.gotodeclaration.type.CppTypeProvider$Worker.processProject(CppTypeProvider.java:289)
	at org.netbeans.modules.cnd.gotodeclaration.type.CppTypeProvider$Worker.processProjectLibs(CppTypeProvider.java:281)
	at org.netbeans.modules.cnd.gotodeclaration.type.CppTypeProvider$Worker.run(CppTypeProvider.java:251)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
java.nio.channels.ClosedChannelException
	at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:94)
	at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:665)
	at org.netbeans.modules.cnd.repository.sfs.BufferedRWAccess.read(BufferedRWAccess.java:111)
	at org.netbeans.modules.cnd.repository.sfs.IndexedStorageFile.read(IndexedStorageFile.java:142)
	at org.netbeans.modules.cnd.repository.sfs.DoubleFileStorage.read(DoubleFileStorage.java:139)
	at org.netbeans.modules.cnd.repository.disk.UnitImpl.get(UnitImpl.java:139)
	at org.netbeans.modules.cnd.repository.disk.DiskRepositoryManager.get(DiskRepositoryManager.java:187)
	at org.netbeans.modules.cnd.repository.impl.DelegateRepository.get(DelegateRepository.java:108)
	at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.get(RepositoryUtils.java:124)
	at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.get(RepositoryUtils.java:96)
	at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$CachedUID.getObject(UIDUtilities.java:497)
	at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoCsmObject(UIDCsmConverter.java:111)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection.convertToObject(LazyCsmCollection.java:76)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection.access$400(LazyCsmCollection.java:65)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection$MySafeIterator.getNextNonNull(LazyCsmCollection.java:300)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection$MySafeIterator.<init>(LazyCsmCollection.java:282)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection$MySafeIterator.<init>(LazyCsmCollection.java:276)
	at org.netbeans.modules.cnd.modelimpl.uid.LazyCsmCollection$MySafeIterator.<init>(LazyCsmCollection.java:269)
Comment 1 soldatov 2013-08-13 08:08:16 UTC
other scenario (stable):
- Start IDE
- Create Quote_1 project
- Wait project parsed
- Press Navigate|Go To Type menu item
- Type cpu
==> ok
- Close Go To Type window
- Press Navigate|Go To Type menu item
- Type cpu
==> "No Types Found" message appears
Comment 2 Vladimir Voskresensky 2013-08-13 12:55:02 UTC
http://hg.netbeans.org/cnd-main/rev/d22d9b1e0b44
Comment 3 Quality Engineering 2013-08-14 14:41:41 UTC
Integrated into 'main-silver', will be available in build *201308141142* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d22d9b1e0b44
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #234299 "No Types Found" message in Go To Type window
- do not use TaskFuture.cancel which interrupts thread and cause destroy of repository shared channel (see #234193).
- use dedicated cancel flag instead