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

VineflowerInvoker.decompile holds ReadWrite lock for 65 seconds and freezes UI thread #402

Closed
ViugiNick opened this issue May 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ViugiNick
Copy link

com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1100) [56000ms]
com.intellij.openapi.application.rw.CancellableReadActionKt$$Lambda$1605/0x000000080113a940.run(Unknown Source) [56000ms]
com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$1$lambda$0(cancellableReadAction.kt:49) [56000ms]
com.intellij.openapi.progress.CancellationKt.executeWithJobAndCompleteIt(cancellation.kt:126) [56000ms]
com.intellij.openapi.progress.CancellationKt.withCurrentJob(cancellation.kt:17) [56000ms]
com.intellij.openapi.progress.Cancellation.withCurrentJob(Cancellation.java:60) [56000ms]
com.intellij.openapi.progress.CancellationKt$$Lambda$1594/0x0000000801131cb8.compute(Unknown Source) [56000ms]
com.intellij.openapi.progress.CancellationKt.withCurrentJob$lambda$0(cancellation.kt:17) [56000ms]
com.intellij.openapi.application.rw.InternalReadAction$tryReadCancellable$1.invoke(InternalReadAction.kt:91) [56000ms]
com.intellij.openapi.application.rw.InternalReadAction$tryReadCancellable$1.invoke(InternalReadAction.kt:92) [56000ms]
com.intellij.openapi.application.rw.InternalReadAction.access$insideReadAction(InternalReadAction.kt:15) [56000ms]
com.intellij.openapi.application.rw.InternalReadAction.insideReadAction(InternalReadAction.kt:108) [56000ms]
com.intellij.openapi.fileEditor.impl.UiBuilder$processFiles$2$document$1.invoke(EditorsSplitters.kt:969) [56000ms]
com.intellij.openapi.fileEditor.impl.UiBuilder$processFiles$2$document$1.invoke(EditorsSplitters.kt:970) [56000ms]
com.intellij.openapi.fileEditor.impl.FileDocumentManagerBase.getDocument(FileDocumentManagerBase.java:53) [56000ms]
com.intellij.openapi.fileEditor.impl.FileDocumentManagerBase.loadText(FileDocumentManagerBase.java:95) [56000ms]
com.intellij.openapi.fileEditor.impl.LoadTextUtil.loadText(LoadTextUtil.java:478) [56000ms]
com.intellij.psi.impl.compiled.ClassFileDecompiler.decompile(ClassFileDecompiler.java:29) [56000ms]
org.vineflower.ijplugin.VineflowerDecompilerLight.getText(VineflowerDecompilerLight.kt:6) [56000ms]
org.vineflower.ijplugin.VineflowerDecompilerLight.getText(VineflowerDecompilerLight.kt:12) [56000ms]
org.vineflower.ijplugin.VineflowerDecompilerBase$Companion.getText(VineflowerDecompilerBase.kt:39) [56000ms]
org.vineflower.ijplugin.VineflowerInvoker.decompile(VineflowerInvoker.kt:168) [56000ms]
org.vineflower.ijplugin.VineflowerInvoker.decompile$doDecompile(VineflowerInvoker.kt:125) [56000ms]
[email protected]/java.lang.reflect.Method.invoke(Unknown Source) [56000ms]
[email protected]/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [56000ms]
[email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [56000ms]
[email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [56000ms]
org.jetbrains.java.decompiler.main.decompiler.BaseDecompiler.decompileContext(BaseDecompiler.java:44) [56000ms]
org.jetbrains.java.decompiler.main.Fernflower.decompileContext(Fernflower.java:149) [56000ms]
org.jetbrains.java.decompiler.struct.StructContext.saveContext(StructContext.java:178) [56000ms]
org.jetbrains.java.decompiler.struct.ContextUnit.save(ContextUnit.java:173) [56000ms]
org.jetbrains.java.decompiler.struct.ContextUnit.waitForAll(ContextUnit.java:226) [56000ms]
[email protected]/java.util.concurrent.FutureTask.get(Unknown Source) [56000ms]
[email protected]/java.util.concurrent.FutureTask.awaitDone(Unknown Source) [56000ms]
[email protected]/java.util.concurrent.locks.LockSupport.park(Unknown Source) [56000ms]
[email protected]/jdk.internal.misc.Unsafe.park(Native Method) [56000ms]
@ViugiNick ViugiNick added the bug Something isn't working label May 29, 2024
@Earthcomputer
Copy link
Contributor

Hi, you probably wanted to report this to https://github.com/Vineflower/vineflower-intellij, where this issue is already tracked here

@ViugiNick
Copy link
Author

@Earthcomputer Opened a bug in vineflower-intellij. The bug that you sent seems a bit different

@jaskarth jaskarth closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants