Can't open project on Ubuntu 16.04, "Fatal error initializing 'com.intellij.designer.palette.PaletteToolWindowManager'"

Answered

It fails with the error:

Cannot load project: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.intellij.designer.palette.PaletteToolWindowManager'

This is obviously a blocking issue.  It runs on CentOS, but we need several packages from Ubuntu so we can't use it for development.  It's frustrating that we bought over thirty licenses, and it won't even open a text file!

0
24 comments
Avatar
Permanently deleted user

"sudo find / -type f -name idea.log" returned nothing.  The console output:

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
java.lang.RuntimeException: cannot load system cursor: CopyDrop.32x32
    at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1541)
    at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1803)
    at java.awt.dnd.DragSource.load(DragSource.java:131)
    at java.awt.dnd.DragSource.<clinit>(DragSource.java:148)
    at com.intellij.designer.palette.PalettePanel.<init>(PalettePanel.java:94)
    at com.intellij.designer.palette.PaletteToolWindowManager.<init>(PaletteToolWindowManager.java:37)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
    at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220)
    at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
    at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
    at com.intellij.util.pico.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:59)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:495)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:123)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:107)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:90)
    at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:299)
    at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:230)
    at com.intellij.openapi.project.impl.ProjectManagerImpl.access$300(ProjectManagerImpl.java:67)
    at com.intellij.openapi.project.impl.ProjectManagerImpl$8.compute(ProjectManagerImpl.java:530)
    at com.intellij.openapi.project.impl.ProjectManagerImpl$8.compute(ProjectManagerImpl.java:526)
    at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:198)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
    at com.intellij.openapi.progress.impl.CoreProgressManager$8.run(CoreProgressManager.java:357)
    at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
    at com.intellij.openapi.application.impl.ApplicationImpl$14$1.run(ApplicationImpl.java:634)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)
Caused by: java.awt.AWTException: Exception: class java.lang.IllegalArgumentException Width (0) and height (0) must be non-zero occurred while creating cursor CopyDrop.32x32
    at java.awt.Cursor.getSystemCustomCursor(Cursor.java:363)
    at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1539)
    ... 39 more
[  18203]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 0

 

We had this same error with NetBeans in 2014.  We fixed it by switching from OpenJDK to the one from Oracle.  Unfortunately that's not an option for us now since we're running another commercial app that requires OpenJDK.

0

You can install Oracle JDK into some local folder and use it to run only IDEA, see https://intellij-support.jetbrains.com/hc/articles/206544879. Your other app, compiler, etc can still use OpenJDK.

0
Avatar
Permanently deleted user

Confirmed this issue is related to resolution.  On our laptops with a 768 pixel display, IDEA won't load.  On a new one we tested that is 900 pixels high, IDEA loads without this error using the same harddrive moved from the older laptop.  This is a blocking issue for running the software we paid for.  We can't afford to buy all new laptops, especially after just spending $650 times over thirty!

0

Did you try running with Oracle JDK installed just for IDEA? Does it fix the problem?

1
Avatar
Permanently deleted user

Yes, we tried that last week, and had the same exception.  The version we tested:

$ java -version
java version "1.8.0_77" Java(TM) SE Runtime Environment (build 1.8.0_77-b03) Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

Yes, we should have tested it on the laptops we have rather than only my boss's laptop, but hindsight is 20/20.

0

What window manager do you use? Could you please open a ticket with support and attach all the files from the logs folder?

0
Avatar
Permanently deleted user

Xfce since X Win was crashing with KDE when loading IDEA since we don't have that much RAM.

 

My boss has already called support several times and talked (well, more yelled) to them.  Is there an option to get actual support?  We already paid $650 per dev so I hate to pay more, but we need this bug with IDEA fixed.  I couldn't find a support option on the pricing page.  So, JetBrains sells software, but doesn't sell support?

0

You are already getting support here. There is Submit Ticket button on the top right if you'd prefer the private conversation. Technical support is available only via this ticket system or email, there is no phone support.

Support is free for all the licensed users.

0
Avatar
Permanently deleted user

We'll try again.  This is frustrating since it looks like an easy error to fix because of this:

Caused by: java.awt.AWTException: Exception: class java.lang.IllegalArgumentException Width (0) and height (0) must be non-zero occurred while creating cursor

 

A cursor obviously can't be 0x0 pixels large.

0

This looks like a Java bug and you can google several old Java and Linux window manager issues that mention the same problem. I've asked the responsible developers to look into it and we may try to add a workaround for this problem in our custom JDK.

0

By the way, what IDEA version do you use? I've been told that 2016.1 from http://www.jetbrains.com/idea/download/index.html should be free from this bug.

0
Avatar
Permanently deleted user

Hi 

Can you help me with this, please?

I have the same problem. I have been trying to install IDEA on CentOS 7 with DESKTOP MATE and java ORACLE. 

The erros is this:   

opa@localhost Downloads]$ idea
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
May 03, 2016 2:00:28 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
May 03, 2016 2:00:28 PM java.util.prefs.FileSystemPreferences$6 run
WARNING: Prefs file removed in background /home/opa/.java/.userPrefs/prefs.xml
java.lang.RuntimeException: cannot load system cursor: CopyDrop.32x32
    at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1541)
    at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1803)
    at java.awt.dnd.DragSource.load(DragSource.java:131)
    at java.awt.dnd.DragSource.<clinit>(DragSource.java:148)
    at com.intellij.ide.palette.impl.PaletteWindow.<init>(PaletteWindow.java:90)
    at com.intellij.ide.palette.impl.PaletteToolWindowManager.<init>(PaletteToolWindowManager.java:42)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
    at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220)
    at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
    at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
    at com.intellij.util.pico.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:59)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:499)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:123)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:107)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:90)
    at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:282)
    at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:231)
    at com.intellij.openapi.project.impl.ProjectManagerImpl.newProject(ProjectManagerImpl.java:186)
    at com.intellij.platform.PlatformProjectOpenProcessor.doOpenProject(PlatformProjectOpenProcessor.java:190)
    at com.intellij.platform.PlatformProjectOpenProcessor.doOpenProject(PlatformProjectOpenProcessor.java:93)
    at com.intellij.ide.actions.OpenFileAction.a(OpenFileAction.java:112)
    at com.intellij.ide.actions.OpenFileAction.access$000(OpenFileAction.java:50)
    at com.intellij.ide.actions.OpenFileAction$1.consume(OpenFileAction.java:68)
    at com.intellij.ide.actions.OpenFileAction$1.consume(OpenFileAction.java:58)
    at com.intellij.openapi.fileChooser.ex.FileChooserDialogImpl.choose(FileChooserDialogImpl.java:159)
    at com.intellij.openapi.fileChooser.FileChooser.chooseFiles(FileChooser.java:111)
    at com.intellij.openapi.fileChooser.FileChooser.chooseFiles(FileChooser.java:89)
    at com.intellij.ide.actions.OpenFileAction.actionPerformed(OpenFileAction.java:58)
    at com.intellij.ui.components.labels.ActionLink$1.linkSelected(ActionLink.java:64)
    at com.intellij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:116)
    at com.intellij.ui.components.labels.ActionLink.doClick(ActionLink.java:77)
    at com.intellij.ui.components.labels.LinkLabel$MyMouseHandler.mouseReleased(LinkLabel.java:287)
    at java.awt.Component.processMouseEvent(Component.java:6533)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
    at java.awt.Component.processEvent(Component.java:6298)
    at java.awt.Container.processEvent(Container.java:2236)
    at java.awt.Component.dispatchEventImpl(Component.java:4889)
    at java.awt.Container.dispatchEventImpl(Container.java:2294)
    at java.awt.Component.dispatchEvent(Component.java:4711)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
    at java.awt.Container.dispatchEventImpl(Container.java:2280)
    at java.awt.Window.dispatchEventImpl(Window.java:2746)
    at java.awt.Component.dispatchEvent(Component.java:4711)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    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.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:731)
    at java.awt.EventQueue$4.run(EventQueue.java:729)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at com.intellij.ide.IdeEventQueue.h(IdeEventQueue.java:857)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:654)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
    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)
Caused by: java.awt.AWTException: Exception: class java.lang.IllegalArgumentException Width (0) and height (0) must be non-zero occurred while creating cursor CopyDrop.32x32
    at java.awt.Cursor.getSystemCustomCursor(Cursor.java:363)
    at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1539)
    ... 69 more
^C[ 183414]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 130

 

Thanks

Orlando 

 

0

What IDEA version do you use?

0
Avatar
Permanently deleted user

The version is ideaIU-2016.1.1.tar.gz. I am using Proxmox on my server. And, Centos 7 as virtual machine.

 

Thanks

Orlando

0
Avatar
Permanently deleted user

Hi,

 

Any News? Thanks

Orlando

0

We are on May holidays. Developers will investigate it within a week or two. Thanks for the report.

0
Avatar
Permanently deleted user

Hi,

 

I understand the situation. However, I was hoping receiving other kind of service.

 

Anyway,when my license will be expired,   I will looking forward to you on December to receive my discount for the next year. At least, that, right?

 

Thanks!

Orlando

0

I've opened a bug at https://youtrack.jetbrains.com/issue/IDEA-155555. Please follow it for updates. See https://intellij-support.jetbrains.com/hc/articles/207241135 if you are not familiar with YouTrack.

Does it help if you run with Oracle JDK instead of the OpenJDK? See https://intellij-support.jetbrains.com/hc/articles/206544879.

0

Does it help if you disable UI Designer plug-in? Since you can't start IDEA, this can be done by creating disabled_plugins.txt file in the IDE config folder with the following contents:

com.intellij.uiDesigner

0
Avatar
Permanently deleted user

With Ubuntu 16.04 LTS the following issue prevented opening or creating project in IntelliJ IDEA:

Caused by: java.awt.AWTException: Exception: class java.lang.IllegalArgumentException Width (0) and height (0) must be non-zero occurred while creating cursor CopyDrop.32x32

Using latest OracleJDK 1.8.0_102 by setting the IDEA_JDK env variable did not solve the issue.

Issue was fixed as suggested above by disabling the com.intellij.uiDesigner plugin by editing the ~/.IdeaIC2016.2/config/disabled_plugins.txt

0
Avatar
Permanently deleted user

Have nearly the same problem with version 2017.1 on Ubuntu 16.04 with a aspire notebook (i7-4702MQ).

When i open phpstorm and it try to load last open project, loading-sequenz is running endless

without any error!?! Dont open the project-structure.

My solution (not best practice) was:

1. open phpstorm and click to the cancle - button

2. go to File->Open  and select the project folder

3. phpstorm load the project, everythinks all right now

@Serge, i read your soltution-link, i hope there will be a better way to fix this problem,

because i dont want to be affraid to update par example VirtualBox and find than that my

developer editor crashed. There are to many possibilitys with this case, that i crashed the editor

if i do a softwareupdate.

I realy like PhpStorm, it's a great editor and i hope there will be a good solution for this problem.

0

The fix is already in the bundled runtime. Check your Java version in About dialog. See https://intellij-support.jetbrains.com/hc/articles/206544879.

If your problem is different, file a new bug.

0

Please sign in to leave a comment.