PyCharm Pro startup error on Windows 11 (java.lang.OutOfMemoryError)

Here is the error log, any help is appreciated!

java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
Exception in thread "JobScheduler FJ pool 12/23" 2022-11-11 17:13:47,599 [ 1049] ERROR - llij.ide.plugins.PluginManager - java.lang.NoClassDefFoundError: Could not initialize class com.intellij.openapi.vfs.newvfs.ManagingFS$ManagingFSHolder 
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: Could not initialize class com.intellij.openapi.vfs.newvfs.ManagingFS$ManagingFSHolder
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1739)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1728)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.intellij.openapi.vfs.newvfs.ManagingFS$ManagingFSHolder
at com.intellij.openapi.vfs.newvfs.ManagingFS.getInstance(ManagingFS.java:21)
at com.intellij.openapi.vfs.PlatformVirtualFileManager.(PlatformVirtualFileManager.java:21)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:47)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:876)
at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:47)
at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:37)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60)
at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:595)
at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:569)
at com.intellij.openapi.client.ClientAwareComponentManager.getFromSelfOrCurrentSession(ClientAwareComponentManager.kt:37)
at com.intellij.openapi.client.ClientAwareComponentManager.getService(ClientAwareComponentManager.kt:22)
at com.intellij.openapi.vfs.VirtualFileManager.getInstance(VirtualFileManager.java:36)
at com.intellij.openapi.fileTypes.impl.FileTypeDetectionService.(FileTypeDetectionService.java:100)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.(FileTypeManagerImpl.java:186)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:47)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:876)
at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:47)
at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:37)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateService(ComponentManagerImpl.kt:1044)
at com.intellij.serviceContainer.ComponentManagerImpl$preloadServices$1.invoke(ComponentManagerImpl.kt:1016)
at com.intellij.serviceContainer.ComponentManagerImpl$preloadServices$1.run(ComponentManagerImpl.kt:56)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinTask.doJoin(ForkJoinTask.java:396)
at java.base/java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:853)
at com.intellij.serviceContainer.ComponentManagerImpl$preloadServices$3.run(ComponentManagerImpl.kt:1036)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
... 6 more
java.lang.OutOfMemoryError
2022-11-11 17:13:47,602 [ 1052] ERROR - llij.ide.plugins.PluginManager - PyCharm 2021.3.2 Build #PY-213.6777.50 
at java.base/jdk.internal.misc.Unsafe.allocateMemory(Unsafe.java:616)
at java.base/java.nio.DirectByteBuffer.(DirectByteBuffer.java:122)
at java.base/java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:317)
at io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:648)
at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:623)
at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:202)
at io.netty.buffer.PoolArena.tcacheAllocateSmall(PoolArena.java:172)
at io.netty.buffer.PoolArena.allocate(PoolArena.java:134)
at io.netty.buffer.PoolArena.allocate(PoolArena.java:126)
at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:395)
at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:188)
at io.netty.buffer.AbstractByteBufAllocator.ioBuffer(AbstractByteBufAllocator.java:148)
at org.jetbrains.mvstore.MVStore.(MVStore.java:447)
at org.jetbrains.mvstore.MVStore$Builder.open(MVStore.java:3937)
at com.intellij.ui.svg.SvgPrebuiltCacheManager.(SvgPrebuiltCacheManager.java:34)
at com.intellij.util.SVGLoader$SvgCache.(SVGLoader.java:70)
at com.intellij.util.SVGLoader.loadFromClassResource(SVGLoader.java:142)
at com.intellij.ui.RasterizedImageDataLoader.loadRasterized(RasterizedImageDataLoader.java:138)
at com.intellij.ui.RasterizedImageDataLoader.loadImage(RasterizedImageDataLoader.java:55)
at com.intellij.openapi.util.IconLoader$CachedImageIcon.loadImage(IconLoader.java:935)
at com.intellij.openapi.util.IconLoader$ScaledIconCache.getOrScaleIcon(IconLoader.java:1004)
at com.intellij.openapi.util.IconLoader$CachedImageIcon.getRealIcon(IconLoader.java:823)
at com.intellij.openapi.util.IconLoader$CachedImageIcon.getIconWidth(IconLoader.java:751)
at com.intellij.util.ui.AsyncProcessIcon.calcPreferredSize(AsyncProcessIcon.java:42)
at com.intellij.util.ui.AnimatedIcon.(AnimatedIcon.java:38)
at com.intellij.util.ui.AsyncProcessIcon.(AsyncProcessIcon.java:37)
at com.intellij.util.ui.AsyncProcessIcon.(AsyncProcessIcon.java:33)
at com.intellij.idea.ApplicationLoader$initApplication$2$1$2.run(ApplicationLoader.kt:100)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
2022-11-11 17:13:47,603 [ 1053] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.13; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o. 
2022-11-11 17:13:47,603 [ 1053] ERROR - llij.ide.plugins.PluginManager - OS: Windows 11 
2022-11-11 17:13:47,604 [ 1054] ERROR - llij.ide.plugins.PluginManager - Last Action: 
2022-11-11 17:13:47,618 [ 1068] ERROR - llij.ide.plugins.PluginManager - java.lang.RuntimeException: java.lang.RuntimeException: java.lang.OutOfMemoryError 
java.util.concurrent.CompletionException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.OutOfMemoryError
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1739)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1728)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool.awaitQuiescence(ForkJoinPool.java:2984)
at com.intellij.idea.StartupUtil.start(StartupUtil.java:297)
at com.intellij.idea.Main.bootstrap(Main.java:134)
at com.intellij.idea.Main.main(Main.java:82)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.OutOfMemoryError
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:600)
at java.base/java.util.concurrent.ForkJoinTask.getException(ForkJoinTask.java:933)
at java.base/java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:854)
at com.intellij.serviceContainer.ComponentManagerImpl$preloadServices$2.run(ComponentManagerImpl.kt:1031)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
... 6 more
Caused by: java.lang.RuntimeException: java.lang.OutOfMemoryError
at com.intellij.openapi.vfs.newvfs.persistent.FSRecords.writeAndHandleErrors(FSRecords.java:267)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSConnector.connect(PersistentFSConnector.java:27)
at com.intellij.openapi.vfs.newvfs.persistent.FSRecords.connect(FSRecords.java:136)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.(PersistentFSImpl.java:101)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:47)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:876)
at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:47)
at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:37)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateService(ComponentManagerImpl.kt:1044)
at com.intellij.serviceContainer.ComponentManagerImpl$preloadServices$1.invoke(ComponentManagerImpl.kt:1016)
at com.intellij.serviceContainer.ComponentManagerImpl$preloadServices$1.run(ComponentManagerImpl.kt:56)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.OutOfMemoryError
at java.base/jdk.internal.misc.Unsafe.allocateMemory(Unsafe.java:616)
at java.base/java.nio.DirectByteBuffer.(DirectByteBuffer.java:122)
at java.base/java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:317)
at com.intellij.util.io.DirectBufferWrapper.create(DirectBufferWrapper.java:122)
at com.intellij.util.io.DirectBufferWrapper.lambda$new$0(DirectBufferWrapper.java:30)
at com.intellij.util.io.DirectByteBufferAllocator.allocate(DirectByteBufferAllocator.java:44)
at com.intellij.util.io.DirectBufferWrapper.(DirectBufferWrapper.java:30)
at com.intellij.util.io.DirectBufferWrapper.readWriteDirect(DirectBufferWrapper.java:173)
at com.intellij.util.io.FilePageCache.createValue(FilePageCache.java:229)
at com.intellij.util.io.FilePageCache.get(FilePageCache.java:155)
at com.intellij.util.io.PagedFileStorage.getBufferWrapper(PagedFileStorage.java:356)
at com.intellij.util.io.PagedFileStorage.getReadOnlyBuffer(PagedFileStorage.java:335)
at com.intellij.util.io.PagedFileStorage.getInt(PagedFileStorage.java:150)
at com.intellij.util.io.ResizeableMappedFile.getInt(ResizeableMappedFile.java:205)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSRecordsStorage.lambda$getVersion$4(PersistentFSRecordsStorage.java:92)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSRecordsStorage.read(PersistentFSRecordsStorage.java:38)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSRecordsStorage.getVersion(PersistentFSRecordsStorage.java:91)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSConnector.getVersion(PersistentFSConnector.java:216)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSConnector.tryInit(PersistentFSConnector.java:126)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSConnector.init(PersistentFSConnector.java:35)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSConnector.lambda$connect$0(PersistentFSConnector.java:28)
at com.intellij.openapi.vfs.newvfs.persistent.FSRecords.writeAndHandleErrors(FSRecords.java:263)
... 23 more
2022-11-11 17:13:47,621 [ 1071] ERROR - llij.ide.plugins.PluginManager - PyCharm 2021.3.2 Build #PY-213.6777.50 
2022-11-11 17:13:47,621 [ 1071] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.13; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o. 
2022-11-11 17:13:47,621 [ 1071] ERROR - llij.ide.plugins.PluginManager - OS: Windows 11 
2022-11-11 17:13:47,622 [ 1072] ERROR - llij.ide.plugins.PluginManager - Last Action: 
java.lang.OutOfMemoryError

2 comments
Comment actions Permalink

here's another error message when I tried to launch the program again:

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000000002a600000, 65536, 0) failed; error='The paging file is too small for this operation to complete' (DOS error/errno=1455)

0
Comment actions Permalink

Hello,

According to the log snippet you provided, the version of PyCharm is a little bit outdated. Please try reinstalling the new version directly from the website: https://www.jetbrains.com/pycharm/download/ or by using the Toolbox app: https://www.jetbrains.com/toolbox-app/

0

Please sign in to leave a comment.