You are not logged in.

#1 2015-10-14 06:58:29

karapuz
Member
Registered: 2015-10-14
Posts: 10

Suddenly two Java IDEs broke and one did not

Hello, dear sirs!

3-5 days ago got into big trouble, when my favourite IDE (Intellij Idea Community Edition) completely stopped working.
Tried to install Netbeans - it doesn't work as well.

Eclipse works fine, but it is terrible, so the goal is to recover Idea.

The symptoms are: program launches, but very soon stops responding. If I switch to another application, it even stops redrawing its interface, so I can see just a border of Idea/netbeans. Tried to wait several minutes - no sense.
The disk activity is ZERO (watching with iotop), CPU activity is almost ZERO (watching with top). It just hangs...

The workstation has 32Gb of RAM and hundreds of gigs of free disk space. The configuration didn't change for 1 year.

3-5 days ago, I didn't install any updates to IDEs. They were couple arch updates, but as I update and reboot every week or so, there was nothing serious.

What I've already tried:

-deleted all caches/configs in home dir 100 times (.IdeaIC14 / .config)
-reinstalled IDEs several times, also tried Idea 15 beta
-increased in idea64.vmoptions heap and stack to much larger values (1g/4g)
-even reinstalled Arch from scratch! (unfortunaly, Arch gets all updates during install. But I doubt that it's the reason)

The problem persists.

Can you give some clue, please?
Right now, I'm installing another distro in qemu to see, if the problem exists there, but surelly, it is desirable to fix it in Arch.

Offline

#2 2015-10-14 07:38:26

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: Suddenly two Java IDEs broke and one did not

Welcome to the Arch Linux forums!

Is there some output if you launch it from a terminal?
What is the output of

ps aux | grep intellij

the moment it freezes?
What WM/DE are you using? Have you tried in another one?


pkgshackscfgblag

Offline

#3 2015-10-14 08:27:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,754

Re: Suddenly two Java IDEs broke and one did not

Are you using openjdk7? It has a memory leak bug that can lead to cases like these switch to openjdk8 if that's the case

Offline

#4 2015-10-14 09:01:59

karapuz
Member
Registered: 2015-10-14
Posts: 10

Re: Suddenly two Java IDEs broke and one did not

V1del

Sorry, forgot to mention, I used Arch's openjdk-8, but after that tried openjdk-7 also.
Anyway, it is not memory leak - after reboot this happens instantly.

ayekat

I tried now fvwm - all the same. My regular WM is windowmaker.

Interesting, top utility shows zero cpu utilisation, but ps axu shows several. But it slowly fades to zero (at first %CPU is around 60%, after 1 minute it is 12 or less).

user        1345 12.9  2.4 10417572 802564 pts/2 Sl+  15:50   0:32 /usr/lib/jvm/java-8-openjdk/bin/java -Xbootclasspath/a:/opt/idea-IC-141.2735.5/bin/../lib/boot.jar -classpath /opt/idea-IC-141.2735.5/bin/../lib/bootstrap.jar:/opt/idea-IC-141.2735.5/bin/../lib/extensions.jar:/opt/idea-IC-141.2735.5/bin/../lib/util.jar:/opt/idea-IC-141.2735.5/bin/../lib/jdom.jar:/opt/idea-IC-141.2735.5/bin/../lib/log4j.jar:/opt/idea-IC-141.2735.5/bin/../lib/trove4j.jar:/opt/idea-IC-141.2735.5/bin/../lib/jna.jar:/usr/lib/jvm/java-8-openjdk/lib/tools.jar -Xms1024m -Xmx4096m -XX:MaxPermSize=4096m -XX:ReservedCodeCacheSize=1024m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=200 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Dawt.useSystemAAFontSettings=lcd -Djb.vmOptionsFile=/opt/idea-IC-141.2735.5/bin/idea64.vmoptions -XX:ErrorFile=/home/mirror/go//java_error_in_IDEA_%p.log -Djb.restart.code=88 -Didea.paths.selector=IdeaIC14 com.intellij.idea.Main
root      1448  0.0  0.0  11948  2312 pts/1    S+   15:55   0:00 grep intellij

Starting in terminal says
(looks terrifying, but as far as I remember, it always showed this errors. While working great. )

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=4096m; support was removed in 8.0
[  39588]  ERROR - ij.components.ComponentManager - Cyclic component initialization: com.intellij.ide.ui.LafManager [Plugin: com.intellij]
com.intellij.diagnostic.PluginException: Cyclic component initialization: com.intellij.ide.ui.LafManager [Plugin: com.intellij]
        at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:555)
        at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:610)
        at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:245)
        at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:211)
        at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponentFromContainer(ComponentManagerImpl.java:168)
        at com.intellij.openapi.application.impl.ApplicationImpl.getComponentFromContainer(ApplicationImpl.java:533)
        at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(ComponentManagerImpl.java:199)
        at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(ComponentManagerImpl.java:194)
        at com.intellij.ide.ui.LafManager.getInstance(LafManager.java:29)
        at com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl.setGlobalScheme(EditorColorsManagerImpl.java:237)
        at com.intellij.ide.ui.laf.darcula.DarculaInstaller.install(DarculaInstaller.java:48)
        at com.intellij.ide.ui.laf.LafManagerImpl.initComponent(LafManagerImpl.java:222)
        at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:568)
        at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:610)
        at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:245)
        at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:211)
        at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponent(ComponentManagerImpl.java:125)
        at com.intellij.openapi.application.impl.ApplicationImpl.createComponent(ApplicationImpl.java:354)
        at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:116)
        at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:87)
        at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:101)
        at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:499)
        at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:481)
        at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:170)
        at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:52)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:709)
        at java.awt.EventQueue$3.run(EventQueue.java:703)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:362)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
[  39599]  ERROR - ij.components.ComponentManager - IntelliJ IDEA 14.1.5  Build #IC-141.2735.5
[  39599]  ERROR - ij.components.ComponentManager - JDK: 1.8.0_60
[  39599]  ERROR - ij.components.ComponentManager - VM: OpenJDK 64-Bit Server VM
[  39599]  ERROR - ij.components.ComponentManager - Vendor: Oracle Corporation
[  39599]  ERROR - ij.components.ComponentManager - OS: Linux

Last edited by karapuz (2015-10-14 09:03:35)

Offline

#5 2015-10-14 09:32:33

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Suddenly two Java IDEs broke and one did not

Offline

#6 2015-10-14 09:50:09

karapuz
Member
Registered: 2015-10-14
Posts: 10

Re: Suddenly two Java IDEs broke and one did not

Chazza

Thanks, but it looks like this bug is in oracle jdk and intellij crashes. While openjdk is not.

Offline

#7 2015-10-14 10:01:39

karapuz
Member
Registered: 2015-10-14
Posts: 10

Re: Suddenly two Java IDEs broke and one did not

By the way, netbeans doesn't write anything to terminal, but hangs without redrawing all the same.

Here is ps axu (2 processes)

user        1877  0.0  0.0  14964  3500 pts/2    S+   16:59   0:00 /bin/bash /usr/share/netbeans/platform/lib/nbexec --userdir /home/mirror/go//.netbeans/8.0.2 --cachedir /home/mirror/go//.cache/netbeans/8.0.2 --jdkhome  --branding nb --clusters /usr/share/netbeans/nb:/usr/share/netbeans/ergonomics:/usr/share/netbeans/ide:/usr/share/netbeans/extide:/usr/share/netbeans/java:/usr/share/netbeans/apisupport:/usr/share/netbeans/webcommon:/usr/share/netbeans/websvccommon:/usr/share/netbeans/enterprise:/usr/share/netbeans/mobility:/usr/share/netbeans/profiler:/usr/share/netbeans/python:/usr/share/netbeans/php:/usr/share/netbeans/identity:/usr/share/netbeans/harness:/usr/share/netbeans/cnd:/usr/share/netbeans/dlight:/usr/share/netbeans/groovy:/usr/share/netbeans/extra:/usr/share/netbeans/javacard:/usr/share/netbeans/javafx: -J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade -J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense -L-XX:MaxPermSize=384m -J-Xmx1024m -J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true

user        2147 15.6  1.1 5518172 391568 pts/2  Sl+  16:59   0:25 /usr/lib/jvm/default/bin/java -Djdk.home=/usr/lib/jvm/default -classpath /usr/share/netbeans/platform/lib/boot.jar:/usr/share/netbeans/platform/lib/org-openide-modules.jar:/usr/share/netbeans/platform/lib/org-openide-util.jar:/usr/share/netbeans/platform/lib/org-openide-util-lookup.jar:/usr/share/netbeans/platform/lib/locale/boot_ja.jar:/usr/share/netbeans/platform/lib/locale/boot_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/boot_ru.jar:/usr/share/netbeans/platform/lib/locale/boot_zh_CN.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_ja.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_ru.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_zh_CN.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_ja.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_ja.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_ru.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_ru.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_zh_CN.jar:/usr/lib/jvm/default/lib/dt.jar:/usr/lib/jvm/default/lib/tools.jar -Dnetbeans.default_userdir_root=/home/mirror/go//.netbeans -Dnetbeans.dirs=/usr/share/netbeans/nb:/usr/share/netbeans/ergonomics:/usr/share/netbeans/ide:/usr/share/netbeans/extide:/usr/share/netbeans/java:/usr/share/netbeans/apisupport:/usr/share/netbeans/webcommon:/usr/share/netbeans/websvccommon:/usr/share/netbeans/enterprise:/usr/share/netbeans/mobility:/usr/share/netbeans/profiler:/usr/share/netbeans/python:/usr/share/netbeans/php:/usr/share/netbeans/identity:/usr/share/netbeans/harness:/usr/share/netbeans/cnd:/usr/share/netbeans/dlight:/usr/share/netbeans/groovy:/usr/share/netbeans/extra:/usr/share/netbeans/javacard:/usr/share/netbeans/javafx: -Dnetbeans.home=/usr/share/netbeans/platform -Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade -Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense -Xmx1024m -client -Xss2m -Xms32m -XX:PermSize=32m -Dapple.laf.useScreenMenuBar=true -Dapple.awt.graphics.UseQuartz=true -Dsun.java2d.noddraw=true -Dsun.java2d.dpiaware=true -Dsun.zip.disableMemoryMapping=true -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/mirror/go//.netbeans/8.0.2/var/log/heapdump.hprof org.netbeans.Main --cachedir /home/mirror/go//.cache/netbeans/8.0.2 --userdir /home/mirror/go//.netbeans/8.0.2 --branding nb
root      2208  0.0  0.0  11948  2464 pts/1    S+   17:01   0:00 grep netbeans

Last edited by karapuz (2015-10-14 10:02:29)

Offline

#8 2015-10-15 02:11:01

karapuz
Member
Registered: 2015-10-14
Posts: 10

Re: Suddenly two Java IDEs broke and one did not

That's ridiculous! Used Arch Rollback Machine to leap to 2015-09-20 and the problem still persists with both idea and netbeans. How could this be possible?
My problems started last friday/thursday.

Offline

#9 2015-10-15 05:50:22

doesitmatter
Member
Registered: 2015-10-15
Posts: 1

Re: Suddenly two Java IDEs broke and one did not

Hi,

I have the same issue with both Oracle JDKs 7 and 8 from AUR.

However, putting
> export LD_PRELOAD=/lib/libglib-2.0.so
before starting IDEA works for me as a workaround.

Offline

#10 2015-10-15 06:56:43

karapuz
Member
Registered: 2015-10-14
Posts: 10

Re: Suddenly two Java IDEs broke and one did not

If I use Oracle JDK on development PC, should I install it on production server (where my apps go)?
If yes, it is not desirable, as can break many other things sad

Tried
export LD_PRELOAD=/lib/libglib-2.0.so
it doesn't change anything for openJDK.

Also, when I Rolled Back Arch to 2015-09-20, glib2 downgraded to 2.44. And it didn't help either.

For now I installed CentOS7 in qemu, Idea works fine, of course. But it is not a good solution sad glib2 there is quite rotten 2.40.

As I see, glib2 was 2.40 in Arch in the beginning of 2014. I'm afraid to rollback so much. Especially, because my problems started only 6 days ago %(

Offline

#11 2015-10-15 08:46:50

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Suddenly two Java IDEs broke and one did not

Did you actually try upgrading to the glib2 in testing as per the bug report? I know the people in the bug report were having problems with Oracle Java not OpenJDK but I don't see why you wouldn't at least try the solution there.

Offline

#12 2015-10-15 09:29:54

karapuz
Member
Registered: 2015-10-14
Posts: 10

Re: Suddenly two Java IDEs broke and one did not

Right now Arch has
glib2-2.46.0-2
and problem persists. In aur I do not see newer versions.

Today I tried to rollback to 2015-09-01 - to glib2-2.44 and idea 8.1.4
Made a reboot, of course, but nothing changed sad

Yesterday I rolledback to glib2.45 and  glib2.46-1 it didn't help.

Last edited by karapuz (2015-10-15 09:30:38)

Offline

#13 2015-10-15 09:43:10

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Suddenly two Java IDEs broke and one did not

karapuz wrote:

Right now Arch has
glib2-2.46.0-2
and problem persists. In aur I do not see newer versions.

As was explained in the bug report, what you need is glib2-2.46.0-3 or higher. I also wasn't talking about the AUR. I was talking about the package in Testing. Give this a try: https://www.archlinux.org/packages/test … _64/glib2/

Offline

#14 2015-10-15 10:27:43

karapuz
Member
Registered: 2015-10-14
Posts: 10

Re: Suddenly two Java IDEs broke and one did not

Updated to glib2 2.46.1-1
reboot
del ~/.IdeaIC14 and IdeaProjects

idea starts, but endlessly "index files" at first start or "loading files to index" if .IdeaIC14 is not empty.
If I switch to another application and back, it stays just a border of a window. So, nothing changed sad


p.s. hdds are in mirror (200-300MBps throughput) and iotop shows no activity. So, I doubt that it really indexes couple of megabytes for half an hour.

Last edited by karapuz (2015-10-15 10:33:46)

Offline

#15 2015-11-27 06:45:18

asutton
Member
Registered: 2014-05-08
Posts: 4

Re: Suddenly two Java IDEs broke and one did not

This was resolved for me by installing glib2 2.46.2-2 and removing the system folder found in ~/.IntellijIdeaXX. Removing this folder while on glib2 2.46.1-1 did not work and the freezing described above was experienced.

Update: Looks like I spoke too soon. While intellij will now open, it freezes the entire computer within a few minutes of use.

Last edited by asutton (2015-11-27 18:05:51)

Offline

#16 2015-11-28 13:08:10

karapuz
Member
Registered: 2015-10-14
Posts: 10

Re: Suddenly two Java IDEs broke and one did not

For me, everything resolved automagically when openjdk 8.65 was released (and installed, of course).
Strange, because things broke NOT after update from previous jdk to 8.60.

Another strange thing is - on my home PC nothing broke at all.

Offline

#17 2015-11-29 02:01:25

tyrannis
Member
Registered: 2015-11-06
Posts: 94

Re: Suddenly two Java IDEs broke and one did not

If everything is working now please edit your original post and add [SOLVED] to the beginning of the title.

Offline

#18 2015-11-30 02:44:27

karapuz
Member
Registered: 2015-10-14
Posts: 10

Re: Suddenly two Java IDEs broke and one did not

Current situation is ridiculous: everything worked for about a month (with several reboots) with jdk 8.65.

When 8.66 was released, both Netbean and Idea broke. Couple of reboots fixed situation.
Today it broke completely. Reboots do not help. Rollback to yesterday, doesn't help.
Now tried even 2015/11/17 (to jdk 8.65) - no help.

Both IDEs hang at start sad Any other software is working flawlessly, as well as hardware.

Last edited by karapuz (2015-11-30 09:40:53)

Offline

#19 2015-11-30 23:40:34

tyrannis
Member
Registered: 2015-11-06
Posts: 94

Re: Suddenly two Java IDEs broke and one did not

I'm sorry, I misunderstood your post and thought you had solved the problem.

Which jdk are you using: openjdk (in extra repository)  or Oracle (from aur)?

Last edited by tyrannis (2015-11-30 23:42:45)

Offline

Board footer

Powered by FluxBB