CodeGPT
CodeGPT copied to clipboard
Exception while autocomplete that terminates IntelliJ IDEA
What happened?
Relevant log output or stack trace
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (os_windows_x86.cpp:144), pid=37004, tid=23660
# guarantee(result == EXCEPTION_CONTINUE_EXECUTION) failed: Unexpected result from topLevelExceptionFilter
#
# JRE version: OpenJDK Runtime Environment JBR-21.0.8+1-1038.71-jcef (21.0.8+1) (build 21.0.8+1-b1038.71)
# Java VM: OpenJDK 64-Bit Server VM JBR-21.0.8+1-1038.71-jcef (21.0.8+1-b1038.71, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# 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: abort vfprintf -XX:ErrorFile=C:\Users\ASUS\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\ASUS\java_error_in_idea.hprof -Xms128m -Xmx2048m -XX:JbrShrinkingGcMaxHeapFreeRatio=40 -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -XX:CICompilerCount=2 -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions -XX:TieredOldPercentage=100000 -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 -Djdk.nio.maxCachedBufferSize=2097152 -Djava.util.zip.use.nio.for.zip.file.access=true -Dkotlinx.coroutines.debug=off -Djava.nio.file.spi.DefaultFileSystemProvider=com.intellij.platform.core.nio.fs.MultiRoutingFileSystemProvider -Didea.kotlin.plugin.use.k2=true -Xmx2048m -Dide.managed.by.toolbox=C:\Users\ASUS\AppData\Local\JetBrains\Toolbox\bin\jetbrains-toolbox.exe -Dtoolbox.notification.token=ce675Dtoolbox.notification.portFile=C:\Users\ASUS\AppData\Local\JetBrains\Toolbox\cache\ports\389d6b89-0bdb-468d-936c-c53941758ced.port -Djb.vmOptionsFile=C:\Users\ASUS\AppData\Roaming\JetBrains\IntelliJIdea2025.2\idea64.exe.vmoptions -Xbootclasspath/a:C:\Users\ASUS\AppData\Local\Programs\IntelliJ IDEA Ultimate\lib\nio-fs.jar -Djava.system.class.loader=com.intellij.util.lang.PathClassLoader -Didea.vendor.name=JetBrains -Didea.paths.selector=IntelliJIdea2025.2 -Djna.boot.library.path=C:\Users\ASUS\AppData\Local\Programs\IntelliJ IDEA Ultimate/lib/jna/amd64 -Djna.nosys=true -Djna.noclasspath=true -Dpty4j.preferred.native.folder=C:\Users\ASUS\AppData\Local\Programs\IntelliJ IDEA Ultimate/lib/pty4j -Dio.netty.allocator.type=pooled -Dintellij.platform.runtime.repository.path=C:\Users\ASUS\AppData\Local\Programs\IntelliJ IDEA Ultimate/modules/module-descriptors.dat -Dwsl.use.remote.agent.for.nio.filesystem=true -Djava.nio.file.spi.DefaultFileSystemProvider=com.intellij.platform.core.nio.fs.MultiRoutingFileSystemProvider -Dsplash=true -Daether.connector.resumeDownloads=false -Dcompose.swing.render.on.graphics=true --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/java.util.concurrent.locks=ALL-UNNAMED --add-opens=java.base/jdk.internal.vm=ALL-UNNAMED --add-opens=java.base/sun.net.dns=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.desktop/com.sun.java.swing=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.font=ALL-UNNAMED --add-opens=java.desktop/java.awt.image=ALL-UNNAMED --add-opens=java.desktop/java.awt.peer=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=ALL-UNNAMED --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED --add-opens=java.desktop/javax.swing.text.html.parser=ALL-UNNAMED --add-opens=java.desktop/sun.awt=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.windows=ALL-UNNAMED --add-opens=java.desktop/sun.font=ALL-UNNAMED --add-opens=java.desktop/sun.java2d=ALL-UNNAMED --add-opens=java.desktop/sun.swing=ALL-UNNAMED --add-opens=java.management/sun.management=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 -Dide.native.launcher=true -Djcef.sandbox.ptr=00000207C8C99170 -Djcef.sandbox.cefVersion=122.1.9+gd14e051+chromium-122.0.6261.94 com.intellij.idea.Main
Host: AMD Ryzen 9 5900HX with Radeon Graphics , 16 cores, 63G, Windows 11 , 64 bit Build 26100 (10.0.26100.5074)
Time: Fri Oct 3 15:04:44 2025 Jerusalem Daylight Time elapsed time: 483.303714 seconds (0d 0h 8m 3s)
--------------- T H R E A D ---------------
Current thread (0x000002082b54fcd0): JavaThread "OkHttp https://api.openai.com/..." [_thread_in_native, id=23660, stack(0x0000005dbdc00000,0x0000005dbdd00000) (1024K)]
Stack: [0x0000005dbdc00000,0x0000005dbdd00000]
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x6ebeb9]
V [jvm.dll+0x8cbec3]
V [jvm.dll+0x8ce47e]
V [jvm.dll+0x8ceb17]
V [jvm.dll+0x28ad77]
V [jvm.dll+0x6eb993]
C [ntdll.dll+0x16796f]
C [ntdll.dll+0x76397]
C [ntdll.dll+0x1672ae]
C [KERNELBASE.dll+0x11db42]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.treesitter.TSParser.ts_parser_parse_string(JJLjava/lang/String;)J+0
j org.treesitter.TSParser.parseString(Lorg/treesitter/TSTree;Ljava/lang/String;)Lorg/treesitter/TSTree;+19
j ee.carlrobert.codegpt.treesitter.CodeCompletionParser.parse(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+31
j ee.carlrobert.codegpt.codecompletions.CodeCompletionEventListener.parseOutput(Ljava/lang/String;)Ljava/lang/String;+95
j ee.carlrobert.codegpt.codecompletions.CodeCompletionEventListener.onComplete(Ljava/lang/StringBuilder;)V+157
j ee.carlrobert.llm.completion.CompletionEventSourceListener.onClosed(Lokhttp3/sse/EventSource;)V+18
j okhttp3.internal.sse.RealEventSource.processResponse(Lokhttp3/Response;)V+232
j okhttp3.internal.sse.RealEventSource.onResponse(Lokhttp3/Call;Lokhttp3/Response;)V+14
j okhttp3.internal.connection.RealCall$AsyncCall.run()V+85
j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+92 [email protected]
j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 [email protected]
j java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 [email protected]
j java.lang.Thread.run()V+19 [email protected]
v ~StubRoutines::call_stub 0x00000207df1e100d
com.intellij.diagnostic.JBRCrash
Steps to reproduce
Using my OpenAI key.
Just typing inside .md file. Even just going to a new line, seeing the suggesting ghost text, and then the error appears.
Models used:
CodeGPT version
3.6.0-241.1
Operating System
Windows
Ouch, this is a segmentation fault coming from the tree-sitter library that is used to post-process the autocompletion response.
As a temporary workaround, you can toggle it off from here: