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.
When opening a project, I see lot of exceptions in console: java.nio.BufferUnderflowException at java.nio.Buffer.nextGetIndex(Buffer.java:480) at java.nio.HeapByteBuffer.getShort(HeapByteBuffer.java:285) at org.netbeans.modules.cnd.repository.sfs.BufferDataInput.readShort(BufferDataInput.java:117) at org.netbeans.modules.cnd.repository.support.AbstractObjectFactory.readSelfPersistent(AbstractObjectFactory.java:72) at org.netbeans.modules.cnd.modelimpl.csm.core.CsmObjectFactory.read(CsmObjectFactory.java:470) at org.netbeans.modules.cnd.repository.sfs.BufferedRWAccess.read(BufferedRWAccess.java:105) at org.netbeans.modules.cnd.repository.sfs.IndexedStorageFile.read(IndexedStorageFile.java:127) at org.netbeans.modules.cnd.repository.sfs.DoubleFileStorage.read(DoubleFileStorage.java:132) at org.netbeans.modules.cnd.repository.disk.UnitImpl.get(UnitImpl.java:89) at org.netbeans.modules.cnd.repository.disk.DiskRepositoryManager.get(DiskRepositoryManager.java:174) at org.netbeans.modules.cnd.repository.impl.DelegateRepository.get(DelegateRepository.java:84) at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.get(RepositoryUtils.java:110) at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.get(RepositoryUtils.java:82) at org.netbeans.modules.cnd.modelimpl.uid.KeyBasedUID.getObject(KeyBasedUID.java:67) at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoFile(UIDCsmConverter.java:80) at org.netbeans.modules.cnd.modelimpl.csm.IncludeImpl._getIncludeFile(IncludeImpl.java:129) at org.netbeans.modules.cnd.modelimpl.csm.IncludeImpl.getIncludeFile(IncludeImpl.java:77) at org.netbeans.modules.cnd.highlight.error.BadgeProvider.invalidateProject(BadgeProvider.java:87) at org.netbeans.modules.cnd.highlight.error.BadgeProviderUpdater.projectLoaded(BadgeProviderUpdater.java:115) at org.netbeans.modules.cnd.modelimpl.csm.core.ProgressSupport.fireProjectLoaded(ProgressSupport.java:145) at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.onAddedToModelImpl(ProjectBase.java:800) at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase$2.run(ProjectBase.java:755) at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl$2.run(ModelImpl.java:347) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005) The netbeans is build using changeset 28c70c483921
Created attachment 76781 [details] netbeans userdir
Created attachment 76782 [details] cnd model cache
The project I opened was /home/vk155633/NetBeansProjects/DLight_Simple_Tests with configuration GNU
Created attachment 76783 [details] The project that was open
An error occurs (in particular) when restoring CsmFile that corresponds to stdio.h Repository unit that fails: "/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/includeL" chunkInfo.getOffset() returns 151965 while file is only 58K
Created attachment 76787 [details] the content of /var/tmp/vk155633-cnd65-caches-0/%2Fusr%2Fsfw%2Flib%2Fgcc%2Fi386-pc-solaris2.10%2F3.4.3%2FincludeL
After I removed cache for /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/include, exceptions disappeared; cache-0-data is now 87K instead of 58K (but I don't know fragmentation ration neither for old nor for new one) I guess the situation is related with incorrect shutdown of the IDE (kill -9 or so) - my guess is that under some circumstances the cache is not invalidated when it should. But it's just a guess.
Integrated into 'main-golden', will be available in build *200904300201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/cf657de5684a User: Alexander Simon <alexvsimon@netbeans.org> Log: fixing IZ#158277:BufferUnderflowException when opening project
fixed by recovering errors: - error on lading project from repository: clean repository and reparse project - error while working wit project: repository will be cleaned on closing project
*** Issue 121305 has been marked as a duplicate of this issue. ***
Integrated into 'main-golden', will be available in build *200905010201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/0777e37c4058 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed IZ#158277:BufferUnderflowException when opening project - recover after error
*** Issue 120742 has been marked as a duplicate of this issue. ***