You are not logged in.

#1 2023-08-18 17:07:53

JoeCool
Member
Registered: 2019-08-12
Posts: 16

PyCharm seems to have some java/embedded-chrome issues

I have not looked very far into it but it looks like the Arch package does not have a working toolwindow:
com.jetbrains.python.packaging.toolwindow.PyPackagesToolWindowFactory

Using:
Name            : pycharm-community-edition
Version         : 2023.1.3-1

I get the following errors:

2023-08-18 17:29:36,503 [   1788]   WARN - #c.i.u.j.JBCefApp - JCefAppConfig.class is not from a JBR module, url: jar:file:/usr/share/pycharm/lib/app.jar!/com/jetbrains/cef/JCefAppConfig.class (Use JBR bundled with the IDE)
2023-08-18 17:29:36,767 [   2052] SEVERE - #c.i.o.w.i.ToolWindowManagerImpl - Cannot init toolwindow com.jetbrains.python.packaging.toolwindow.PyPackagesToolWindowFactory@7e3fca37 [Plugin: PythonCore]
com.intellij.diagnostic.PluginException: Cannot init toolwindow com.jetbrains.python.packaging.toolwindow.PyPackagesToolWindowFactory@7e3fca37 [Plugin: PythonCore]
        at com.intellij.toolWindow.ToolWindowSetInitializerKt.registerToolWindows(ToolWindowSetInitializer.kt:188)
        at com.intellij.toolWindow.ToolWindowSetInitializerKt.access$registerToolWindows(ToolWindowSetInitializer.kt:1)
        at com.intellij.toolWindow.ToolWindowSetInitializer$createAndLayoutToolWindows$entries$1.invokeSuspend(ToolWindowSetInitializer.kt:125)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:194)
        at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
        at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:456)
        at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:79)
        at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:122)
        at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:41)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
        at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:667)
        at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$7(IdeEventQueue.kt:571)
        at com.intellij.openapi.application.impl.ApplicationImpl.withoutImplicitRead(ApplicationImpl.java:1446)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:571)
        at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:68)
        at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:349)
        at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:348)
        at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
        at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:348)
        at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:343)
        at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:995)
        at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
        at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:995)
        at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$4(IdeEventQueue.kt:343)
        at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:385)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.ExceptionInInitializerError
        at com.jetbrains.python.packaging.toolwindow.PyPackagingToolWindowPanel.<init>(PyPackagingToolWindowPanel.kt:110)
        at com.jetbrains.python.packaging.toolwindow.PyPackagesToolWindowFactory.createToolWindowContent(PyPackagesToolWindowFactory.kt:14)
        at com.intellij.openapi.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:548)
        at com.intellij.openapi.wm.impl.ToolWindowImpl.scheduleContentInitializationIfNeeded$intellij_platform_ide_impl(ToolWindowImpl.kt:527)
        at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.doShowWindow(ToolWindowManagerImpl.kt:983)
        at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.showToolWindowImpl(ToolWindowManagerImpl.kt:920)
        at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.showToolWindowImpl$default(ToolWindowManagerImpl.kt:906)
        at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.registerToolWindow$intellij_platform_ide_impl(ToolWindowManagerImpl.kt:1094)
        at com.intellij.toolWindow.ToolWindowSetInitializerKt.registerToolWindows(ToolWindowSetInitializer.kt:176)
        ... 39 more
Caused by: java.lang.IllegalStateException: JCEF is not supported in this env or failed to initialize
        at com.intellij.ui.jcef.JBCefApp.getInstance(JBCefApp.java:355)
        at com.intellij.ui.jcef.JCEFHtmlPanel.<clinit>(JCEFHtmlPanel.java:17)
        ... 48 more
2023-08-18 17:29:36,770 [   2055] SEVERE - #c.i.o.w.i.ToolWindowManagerImpl - PyCharm 2023.1.3  Build #PC-231.9161.41
2023-08-18 17:29:36,770 [   2055] SEVERE - #c.i.o.w.i.ToolWindowManagerImpl - JDK: 17.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2023-08-18 17:29:36,770 [   2055] SEVERE - #c.i.o.w.i.ToolWindowManagerImpl - OS: Linux

The rest of the application seems to work fine (including the old style package manager).
I also found a report about this on the JetBrains bugtracker with an image:
https://youtrack.jetbrains.com/issue/PY … ng-to-show
someone in the comments using the Manjaro package (which might be the same as on my Arch install) reported the same problem.

Did someone have the same issue or can reproduce?

[spoiler=somewhat off topic]
Contrary to reports on the JetBrains bugtracker the Flatpak version crashes for me when opening this toolwindow:

[0818/175019.039175:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /app/pycharm/jbr/lib/chrome-sandbox is owned by root and has mode 4755.

https://github.com/flathub/com.jetbrain … issues/542
But chrome-sandbox is another can of worms.

It seems to work in a properly configured docker container.
[/spoiler]

Offline

#2 2023-08-22 11:30:23

nichts
Member
Registered: 2020-11-14
Posts: 28

Re: PyCharm seems to have some java/embedded-chrome issues

JoeCool wrote:

Did someone have the same issue or can reproduce?

Can’t reproduce for 2023.1.4, everything is fine. Might an update be a possible solution?


english is not my first language. If you find a mistake in this post, please mention it in your reply – this way I can learn.  TIA

Offline

#3 2023-08-22 12:47:20

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,569

Re: PyCharm seems to have some java/embedded-chrome issues

PyCharm might also just be reading from an outdated cache. You can try deleting ~/.cache/JetBrains/PyCharm. Just be aware though you will lose your old settings.

Offline

#4 2023-08-22 19:19:02

JoeCool
Member
Registered: 2019-08-12
Posts: 16

Re: PyCharm seems to have some java/embedded-chrome issues

It only happens when I open the new Python Package Manager (the one on the bottom dock by default).

I'll try deleting the cache tomorrow at work and report back. Good idea. Thanks.

@nichts:
I have seen that there is an AUR package with the latest version. While I don't think the new interface is an improvement I might also try that one.
It looks like each version has it's own settings directory so switching back and forth should be a breeze.

Offline

#5 2023-08-23 13:10:48

JoeCool
Member
Registered: 2019-08-12
Posts: 16

Re: PyCharm seems to have some java/embedded-chrome issues

Clearing the cache does not seem to help. But it also didn't affect my settings. (Clearing the settings as well didn't affect it either).

As soon as I open the "Python Packages"  sidebar the above message pops up and the sidebar is empty.
Today's JDK update

JDK: 17.0.8.1; VM: OpenJDK 64-Bit Server VM; Vendor: N/A

didn't seem to affect it either.

I'll try updating next or using aur/pycharm-community-jre (that one has a bundled jre instead of using the arch extra package).

Offline

#6 2024-03-25 16:46:59

bolak92
Member
Registered: 2024-03-25
Posts: 1

Re: PyCharm seems to have some java/embedded-chrome issues

For the record (might still help someone),
What solves this is changing the rights on the chrome-sandbox file as follows

chown root: root your_path/pycharm-2023.3.4/jbr/lib/chrome-sandbox
chmod 4755 your_path/pycharm-2023.3.4/jbr/lib/chrome-sandbox

Offline

Board footer

Powered by FluxBB