JetBrains / jediterm

Pure Java Terminal Emulator. Works with SSH and PTY.
GNU Lesser General Public License v3.0
676 stars 171 forks source link

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

Open ViugiNick opened 5 months ago

ViugiNick commented 5 months ago
java.desktop@17.0.10/javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) [54900ms]
java.base@17.0.10/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [54900ms]
java.base@17.0.10/java.security.AccessController.doPrivileged(Unknown Source) [54900ms]
java.base@17.0.10/java.security.AccessController.executePrivileged(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.RepaintManager$4.run(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.RepaintManager$4.run(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.JComponent.paintImmediately(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.JComponent._paintImmediately(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.RepaintManager.paint(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.BufferStrategyPaintManager.paint(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.JComponent.paintToOffscreen(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.JComponent.paint(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.JComponent.paintChildren(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.JLayeredPane.paint(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.JComponent.paint(Unknown Source) [54900ms]
java.desktop@17.0.10/javax.swing.JComponent.paintChildren(Unknown Source) [54900ms]
java.desktop@17.0.10/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]
java.base@17.0.10/java.util.concurrent.locks.ReentrantLock.lock(Unknown Source) [54900ms]
java.base@17.0.10/java.util.concurrent.locks.ReentrantLock$Sync.lock(Unknown Source) [54900ms]
java.base@17.0.10/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source) [54900ms]
java.base@17.0.10/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source) [54900ms]
java.base@17.0.10/java.util.concurrent.locks.LockSupport.park(Unknown Source) [54900ms]
java.base@17.0.10/jdk.internal.misc.Unsafe.park(Native Method) [54900ms]
segrey commented 5 months ago

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