37 Replies Last post: Apr 6, 2011 8:55 AM by Alexis  
Ron Alleva Newbie 16 posts since
Dec 11, 2009
Currently Being Moderated

Mar 17, 2010 10:20 PM

Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Hi there,

 

I previously posted about this problem here and made a bug report here.  I think I found out some new information so hopefully it will help.

 

First the specs:

System:

Ubuntu 9.10 x86_64

4GB ram

 

Java:

java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)

 

Idea:

idea-IC-94.539

 

idea.vmoptions:

-Xms256m
-Xmx1536m
-XX:MaxPermSize=500m
-Dsun.java2d.pmoffscreen=false

 

I realize that Xmx is a bit high, but even with that, it said it ran out of heap space.

The errors I was getting in the console were these ones:

 

Caused by: java.io.IOException: Negative seek offset
    at java.io.RandomAccessFile.seek(Native Method)
    at com.intellij.util.io.RandomAccessDataFile.seek(RandomAccessDataFile.java:267)

        .

        .

 

And

 

com.intellij.util.indexing.StorageException: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
    at com.intellij.util.indexing.MapReduceIndex.updateWithMap(MapReduceIndex.java:249)
    at com.intellij.util.indexing.MapReduceIndex.update(MapReduceIndex.java:232)

 

So I was looking around at the .IdeaIC90 directory and decided to list the files present by file size...these are the top 4:

  0 -rw-r--r-- 1 ronnie ronnie  207769926 2010-03-17 13:49 records.dat
0 -rw-r--r-- 1 ronnie ronnie  501547008 2010-03-17 13:52 content.dat.storageRecordIndex
0 -rw-r--r-- 1 ronnie ronnie  904242400 2010-03-17 13:51 content.dat.storageData
0 -rw-r--r-- 1 ronnie ronnie 2044025568 2010-03-17 13:51 attrib.dat.storageRecordIndex

 

I understand that these are sparse files, but the last file is what bothered me.  Being that it is over 2GB large, it would seem to perhaps be why I get errors about a negative seek offset, since the value used to seek is a signed int. (Altho I am not an expert on Java's file i/o or anything like that).

 

Could this possibly be the problem?  Is the project I'm using to large to open with Idea?  What would cause such a large file size in one of the indexes?

 

I hope you can answer my question.  I've been using netbeans for the past month, and it's not quite up to the standards of Idea.  Thanks!

M. J. Milicevic Apprentice 688 posts since
Aug 22, 2002
Currently Being Moderated
Mar 17, 2010 10:36 PM in response to: Ron Alleva
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Hi there,

 

try invalidating Idea caches (file > invalidate caches) and set -XX:+UseCompressedOops vm option on a 64 jvm,

I work with following settings on a quite large projects without any problems (also on linux):

 

-Xmx712m
-XX:MaxPermSize=396m
-XX:+AggressiveOpts
-XX:+UseCompressedOops
-XX:+UnlockExperimentalVMOptions
-XX:+UseG1GC
-ea

 

(Just testing G1 collector, you should disable that one)

 

Also, attaching a memory snapshot would help fixing any memory leak issues...

hth, cheers

-m

M. J. Milicevic Apprentice 688 posts since
Aug 22, 2002
Currently Being Moderated
Mar 18, 2010 10:40 PM in response to: Ron Alleva
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Hi there,

have you tried renaming .IntelliJIdea90/system and starting Idea again ?

 

PLEASE NOTE: you'll loose (all) project(s) information, caches etc. but maybe it is worth trying


Some time ago, I also had a lot of issues on one of my machines, but, on other machine Idea was working like a charm, with almost identical setup,

so I deleted whole system folder and my problems were gone. Now, I cannot say it will be the same in your case, but it is worth trying ;-)

 

cheers,

-m

 

PS: are you maybe using symlinks for java/intellij/project directories?

Thai Dang Vu Novice 131 posts since
Apr 6, 2007
Currently Being Moderated
Mar 19, 2010 4:59 PM in response to: M. J. Milicevic
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

machak wrote:

are you maybe using symlinks for java/intellij/project directories?

Hi,

 

What problems will there be if symbolic links are used in java/intellij/project?

 

Regards.

De Bruyn Newbie 8 posts since
Mar 27, 2008
Currently Being Moderated
Mar 26, 2010 12:30 AM in response to: Ron Alleva
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

I'm having the same problem. Running Kubuntu 9.10 32bit and JDK 1.6.0_18.

 

Getting allot of these as well:

 

Caused by: java.io.IOException: Invalid argument
        at java.io.RandomAccessFile.setLength(Native Method)
        at com.intellij.util.io.PagedFileStorage.resizeFile(PagedFileStorage.java:230)
        at com.intellij.util.io.PagedFileStorage.resize(PagedFileStorage.java:219)
        at com.intellij.util.io.ResizeableMappedFile.resize(ResizeableMappedFile.java:57)
        ... 96 more

hvgotcodes Newbie 27 posts since
Mar 27, 2010
Currently Being Moderated
Mar 27, 2010 3:57 AM in response to: Ron Alleva
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

I am not having these issues with 64 bit karmic.

hvgotcodes Newbie 27 posts since
Mar 27, 2010
Currently Being Moderated
Mar 27, 2010 4:47 PM in response to: Ron Alleva
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

yeah java from the repos.  not using maven...

Alex  Apprentice 1,017 posts since
May 19, 2003
Currently Being Moderated
Mar 30, 2010 3:57 AM in response to: Ron Alleva
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Just recently starting with IU-94.585 and IU-94.633, I started getting more VM crashes on Ubuntu 9.10 64-bit and JDK 1.6.0_18.    What was strange to me is I have been running this exact same configuration with the same idea.vmoptions for almost 6 months now and it had been very stable with very infrequent crashes.   But starting with IU-94.585, I started to see more crashes.

 

I tried invalidating my IDEA cache and restarting, but it still crashed. I thought maybe I didn't have enough PermGen heap or maybe it was due to the UseCompressedOops I was using, but IDEA crashed even when I made adjustements for those options.

 

I have kept  compressedoops off to try to keep my JVM config as simple as possible.  But today, the JVM crashed several times per hour which is not acceptable. I filed a submitted a bug report ot sun.  I may have to switch my development environment back to windows to see if that is more stable, because I'm doing alot of development now and need a stable IDE.

 

 

$ cat idea.vmoptions
-Xms256m
-Xmx1592m
-XX:MaxPermSize=190m
-XX:+UseCompressedOops
-ea


$ ./idea.sh
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (nmethod.cpp:1836), pid=27144, tid=140666378643728
#  Error: guarantee(cont_offset != 0,"unhandled implicit exception in compiled code")
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.0-b13 mixed mode linux-amd64 compressed oops)
# An error report file with more information is saved as:
# /tmp/hs_err_pid27144.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted

 

$ cat idea.vmoptions
-Xms256m
-Xmx1592m
-XX:MaxPermSize=255m
-XX:+UseCompressedOops
-ea

 


$ ./idea.sh
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (nmethod.cpp:1836), pid=27414, tid=140675089459472
#  Error: guarantee(cont_offset != 0,"unhandled implicit exception in compiled code")
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.0-b13 mixed mode linux-amd64 compressed oops)
# An error report file with more information is saved as:
# /tmp/hs_err_pid27414.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted

 

$ cat idea.vmoptions
-Xms256m
-Xmx1592m
-XX:MaxPermSize=255m
-ea


$ ./idea.sh
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ffbffdd863c, pid=27618, tid=140718286174480
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.0-b13 mixed mode linux-amd64 )
# Problematic frame:
# V  [libjvm.so+0x62263c]
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid27618.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted

Alex  Apprentice 1,017 posts since
May 19, 2003
Currently Being Moderated
Mar 31, 2010 11:03 AM in response to: Alex
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

FYI Just an udpate on my issues with IU-94.633 on Ubuntu 9.10 64-bit.  (My problem is different from Ron's problem)

Sun released java 6 update 19, so I tried that, but IDEA is still crashing the JVM within seconds to minutes of running it.

 

From the JVM fatal error, it looks like a hotspot JIT error, so I added -Djava.compiler=NONE in idea.vmoptions and restarted again.

That made the problem go away, but IDEA is too slow to use.  It took about 30 minutes for it to rebuild my cache.

 

I don't think IDEA has any bug, but each new version has different code, and it looks like the latest IDEA code is exposing a bug in the linux hotspot JIT.

When 9.0.2 is released, I'll try again. Maybe the problem will go away on it's own.  I did file a bug with Sun, but who knows when or if they will look into it.

 

For development work, I've been forced to go back to Windows 7 64-bit platform which is working fine so far.

-Alex

 

 

./idea.sh
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (nmethod.cpp:1836), pid=6719, tid=140162546764048
#  Error: guarantee(cont_offset != 0,"unhandled implicit exception in compiled code")
#
# JRE version: 6.0_19-b04
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.2-b04 mixed mode linux-amd64 compressed oops)
# An error report file with more information is saved as:
# /tmp/hs_err_pid6719.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted

Alex  Apprentice 1,017 posts since
May 19, 2003
Currently Being Moderated
Mar 30, 2010 12:18 AM in response to: Ron Alleva
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Ron,

 

I've been getting some exceptions which seem related to IDEA's caches/indexing but these exceptions aren't causing IDEA to have a fatal error.

Looking at my cache and index directory,  my biggest system directories are jars 1275 MB, caches 670 MB, localhistory 377 MB, and index 241 MB. My attrib.dat.storageRecordIndex file is only 3 MB in size.  If your attrib.dat.storageRecordIndex is 2 GB, that seems like a bug unless your project is HUGE!!

 

I just read you said you had 7000 files. My project has 30,000 source files (that includes some other files like properties, build.xml, artwork files, etc.)

 

$ du -sk *
670752    caches
4452    compiler
40    conversion
1060    facets
4    httpFileSystem
8    idea-server
16    ideTalk
241756    index
1275632    jars
4    jetConnect
3816    js_caches
228    jsp_related_caches
377948    LocalHistory
15800    log
8    plugins
2172    stat
8    vcsCache
6672    webservices

 

$ du -sk *
13920    attrib.dat.storageData
2984    attrib.dat.storageRecordIndex
631308    content.dat.storageData
2064    content.dat.storageRecordIndex
5836    names.dat
3588    names.dat.keystream
4    names.dat.keystream.len
4    names.dat.len
11036    records.dat
4    records.dat.len

 

 

 

[  33729]  ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA (Maia) IU-94.633  Build #IU-94.633
[  33729]  ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_18
[  33729]  ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) 64-Bit Server VM
[  33729]  ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
[  33729]  ERROR - com.intellij.ide.IdeEventQueue - OS: Linux
[  33729]  ERROR - com.intellij.ide.IdeEventQueue - Last Action: 
[  33729]  ERROR - com.intellij.ide.IdeEventQueue - Original exception: 
java.lang.IllegalArgumentException
    at java.nio.Buffer.position(Buffer.java:218)
    at com.intellij.util.io.PagedFileStorage.get(PagedFileStorage.java:171)
    at com.intellij.util.io.PagedFileStorage.getInt(PagedFileStorage.java:121)
    at com.intellij.util.io.ResizeableMappedFile.getInt(ResizeableMappedFile.java:139)
    at com.intellij.util.io.PersistentEnumerator.valueOf(PersistentEnumerator.java:455)
    at com.intellij.util.io.StringRef.getString(StringRef.java:48)
    at com.intellij.util.io.StringRef.length(StringRef.java:80)
    at com.intellij.psi.impl.java.stubs.impl.PsiFieldStubImpl.<init>(PsiFieldStubImpl.java:54)
    at com.intellij.psi.impl.java.stubs.JavaFieldStubElementType.deserialize(JavaFieldStubElementType.java:103)
    at com.intellij.psi.impl.java.stubs.JavaFieldStubElementType.deserialize(JavaFieldStubElementType.java:44)
    at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:200)
    at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:203)
    at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:203)
    at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:185)
    at com.intellij.psi.stubs.SerializedStubTree.getStub(SerializedStubTree.java:34)
    at com.intellij.psi.stubs.StubTree.readFromVFile(StubTree.java:138)
    at com.intellij.psi.stubs.StubTree.readOrBuild(StubTree.java:102)
    at com.intellij.psi.impl.source.PsiFileImpl.getStubTree(PsiFileImpl.java:588)
    at com.intellij.psi.impl.source.PsiFileImpl.getStub(PsiFileImpl.java:571)
    at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.getClasses(PsiJavaFileBaseImpl.java:79)
    at com.intellij.ide.projectView.impl.ClassesTreeStructureProvider.modify(ClassesTreeStructureProvider.java:50)
    at com.intellij.ide.util.treeView.AbstractTreeStructureBase.getChildElements(AbstractTreeStructureBase.java:49)
    at com.intellij.ide.util.treeView.AbstractTreeUi.getChildrenFor(AbstractTreeUi.java:1316)
    at com.intellij.ide.util.treeView.AbstractTreeUi.processUnbuilt(AbstractTreeUi.java:1256)
    at com.intellij.ide.util.treeView.AbstractTreeUi.updateNodeChildren(AbstractTreeUi.java:1028)
    at com.intellij.ide.util.treeView.AbstractTreeUi.updateSubtreeNow(AbstractTreeUi.java:929)
    at com.intellij.ide.util.treeView.AbstractTreeUpdater$3.run(AbstractTreeUpdater.java:228)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:72)
    at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:53)
    at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:85)
    at com.intellij.ide.util.treeView.AbstractTreeUpdater.performUpdate(AbstractTreeUpdater.java:226)
    at com.intellij.ide.util.treeView.AbstractTreeUi.doExpandNodeChildren(AbstractTreeUi.java:424)
    at com.intellij.ide.util.treeView.AbstractTreeBuilder.expandNodeChildren(AbstractTreeBuilder.java:246)
    at com.intellij.ide.projectView.BaseProjectTreeBuilder.expandNodeChildren(BaseProjectTreeBuilder.java:69)
    at com.intellij.ide.util.treeView.AbstractTreeUi$MyExpansionListener.treeExpanded(AbstractTreeUi.java:3759)
    at javax.swing.JTree.fireTreeExpanded(JTree.java:2666)
    at javax.swing.JTree.setExpandedState(JTree.java:3427)
    at javax.swing.JTree.expandPath(JTree.java:2163)
    at com.intellij.ide.util.treeView.AbstractTreeUi$44.run(AbstractTreeUi.java:2479)
    at com.intellij.ide.util.treeView.UpdaterTreeState.process(UpdaterTreeState.java:114)
    at com.intellij.ide.util.treeView.AbstractTreeUi.processInnerChange(AbstractTreeUi.java:2500)
    at com.intellij.ide.util.treeView.AbstractTreeUi.expandPath(AbstractTreeUi.java:2469)
    at com.intellij.ide.util.treeView.AbstractTreeUi.expand(AbstractTreeUi.java:1232)
    at com.intellij.ide.util.treeView.AbstractTreeUi.expand(AbstractTreeUi.java:1197)
    at com.intellij.ide.util.treeView.AbstractTreeUi.processExpand(AbstractTreeUi.java:3426)
    at com.intellij.ide.util.treeView.AbstractTreeUi._expand(AbstractTreeUi.java:3365)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$6700(AbstractTreeUi.java:55)
    at com.intellij.ide.util.treeView.AbstractTreeUi$57.run(AbstractTreeUi.java:3274)
    at com.intellij.ide.util.treeView.AbstractTreeUi.expandNext(AbstractTreeUi.java:3286)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$6600(AbstractTreeUi.java:55)
    at com.intellij.ide.util.treeView.AbstractTreeUi$56.run(AbstractTreeUi.java:3250)
    at com.intellij.ide.util.treeView.AbstractTreeUi.runDone(AbstractTreeUi.java:3311)
    at com.intellij.ide.util.treeView.AbstractTreeUi._expand(AbstractTreeUi.java:3227)
    at com.intellij.ide.util.treeView.AbstractTreeUi.expand(AbstractTreeUi.java:3218)
    at com.intellij.ide.util.treeView.AbstractTreeUi.expand(AbstractTreeUi.java:3209)
    at com.intellij.ide.util.treeView.AbstractTreeUi.expand(AbstractTreeUi.java:3205)
    at com.intellij.ide.util.treeView.AbstractTreeBuilder.expand(AbstractTreeBuilder.java:100)
    at com.intellij.ide.util.treeView.TreeState$BuilderFacade.expand(TreeState.java:419)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:327)
    at com.intellij.ide.util.treeView.TreeState.access$400(TreeState.java:32)
    at com.intellij.ide.util.treeView.TreeState$2.run(TreeState.java:335)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:72)
    at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:53)
    at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:85)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:327)
    at com.intellij.ide.util.treeView.TreeState.access$400(TreeState.java:32)
    at com.intellij.ide.util.treeView.TreeState$2.run(TreeState.java:335)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:72)
    at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:53)
    at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:85)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:327)
    at com.intellij.ide.util.treeView.TreeState.access$400(TreeState.java:32)
    at com.intellij.ide.util.treeView.TreeState$2.run(TreeState.java:335)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:72)
    at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:53)
    at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:85)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:327)
    at com.intellij.ide.util.treeView.TreeState.access$400(TreeState.java:32)
    at com.intellij.ide.util.treeView.TreeState$2.run(TreeState.java:335)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:72)
    at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:53)
    at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:85)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:327)
    at com.intellij.ide.util.treeView.TreeState.access$400(TreeState.java:32)
    at com.intellij.ide.util.treeView.TreeState$2.run(TreeState.java:335)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:72)
    at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:53)
    at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:85)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:327)
    at com.intellij.ide.util.treeView.TreeState.access$400(TreeState.java:32)
    at com.intellij.ide.util.treeView.TreeState$2.run(TreeState.java:335)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:72)
    at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:53)
    at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:85)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:327)
    at com.intellij.ide.util.treeView.TreeState.access$400(TreeState.java:32)
    at com.intellij.ide.util.treeView.TreeState$2.run(TreeState.java:335)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:72)
    at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:53)
    at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:85)
    at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:327)
    at com.intellij.ide.util.treeView.TreeState.access$400(TreeState.java:32)
    at com.intellij.ide.util.treeView.TreeState$2.run(TreeState.java:335)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:72)
    at com.intellij.openapi.util.ExecutionCallback.setExecuted(ExecutionCallback.java:37)
    at com.intellij.openapi.util.ActionCallback.setDone(ActionCallback.java:63)
    at com.intellij.ide.util.treeView.TreeState$BuilderFacade$1.run(TreeState.java:421)
    at com.intellij.ide.util.treeView.AbstractTreeUi.runDone(AbstractTreeUi.java:3311)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$4200(AbstractTreeUi.java:55)
    at com.intellij.ide.util.treeView.AbstractTreeUi$56$2.run(AbstractTreeUi.java:3242)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:72)
    at com.intellij.openapi.util.ExecutionCallback.setExecuted(ExecutionCallback.java:37)
    at com.intellij.openapi.util.ActionCallback.setDone(ActionCallback.java:63)
    at com.intellij.ide.util.treeView.AbstractTreeUi$57$1.run(AbstractTreeUi.java:3276)
    at com.intellij.ide.util.treeView.AbstractTreeUi.runDone(AbstractTreeUi.java:3311)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$4200(AbstractTreeUi.java:55)
    at com.intellij.ide.util.treeView.AbstractTreeUi$60.onReady(AbstractTreeUi.java:3402)
    at com.intellij.ide.util.treeView.AbstractTreeUi.processActions(AbstractTreeUi.java:2101)
    at com.intellij.ide.util.treeView.AbstractTreeUi.processNodeActionsIfReady(AbstractTreeUi.java:2073)
    at com.intellij.ide.util.treeView.AbstractTreeUi.processExpand(AbstractTreeUi.java:3430)
    at com.intellij.ide.util.treeView.AbstractTreeUi._expand(AbstractTreeUi.java:3365)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$6700(AbstractTreeUi.java:55)
    at com.intellij.ide.util.treeView.AbstractTreeUi$57.run(AbstractTreeUi.java:3274)
    at com.intellij.ide.util.treeView.AbstractTreeUi.expandNext(AbstractTreeUi.java:3286)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$6600(AbstractTreeUi.java:55)
    at com.intellij.ide.util.treeView.AbstractTreeUi$56.run(AbstractTreeUi.java:3250)
    at com.intellij.ide.util.treeView.AbstractTreeUi.flushPendingNodeActions(AbstractTreeUi.java:1585)
    at com.intellij.ide.util.treeView.AbstractTreeUi.maybeYeildingFinished(AbstractTreeUi.java:1529)
    at com.intellij.ide.util.treeView.AbstractTreeUi.executeYieldingRequest(AbstractTreeUi.java:1522)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$4300(AbstractTreeUi.java:55)
    at com.intellij.ide.util.treeView.AbstractTreeUi$28$1.run(AbstractTreeUi.java:1487)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:1003)
    at com.intellij.ide.util.treeView.AbstractTreeBuilder.runOnYeildingDone(AbstractTreeBuilder.java:314)
    at com.intellij.ide.util.treeView.AbstractTreeUi.runOnYieldingDone(AbstractTreeUi.java:1593)
    at com.intellij.ide.util.treeView.AbstractTreeUi$28.run(AbstractTreeUi.java:1485)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:610)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:500)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
[  33926]  ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.ide.util.treeView.AbstractTreeUi$28@246f0ed9,notifier=null,catchExceptions=false,when=1269575112169] on sun.awt.X11.XToolkit@30404564
java.lang.RuntimeException: java.lang.IllegalArgumentException
    at com.intellij.util.io.PersistentEnumerator.valueOf(PersistentEnumerator.java:468)
    at com.intellij.util.io.StringRef.getString(StringRef.java:48)
    at com.intellij.util.io.StringRef.length(StringRef.java:80)
    at com.intellij.psi.impl.java.stubs.impl.PsiFieldStubImpl.<init>(PsiFieldStubImpl.java:54)
    at com.intellij.psi.impl.java.stubs.JavaFieldStubElementType.deserialize(JavaFieldStubElementType.java:103)
    at com.intellij.psi.impl.java.stubs.JavaFieldStubElementType.deserialize(JavaFieldStubElementType.java:44)
    at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:200)
    at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:203)
    at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:203)
    at com.intellij.psi.stubs.SerializationManagerImpl.deserialize(SerializationManagerImpl.java:185)
    at com.intellij.psi.stubs.SerializedStubTree.getStub(SerializedStubTree.java:34)
    at com.intellij.psi.stubs.StubTree.readFromVFile(StubTree.java:138)
    at com.intellij.psi.stubs.StubTree.readOrBuild(StubTree.java:102)
    at com.intellij.psi.impl.source.PsiFileImpl.getStubTree(PsiFileImpl.java:588)
    at com.intellij.psi.impl.source.PsiFileImpl.getStub(PsiFileImpl.java:571)
    at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.getClasses(PsiJavaFileBaseImpl.java:79)
    at com.intellij.ide.projectView.impl.ClassesTreeStructureProvider.modify(ClassesTreeStructureProvider.java:50)
    at com.intellij.ide.util.treeView.AbstractTreeStructureBase.getChildElements(AbstractTreeStructureBase.java:49)
    at com.intellij.ide.util.treeView.AbstractTreeUi.getChildrenFor(AbstractTreeUi.java:1316)
    at com.intellij.ide.util.treeView.AbstractTreeUi.processUnbuilt(AbstractTreeUi.java:1256)
    at com.intellij.ide.util.treeView.AbstractTreeUi.updateNodeChildren(AbstractTreeUi.java:1028)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$1900(AbstractTreeUi.java:55)
    at com.intellij.ide.util.treeView.AbstractTreeUi$40$3.run(AbstractTreeUi.java:2330)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:72)
    at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:53)
    at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:85)
    at com.intellij.ide.util.treeView.AbstractTreeUi$40.run(AbstractTreeUi.java:2290)
    at com.intellij.ide.util.treeView.AbstractTreeUi$40.run(AbstractTreeUi.java:2241)
    at com.intellij.openapi.util.AsyncResult$1.run(AsyncResult.java:31)
    at com.intellij.openapi.util.ExecutionCallback.callback(ExecutionCallback.java:72)
    at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:53)
    at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:85)
    at com.intellij.openapi.util.AsyncResult.doWhenDone(AsyncResult.java:29)
    at com.intellij.ide.util.treeView.AbstractTreeUi.processExistingNode(AbstractTreeUi.java:2241)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$4000(AbstractTreeUi.java:55)
    at com.intellij.ide.util.treeView.AbstractTreeUi$26$1.run(AbstractTreeUi.java:1394)
    at com.intellij.ide.util.treeView.AbstractTreeUi$27.run(AbstractTreeUi.java:1451)
    at com.intellij.ide.util.treeView.AbstractTreeUi.executeYieldingRequest(AbstractTreeUi.java:1519)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$4300(AbstractTreeUi.java:55)
    at com.intellij.ide.util.treeView.AbstractTreeUi$28$1.run(AbstractTreeUi.java:1487)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:1003)
    at com.intellij.ide.util.treeView.AbstractTreeBuilder.runOnYeildingDone(AbstractTreeBuilder.java:314)
    at com.intellij.ide.util.treeView.AbstractTreeUi.runOnYieldingDone(AbstractTreeUi.java:1593)
    at com.intellij.ide.util.treeView.AbstractTreeUi$28.run(AbstractTreeUi.java:1485)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:610)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:500)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.IllegalArgumentException
    at java.nio.Buffer.position(Buffer.java:218)
    at com.intellij.util.io.PagedFileStorage.get(PagedFileStorage.java:171)
    at com.intellij.util.io.PagedFileStorage.getInt(PagedFileStorage.java:121)
    at com.intellij.util.io.ResizeableMappedFile.getInt(ResizeableMappedFile.java:139)
    at com.intellij.util.io.PersistentEnumerator.valueOf(PersistentEnumerator.java:455)
    ... 54 more

Ivan Jiang Newbie 10 posts since
May 30, 2009
Currently Being Moderated
Mar 31, 2010 5:10 PM in response to: Alex
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

I am having the same issue, anyone has a solid solution?

Ivan Jiang Newbie 10 posts since
May 30, 2009
Currently Being Moderated
Mar 31, 2010 6:29 PM in response to: Ivan Jiang
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Besides it, the IDEA on Ubuntu often does not respond to key type and I have to restart my IDEA, it just happened recently and I don't think I have made any changes, any suggestion?

Ivan Jiang Newbie 10 posts since
May 30, 2009
Currently Being Moderated
Mar 31, 2010 8:15 PM in response to: Ivan Jiang
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Can someone take a look?

 

It makes IDEA on Ubuntu useless...

hvgotcodes Newbie 27 posts since
Mar 27, 2010
Currently Being Moderated
Mar 31, 2010 8:18 PM in response to: Ivan Jiang
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

i gave up and went to windows FWIW.  No indexing issues. 

 

The deciding point for me was when i sat side by side with a colleague with a mac, and his intellij started in about 10 seconds, where as mine took more than a minute. with a 2.8ghz C2D. 

Alex  Apprentice 1,017 posts since
May 19, 2003
Currently Being Moderated
Mar 31, 2010 8:23 PM in response to: Ivan Jiang
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Re: IDEA not responding to typing,  I have not personally seen that, but I remember someone else had a problem like that and the it turned out they had one or more programs running "allways on top" and that was somehow interfering with IDEA.  After they turned off "always on top", the problem went away.

Ivan Jiang Newbie 10 posts since
May 30, 2009
Currently Being Moderated
Mar 31, 2010 8:36 PM in response to: Alex
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Thanks Alex.

 

There is a JDK bug for this, you are lucky you did not get it yet :--)

 

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6506617

Alex  Apprentice 1,017 posts since
May 19, 2003
Currently Being Moderated
Mar 31, 2010 8:19 PM in response to: Ivan Jiang
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Ivan,are you having Ron's problem with attrib.dat.storageRecordIndex being 2GB and getting exceptions related to caching, or is the JVM crashing like my case? What versoin of IDEA/JDK/OS are you using?

Ivan Jiang Newbie 10 posts since
May 30, 2009
Currently Being Moderated
Mar 31, 2010 8:33 PM in response to: Alex
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Ubuntu 9.10

JDK1.6 update 18

 

It is 2G

Alex  Apprentice 1,017 posts since
May 19, 2003
Currently Being Moderated
Apr 1, 2010 12:44 AM in response to: Ron Alleva
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18
Haha, I just read that you said you had 30,000 files...are you running 32-bit or 64 bit?  I'm thinking that that may also make a difference..

 

Ron,

 

I am running 64-bit Ubuntu 9.10 x86_64 same as you, but I am running latest 9.0.2 EAP IU-94.633, although at one point I was using the version you were using some months ago, and I didnt' see your problem at that time.  As I mentioned my attrib.dat.storageRecordIndex is only 3 MB with 30,000  files.  Maybe you should try the latest EAP also to see if it behaves any different?

 

There definitely seems to be a bug, but it's not clear if it is in IDEA's code or in the linux JVM.  Hopefully Jetbrains can help troubleshoot your problem.

 

-Alex

Alex  Apprentice 1,017 posts since
May 19, 2003
Currently Being Moderated
Apr 6, 2010 1:14 AM in response to: Ron Alleva
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Ron,


There is a new IU-95.24 build which has a performance fix related to indexing..

See http://confluence.jetbrains.net/display/IDEADEV/Maia+95.24+Release+Notes

See http://youtrack.jetbrains.net/issue/IDEA-53409

 

The behavior may be different with the new build.

 

Something doesn't look right with your "du -sk". The files are only 0 or 12 kb ?

See mine below. The attrib.dat.storageRecordIndex shows about the same size with "ls -l" or "du -sk".

 

I think there is a bug somewhere either in IDEA or JVM.  The exceptions you are getting seem to indicate the cachefile got corrupted.   I don't think it is because you reached a maximum file size if you only have 7000 files.  I'm hoping jetbrains knows how to troubleshoot it to find the problem.  Cache corruption problems are a PIA.  Almost as bad as the JVM crashes which I've been dealing with lately.

 

-Alex

 

 

 

% ls -l
total 638476
       4096 2010-04-03 20:56 ./
       4096 2010-04-03 20:25 ../
   13291520 2010-04-03 21:02 attrib.dat.storageData
    2968768 2010-04-03 21:02 attrib.dat.storageRecordIndex
1013153792 2010-04-03 21:02 content.dat.storageData
    2011136 2010-04-03 21:02 content.dat.storageRecordIndex
    5961605 2010-04-03 20:59 names.dat
    3668679 2010-04-03 20:59 names.dat.keystream
         8 2010-04-03 20:52 names.dat.keystream.len
         8 2010-04-03 20:52 names.dat.len
  11283983 2010-04-03 21:02 records.dat
         8 2010-04-03 20:52 records.dat.len
% du -sk *
12972    attrib.dat.storageData
2904    attrib.dat.storageRecordIndex
600152    content.dat.storageData
1968    content.dat.storageRecordIndex
5836    names.dat
3588    names.dat.keystream
4    names.dat.keystream.len
4    names.dat.len
11036    records.dat
4    records.dat.len

Rob Van Dyck Newbie 5 posts since
May 5, 2010
Currently Being Moderated
May 5, 2010 12:34 PM in response to: Ron Alleva
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Ron,

 

I had the same issue and using your solution fixed the issue completely! I had tried switching to an older version of intellij (9.0.1) and tried using the 32bit sun jvm.

 

Thanx again!

Rob.

Rob Van Dyck Newbie 5 posts since
May 5, 2010
Currently Being Moderated
May 5, 2010 12:47 PM in response to: Ron Alleva
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

Ron,

 

Have you made a bug report for intellij or Ubuntu? It is not specific to the JDK version by the way (I tried the 32 bit 1.6.0_20 and I am now again on the 64 bit 1.6.0_15). If you have no time to do it, let me know and I'll do it for you.

 

Kind regards,

Rob.

Patrick Osborne Newbie 1 posts since
May 22, 2010
Currently Being Moderated
May 22, 2010 12:32 AM in response to: Ron Alleva
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

I have another data point that may be helpful.  I had been running successfully on JDK 1.6.0_18 and 9.0.2 since 9.0.2 came out.  I upgraded to JDK1.6.0_20 today and immediately got stream of exceptions referred to here.  I invalidated the cache as directed in one of the posts, restarted and things look good so far.  crossing my fingers!

 

-- Patrick

Alexis  Newbie 4 posts since
May 20, 2004
Currently Being Moderated
Apr 6, 2011 8:55 AM in response to: Ron Alleva
Re: Intellij Idea 9 and Ubuntu 9.10 with JDK 1.6.0_18

I had the exact same issue with idea-IU-103.255, ubuntu 10.10. Moving .Intellij outside of home fixed it.

So is it an IDEA issue or an Ubuntu issue? The ubuntu bug seems to be fixed and closed.

 

Anyway thanks a lot for reporting the issue and sharing the workaround!

 

$uname -a

Linux zemachine 2.6.35-28-generic #49-Ubuntu SMP Tue Mar 1 14:39:03 UTC 2011 x86_64 GNU/Linux

$java -version

java version "1.6.0_23"

Java(TM) SE Runtime Environment (build 1.6.0_23-b05)

More Like This

  • Retrieving data ...