IntelliJ IDEA 2025.3 freezes on typing in sql file
This AI summary of 2 threaddumps, I can provide as a file if required.
Based on the provided thread dumps (threadDump-20251219-110035... and threadDump-20251219-110457...), your IntelliJ IDEA is freezing when editing an SQL file, and the dumps reveal several key symptoms and likely culprits:
🔍 Root Cause Indicators
1. Heavy activity around SQL file editors
Multiple coroutines and threads are tied to SQL files:
EditorComposite(file=.../Query_51.sql)EditorComposite(file=.../debug_json_lane_events.sql)AsyncEditorLoader(file=Query_51.sql)
These indicate that editor loading and rendering for SQL files is active, but many associated coroutines are suspended and waiting on shared infrastructure.
2. Repeated use of FloatingCodeToolbarEditorCustomizer
Stack traces repeatedly show:
at com.intellij.ui.codeFloatingToolbar.FloatingCodeToolbarEditorCustomizer.execute(FloatingCodeToolbarEditorCustomizer.kt:28)
at com.intellij.openapi.fileEditor.impl.text.TextEditorImpl$2$1.invokeSuspend(TextEditorImpl.kt:102)
This suggests that every editor interaction (like typing) is triggering the floating toolbar logic—which may be blocking or slow due to heavy computation or synchronization.
✅ Known issue: In recent IntelliJ builds (especially 2024.3+ and EAPs like 2025.3), the Floating Code Toolbar has caused performance issues in large or complex files (including SQL).
3. Exodus database / JobProcessor contention
Many threads are stuck waiting on:
at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.waitForJobs(...)
at java.util.concurrent.Semaphore.acquire(...)
This implies background database operations (possibly from Database Tools, AI features, or indexing) are blocking the UI because they’re not yielding properly or are overloaded.
4. AI/LLM-related coroutines are active and suspended
You have many coroutines from:
com.intellij.ml.llm.nextEdits...Inline Edit Request ExecutorAIAssistantUpdateChecker
These are part of GitHub Copilot / AI Assistant integrations. If they’re slow or waiting on network/LLM responses, they can block editor responsiveness, especially if hooked into keystroke events.
5. No EDT (Event Dispatch Thread) stack visible – but “EDT freeze detector” is active
The EDT is likely blocked indirectly—not by direct long-running code on EDT, but by synchronized state or lock contention from background systems (e.g., PSI tree updates, highlighters, or toolbar rendering).
请先登录再写评论。
Upload id: 2025_12_29_XUrWKu8nun4pXfnLTzjuKC (file: threadDump-20251229-110050-1766995250153.txt)
Re-tested on IntelliJ IDEA 2025.3.1
Upload id: 2025_12_31_XCseFNdRgaxr45X53jrVch (file: idea.log)
Thank you for the logs. it seems the UI freezes are primarily triggered by the Floating Code Toolbar interacting with heavy SQL files and AI plugin activity. Could you try disabling the Floating Toolbar: In the Settings menu, search for "Hide floating toolbar for code editing" and check "Hide floating toolbar".
Please let me know if the responsiveness improves after either of these changes to further investigate.
Floating Toolbar doesn't solve an issue.
Regarding “big” SQL file:
It's just 250-lines file consisting of just a few queries, but each has “quite big” multi-lie SQL-like “--” comment sections (for DEBUG).
Imagine a quite big JSON, but each line is prefixed with “--”.
P.S. When I remove SQL comment sections freezes on typing disappear. Seems like AI is trying to analyze/parse this unstructured comment sections
https://www.jetbrains.com/help/datagrip/performance-issues-high-cpu-usage.html
We'll wrap it up and file an issue on our tracker
Reproduced on Idea 2025.3.2
Upload id: 2026_01_25_QpkeMiNVL8EJNw3qEKCfp9 (file: IU-253.30387.90_a1_25.01.2026_17.29.01.zip)
We have reported this issue on our tracker. To stay updated on the status, please follow the issue below:
DBE-25286 (https://youtrack.jetbrains.com/issue/DBE-25286) UI lagging when single-line comments are inspected