Closed LouisLecouturier closed 1 year ago
Thanks, I'll look into it
@LouisLecouturier was this a one-time thing or can you consistently reproduce it?
This started happening for me after the release of 2023.02, before it worked without issues. Also, this is happening every time we use the generate command in WebStorm, not just one-time thingy
okay thanks for confirming :) I will see what's up there.
@petarblazevski can you also post some details on your environment?
I would really appreciate it if you could post your idea.log
after reproducing the bug. It might contain valuable info for me.
Here's how you can find the file, even after a crash: https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files
@LouisLecouturier would be great if you could send your idea.log
too.
Thank you!! 🙏
Sorry @MaxKless it took me a little longer to reply. I just did another round of testing, and for me it works now 😕
Maybe there was a patch released for WebStorm in the meantime. However, I just tested with my project and a fresh NX project, working as expected
This is still happening to me using webstorm 2023.2 and latest nx console plugin update. It is consistent and happens every time i try and use nx generate (UI), it just crashes.
I don't seem to get anything inside idea.log
since it doesn't seem to log anything right at the crash
I get this error when exporting logs (java_error_in_webstorm_74399.log shortened a little):
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000000000, pid=74399, tid=98051
#
# JRE version: OpenJDK Runtime Environment JBR-17.0.7+7-1000.6-jcef (17.0.7+7) (build 17.0.7+7-b1000.6)
# Java VM: OpenJDK 64-Bit Server VM JBR-17.0.7+7-1000.6-jcef (17.0.7+7-b1000.6, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# C 0x0000000000000000
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# https://youtrack.jetbrains.com/issues/JBR
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- S U M M A R Y ------------
Command Line: -XX:ErrorFile=/Users/poulhansen/java_error_in_webstorm_%p.log -XX:HeapDumpPath=/Users/poulhansen/java_error_in_webstorm.hprof -Xms128m -Xmx2048m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:CICompilerCount=2 -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -XX:+IgnoreUnrecognizedVMOptions -XX:CompileCommand=exclude,com/intellij/openapi/vfs/impl/FilePartNodeRoot,trieDescend -ea -Dsun.io.useCanonCaches=false -Dsun.java2d.metal=true -Djbr.catch.SIGABRT=true -Djdk.http.auth.tunneling.disabledSchemes="" -Djdk.attach.allowAttachSelf=true -Djdk.module.illegalAccess.silent=true -Dkotlinx.coroutines.debug=off -Dapple.awt.application.appearance=system -Djb.vmOptionsFile=/Users/poulhansen/Library/Application Support/JetBrains/WebStorm2023.2/webstorm.vmoptions --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.ref=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.base/jdk.internal.vm=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/sun.nio.fs=ALL-UNNAMED --add-opens=java.base/sun.security.ssl=ALL-UNNAMED --add-opens=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/sun.net.dns=ALL-UNNAMED --add-opens=java.desktop/com.apple.eawt=ALL-UNNAMED --add-opens=java.desktop/com.apple.eawt.event=ALL-UNNAMED --add-opens=java.desktop/com.apple.laf=ALL-UNNAMED --add-opens=java.desktop/java.awt=ALL-UNNAMED --add-opens=java.desktop/java.awt.dnd.peer=ALL-UNNAMED --add-opens=java.desktop/java.awt.event=ALL-UNNAMED --add-opens=java.desktop/java.awt.image=ALL-UNNAMED --add-opens=java.desktop/java.awt.peer=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED --add-opens=java.desktop/javax.swing=ALL-UNNAMED --add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED --add-opens=java.desktop/sun.awt.datatransfer=ALL-UNNAMED --add-opens=java.desktop/sun.awt.image=ALL-UNNAMED --add-opens=java.desktop/sun.awt=ALL-UNNAMED --add-opens=java.desktop/sun.font=ALL-UNNAMED --add-opens=java.desktop/sun.java2d=ALL-UNNAMED --add-opens=java.desktop/sun.lwawt=ALL-UNNAMED --add-opens=java.desktop/sun.lwawt.macosx=ALL-UNNAMED --add-opens=java.desktop/sun.swing=ALL-UNNAMED --add-opens=java.desktop/com.sun.java.swing=ALL-UNNAMED --add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED --add-opens=jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED -Djava.system.class.loader=com.intellij.util.lang.PathClassLoader -Djna.nosys=true -Dpty4j.preferred.native.folder=/Applications/WebStorm.app/Contents/lib/pty4j -Djna.boot.library.path=/Applications/WebStorm.app/Contents/lib/jna/aarch64 -Daether.connector.resumeDownloads=false -Djna.noclasspath=true -Didea.executable=webstorm -Dsplash=true -Didea.platform.prefix=WebStorm -Didea.home.path=/Applications/WebStorm.app/Contents -Didea.paths.selector=WebStorm2023.2 -Didea.vendor.name=JetBrains
Host: "MacBookPro18,3" arm64, 10 cores, 16G, Darwin 22.5.0, macOS 13.4.1 (22F82)
Time: Fri Aug 4 08:55:02 2023 CEST elapsed time: 381.368933 seconds (0d 0h 6m 21s)
--------------- T H R E A D ---------------
Current thread (0x0000000144829a00): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=98051, stack(0x00000002f4234000,0x00000002f4437000)]
Stack: [0x00000002f4234000,0x00000002f4437000], sp=0x00000002f44347a0, free space=2049k
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.cef.CefApp.N_RegisterSchemeHandlerFactory(Ljava/lang/String;Ljava/lang/String;Lorg/cef/callback/CefSchemeHandlerFactory;)Z+0 jcef
j org.cef.CefApp.registerSchemeHandlerFactory(Ljava/lang/String;Ljava/lang/String;Lorg/cef/callback/CefSchemeHandlerFactory;)Z+4 jcef
j dev.nx.console.generate.ui.V2NxGenerateUiFile.registerAppSchemeHandler()V+20
j dev.nx.console.generate.ui.V2NxGenerateUiFile.createMainComponent(Lcom/intellij/openapi/project/Project;)Ljavax/swing/JComponent;+37
j dev.nx.console.generate.ui.NxGenerateUiFileEditor.<init>(Lcom/intellij/openapi/project/Project;Ldev/nx/console/generate/ui/NxGenerateUiFile;)V+35
j dev.nx.console.generate.ui.NxGenerateUiFileEditorProvider.createEditor(Lcom/intellij/openapi/project/Project;Lcom/intellij/openapi/vfs/VirtualFile;)Lcom/intellij/openapi/fileEditor/FileEditor;+21
j com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.createComposite(Lcom/intellij/openapi/vfs/VirtualFile;Ljava/util/List;)Lcom/intellij/openapi/fileEditor/impl/EditorComposite;+154
j com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$openFileInEdt$2$1.invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;+138
J 28102 c2 kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Ljava/lang/Object;)V (128 bytes) @ 0x000000011b14ce5c [0x000000011b14cd80+0x00000000000000dc]
J 35586 c2 kotlinx.coroutines.DispatchedTask.run()V (574 bytes) @ 0x000000011b632198 [0x000000011b631d40+0x0000000000000458]
j com.intellij.openapi.application.impl.DispatchedRunnable.run()V+51
J 28233 c1 com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(Ljava/lang/Runnable;)V (42 bytes) @ 0x000000010a6aa4e4 [0x000000010a6aa340+0x00000000000001a4]
J 29810 c2 com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(Ljava/lang/Runnable;)V (58 bytes) @ 0x000000011af81a78 [0x000000011af81680+0x00000000000003f8]
J 38037 c2 com.intellij.openapi.application.impl.FlushQueue.runNextEvent(Lcom/intellij/openapi/application/impl/FlushQueue$RunnableInfo;)V (599 bytes) @ 0x000000011b9582c0 [0x000000011b957f00+0x00000000000003c0]
J 38696 c2 com.intellij.openapi.application.impl.FlushQueue$$Lambda$576+0x00000003007b0dc0.run()V (8 bytes) @ 0x000000011ba42668 [0x000000011ba424c0+0x00000000000001a8]
J 29858 c2 java.awt.event.InvocationEvent.dispatch()V java.desktop (69 bytes) @ 0x000000011b0eeb5c [0x000000011b0eeb00+0x000000000000005c]
J 28853 c2 com.intellij.openapi.application.impl.ApplicationImpl.runWithoutImplicitRead(Ljava/lang/Runnable;)V (28 bytes) @ 0x000000011b1eca54 [0x000000011b1ebd40+0x0000000000000d14]
J 39388 c1 com.intellij.ide.IdeEventQueue._dispatchEvent(Ljava/awt/AWTEvent;)V (357 bytes) @ 0x000000010d92c548 [0x000000010d929380+0x00000000000031c8]
J 35055 c2 com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke()V (48 bytes) @ 0x000000011b46ba44 [0x000000011b46b4c0+0x0000000000000584]
J 26990 c2 com.intellij.ide.IdeEventQueueKt.performActivity(Ljava/awt/AWTEvent;Lkotlin/jvm/functions/Function0;)V (111 bytes) @ 0x000000011b07d434 [0x000000011b07d140+0x00000000000002f4]
J 39707 c1 com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(Lcom/intellij/ide/IdeEventQueue;Ljava/awt/AWTEvent;ZLjava/awt/AWTEvent;Lcom/intellij/diagnostic/EventWatcher;Ljava/lang/Runnable;Ljava/lang/Class;J)V (430 bytes) @ 0x000000010d128b70 [0x000000010d127b40+0x0000000000001030]
J 29810 c2 com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(Ljava/lang/Runnable;)V (58 bytes) @ 0x000000011af81738 [0x000000011af81680+0x00000000000000b8]
J 39706 c1 com.intellij.ide.IdeEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V (708 bytes) @ 0x000000010dc35fd0 [0x000000010dc32480+0x0000000000003b50]
j com.intellij.openapi.progress.impl.PlatformTaskSupportKt.pumpEventsForHierarchy(Lcom/intellij/ide/IdeEventQueue;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V+71
j com.intellij.openapi.progress.impl.PlatformTaskSupportKt.access$pumpEventsForHierarchy(Lcom/intellij/ide/IdeEventQueue;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V+3
j com.intellij.openapi.progress.impl.PlatformTaskSupport$runWithModalProgressBlockingInternal$2.invoke(Lcom/intellij/openapi/application/ModalityState;)Ljava/lang/Object;+227
j com.intellij.openapi.progress.impl.PlatformTaskSupport$runWithModalProgressBlockingInternal$2.invoke(Ljava/lang/Object;)Ljava/lang/Object;+5
j com.intellij.openapi.application.impl.ModalityKt.inModalContext(Lcom/intellij/openapi/application/impl/JobProvider;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;+34
j com.intellij.openapi.progress.impl.PlatformTaskSupport.runWithModalProgressBlockingInternal(Lkotlinx/coroutines/CoroutineScope;Lkotlinx/coroutines/CoroutineDispatcher;Lcom/intellij/openapi/progress/impl/ModalIndicatorDescriptor;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;+39
j com.intellij.openapi.progress.impl.PlatformTaskSupport.access$runWithModalProgressBlockingInternal(Lcom/intellij/openapi/progress/impl/PlatformTaskSupport;Lkotlinx/coroutines/CoroutineScope;Lkotlinx/coroutines/CoroutineDispatcher;Lcom/intellij/openapi/progress/impl/ModalIndicatorDescriptor;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;+6
j com.intellij.openapi.progress.impl.PlatformTaskSupport$runWithModalProgressBlockingInternal$1.invoke(Lkotlin/coroutines/CoroutineContext;)Ljava/lang/Object;+54
j com.intellij.openapi.progress.impl.PlatformTaskSupport$runWithModalProgressBlockingInternal$1.invoke(Ljava/lang/Object;)Ljava/lang/Object;+5
j com.intellij.openapi.progress.ContextKt.prepareThreadContext(Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;+46
j com.intellij.openapi.progress.impl.PlatformTaskSupport.runWithModalProgressBlockingInternal(Lcom/intellij/openapi/progress/ModalTaskOwner;Ljava/lang/String;Lcom/intellij/openapi/progress/TaskCancellation;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;+45
j com.intellij.openapi.progress.TasksKt.runWithModalProgressBlocking(Lcom/intellij/openapi/progress/ModalTaskOwner;Ljava/lang/String;Lcom/intellij/openapi/progress/TaskCancellation;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;+31
j com.intellij.openapi.progress.TasksKt.runWithModalProgressBlocking(Lcom/intellij/openapi/project/Project;Ljava/lang/String;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;+42
j com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFile(Lcom/intellij/openapi/vfs/VirtualFile;Lcom/intellij/openapi/fileEditor/impl/EditorWindow;Lcom/intellij/openapi/fileEditor/impl/FileEditorOpenOptions;)Lcom/intellij/openapi/fileEditor/FileEditorComposite;+369
j com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(Lcom/intellij/openapi/vfs/VirtualFile;Z)[Lcom/intellij/openapi/fileEditor/FileEditor;+26
j dev.nx.console.generate.NxGenerateService.openGenerateUi$lambda$7(Lcom/intellij/openapi/project/Project;Ldev/nx/console/models/NxGenerator;Ldev/nx/console/models/NxGeneratorContext;)V+92
j dev.nx.console.generate.NxGenerateService$$Lambda$5283+0x0000000302506578.run()V+12
J 28233 c1 com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(Ljava/lang/Runnable;)V (42 bytes) @ 0x000000010a6aa4e4 [0x000000010a6aa340+0x00000000000001a4]
J 29810 c2 com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(Ljava/lang/Runnable;)V (58 bytes) @ 0x000000011af81a78 [0x000000011af81680+0x00000000000003f8]
J 38037 c2 com.intellij.openapi.application.impl.FlushQueue.runNextEvent(Lcom/intellij/openapi/application/impl/FlushQueue$RunnableInfo;)V (599 bytes) @ 0x000000011b9582c0 [0x000000011b957f00+0x00000000000003c0]
J 38696 c2 com.intellij.openapi.application.impl.FlushQueue$$Lambda$576+0x00000003007b0dc0.run()V (8 bytes) @ 0x000000011ba42668 [0x000000011ba424c0+0x00000000000001a8]
J 29858 c2 java.awt.event.InvocationEvent.dispatch()V java.desktop (69 bytes) @ 0x000000011b0eeb5c [0x000000011b0eeb00+0x000000000000005c]
J 28853 c2 com.intellij.openapi.application.impl.ApplicationImpl.runWithoutImplicitRead(Ljava/lang/Runnable;)V (28 bytes) @ 0x000000011b1eca54 [0x000000011b1ebd40+0x0000000000000d14]
J 39388 c1 com.intellij.ide.IdeEventQueue._dispatchEvent(Ljava/awt/AWTEvent;)V (357 bytes) @ 0x000000010d92c548 [0x000000010d929380+0x00000000000031c8]
J 35055 c2 com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke()V (48 bytes) @ 0x000000011b46ba44 [0x000000011b46b4c0+0x0000000000000584]
J 26990 c2 com.intellij.ide.IdeEventQueueKt.performActivity(Ljava/awt/AWTEvent;Lkotlin/jvm/functions/Function0;)V (111 bytes) @ 0x000000011b07d314 [0x000000011b07d140+0x00000000000001d4]
J 39707 c1 com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(Lcom/intellij/ide/IdeEventQueue;Ljava/awt/AWTEvent;ZLjava/awt/AWTEvent;Lcom/intellij/diagnostic/EventWatcher;Ljava/lang/Runnable;Ljava/lang/Class;J)V (430 bytes) @ 0x000000010d128b70 [0x000000010d127b40+0x0000000000001030]
J 29810 c2 com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(Ljava/lang/Runnable;)V (58 bytes) @ 0x000000011af81738 [0x000000011af81680+0x00000000000000b8]
J 39706 c1 com.intellij.ide.IdeEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V (708 bytes) @ 0x000000010dc35fd0 [0x000000010dc32480+0x0000000000003b50]
J 39715 c1 java.awt.EventDispatchThread.pumpOneEventForFilters(I)V java.desktop (113 bytes) @ 0x000000010a764f84 [0x000000010a764780+0x0000000000000804]
j java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+35 java.desktop
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11 java.desktop
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4 java.desktop
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3 java.desktop
j java.awt.EventDispatchThread.run()V+18 java.desktop
v ~StubRoutines::call_stub
siginfo: si_signo: 11 (SIGSEGV), si_code: 2 (SEGV_ACCERR), si_addr: 0x0000000000000000
--------------- S Y S T E M ---------------
OS:
uname: Darwin 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000 arm64
OS uptime: 41 days 19:05 hours
rlimit (soft/hard): STACK 8176k/65520k , CORE 0k/infinity , NPROC 2666/4000 , NOFILE 10240/infinity , AS infinity/infinity , CPU infinity/infinity , DATA infinity/infinity , FSIZE infinity/infinity , MEMLOCK infinity/infinity , RSS infinity/infinity
load average: 3.60 4.34 3.97
CPU: total 10 (initial active 10) 0x61:0x0:0x1b588bb3:0, fp, simd, crc, lse
Memory: 16k page, physical 16777216k(63440k free), swap 4194304k(827136k free)
vm_info: OpenJDK 64-Bit Server VM (17.0.7+7-b1000.6) for bsd-aarch64 JRE (17.0.7+7-b1000.6), built on 2023-07-07 by "builduser" with clang Apple LLVM 12.0.0 (clang-1200.0.32.27)
END.
@Phhansen are you also on apple silicon? Can you also reproduce on earlier Nx Console versions?
Hi @MaxKless
I am on apple sillicon yes. Is there an easy way for me to go back to older versions? If so i'll check it.
I just got back from being away for 3 weeks and there were updates to both webstorm and the plugin. I can say, however, that it did work perfectly fine 3 weeks ago with no crashes at all.
You can download the specific version here: https://plugins.jetbrains.com/plugin/21060-nx-console/versions/stable/359708 Then you'll have to install it from disk in the plugin settings:
Would be great to further narrow it down to changes on our side or webstorms
@MaxKless I'll check it out. Thanks for the guide
@MaxKless I just tested with the version you provided and it still crashes the moment i click the Nx Generate (UI)
option in the context menu. Still nothing in the idea.log
also.
I get the same crash. When I select the generator from Nx Generator (UI) option, it just crashes the whole IDE.
I get the same crash. When I select the generator from Nx Generator (UI) option, it just crashes the whole IDE.
I am also on Mac (apple silicon). I tried reverting to older version of the plugin (1.10.0), and that didn't seem to help. But might be something related to one of the recent webstorm updates the last few weeks?
I finally got this to reproduce locally in a dev environment. I'll put in a fix asap
for context, here's the youtrack issue related to this: https://youtrack.jetbrains.com/issue/JBR-5850/jcef-browser-doesnt-show-at-all-on-2023.2-EAP-works-fine-with-2023.1.3
Current Behavior
Webstorm crash (no freeze, the app quits totally) when clicking an action like so :
Failure Logs / Images / Videos
When I reopen the app I get an issue log Stacktrace.txt :
Environment
NX Report :