Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.jediterm.terminal.model.TerminalTextBuffer.lock freezes UI thread for 65seconds #281

Open
ViugiNick opened this issue May 14, 2024 · 2 comments

Comments

@ViugiNick
Copy link

[email protected]/javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source) [54900ms]
[email protected]/javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source) [54900ms]
[email protected]/javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) [54900ms]
[email protected]/javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) [54900ms]
[email protected]/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [54900ms]
[email protected]/java.security.AccessController.doPrivileged(Unknown Source) [54900ms]
[email protected]/java.security.AccessController.executePrivileged(Unknown Source) [54900ms]
[email protected]/javax.swing.RepaintManager$4.run(Unknown Source) [54900ms]
[email protected]/javax.swing.RepaintManager$4.run(Unknown Source) [54900ms]
[email protected]/javax.swing.JComponent.paintImmediately(Unknown Source) [54900ms]
[email protected]/javax.swing.JComponent._paintImmediately(Unknown Source) [54900ms]
[email protected]/javax.swing.RepaintManager.paint(Unknown Source) [54900ms]
[email protected]/javax.swing.BufferStrategyPaintManager.paint(Unknown Source) [54900ms]
[email protected]/javax.swing.JComponent.paintToOffscreen(Unknown Source) [54900ms]
[email protected]/javax.swing.JComponent.paint(Unknown Source) [54900ms]
[email protected]/javax.swing.JComponent.paintChildren(Unknown Source) [54900ms]
[email protected]/javax.swing.JLayeredPane.paint(Unknown Source) [54900ms]
[email protected]/javax.swing.JComponent.paint(Unknown Source) [54900ms]
[email protected]/javax.swing.JComponent.paintChildren(Unknown Source) [54900ms]
[email protected]/javax.swing.JComponent.paint(Unknown Source) [54900ms]
com.jediterm.terminal.ui.TerminalPanel.paintComponent(TerminalPanel.java:784) [54900ms]
com.jediterm.terminal.model.TerminalTextBuffer.lock(TerminalTextBuffer.java:317) [54900ms]
[email protected]/java.util.concurrent.locks.ReentrantLock.lock(Unknown Source) [54900ms]
[email protected]/java.util.concurrent.locks.ReentrantLock$Sync.lock(Unknown Source) [54900ms]
[email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source) [54900ms]
[email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source) [54900ms]
[email protected]/java.util.concurrent.locks.LockSupport.park(Unknown Source) [54900ms]
[email protected]/jdk.internal.misc.Unsafe.park(Native Method) [54900ms]
@segrey
Copy link
Contributor

segrey commented May 14, 2024

Could you please capture a CPU snapshot? It will clearly identify the problem.

@ViugiNick
Copy link
Author

Hello Sergey, that's a snapshot from an Android Studio UI freeze report, so unfortuately I can't capture a CPU snapshot but I can share the state of the other threads:

(for a slightly different UI thread freeze):

com.intellij.openapi.command.impl.UndoManagerImpl.getCurrentState(UndoManagerImpl.java:345) [55100ms]
com.intellij.openapi.fileEditor.impl.FocusBasedCurrentEditorProvider.getCurrentEditor(FocusBasedCurrentEditorProvider.java:16) [55100ms]
com.intellij.ide.impl.DataManagerImpl.getDataContext(DataManagerImpl.java:322) [55100ms]
com.intellij.ide.impl.DataManagerImpl.getDataContext(DataManagerImpl.java:296) [55100ms]
com.intellij.openapi.fileEditor.impl.IdeUiServiceImpl.createUiDataContext(IdeUiServiceImpl.java:79) [55100ms]
com.intellij.openapi.actionSystem.impl.Utils.createAsyncDataContext(Utils.kt:158) [55100ms]
com.intellij.openapi.actionSystem.impl.PreCachedDataContext.<init>(PreCachedDataContext.java:111) [55100ms]
com.intellij.openapi.actionSystem.impl.PreCachedDataContext.cacheComponentsData(PreCachedDataContext.java:356) [55100ms]
com.intellij.openapi.actionSystem.impl.PreCachedDataContext.cacheProviderData(PreCachedDataContext.java:370) [55100ms]
com.intellij.openapi.actionSystem.DataSink.uiDataSnapshot(UiDataProvider.kt) [55100ms]
com.intellij.openapi.actionSystem.DataSink$Companion.uiDataSnapshot(UiDataProvider.kt:184) [55100ms]
com.intellij.openapi.actionSystem.impl.PreCachedDataContext$MySink.uiDataSnapshot(PreCachedDataContext.java:506) [55100ms]
com.intellij.openapi.actionSystem.DataKey.getData(DataKey.kt:34) [55100ms]
com.intellij.terminal.JBTerminalWidget.getData(JBTerminalWidget.java:299) [55100ms]
com.intellij.terminal.JBTerminalWidget.getSelectedText(JBTerminalWidget.java:326) [55100ms]
com.intellij.terminal.JBTerminalWidget.getSelectedText(JBTerminalWidget.java:311) [55100ms]
com.jediterm.terminal.model.TerminalTextBuffer.lock(TerminalTextBuffer.java:317) [55100ms]
[email protected]/java.util.concurrent.locks.ReentrantLock.lock(Unknown Source) [55100ms]
[email protected]/java.util.concurrent.locks.ReentrantLock$Sync.lock(Unknown Source) [55100ms]
[email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source) [55100ms]
[email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source) [55100ms]
[email protected]/java.util.concurrent.locks.LockSupport.park(Unknown Source) [55100ms]
[email protected]/jdk.internal.misc.Unsafe.park(Native Method) [55100ms]

f95b3c3d5ac874b4.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants