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

Freeze for 40 seconds #3302

Closed
Jannik-Schroeder opened this issue Nov 5, 2023 · 1 comment · Fixed by #3396
Closed

Freeze for 40 seconds #3302

Jannik-Schroeder opened this issue Nov 5, 2023 · 1 comment · Fixed by #3396
Assignees
Labels
bug Deficiencies in TeXiFy behaviour. crash-report Reports of crashes that popped up in IDEA.
Milestone

Comments

@Jannik-Schroeder
Copy link

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

Writerside 2023.2 EAP (build WRS-232.10165)

Operating System

Mac OS X 14.0 (x86_64)

TeXiFy IDEA version

0.9.1

Description

Stacktrace

   Freeze for 40 seconds
IDE KILLED! Sampled time: 19700ms, sampling rate: 100ms, GC time: 72ms (0%), Class loading: 0%

The stack is from the thread that was blocking EDT
   
   com.intellij.diagnostic.Freeze
	at [email protected]/java.io.FileInputStream.readBytes(Native Method)
	at [email protected]/java.io.FileInputStream.read(FileInputStream.java:276)
	at [email protected]/java.io.BufferedInputStream.read1(BufferedInputStream.java:282)
	at [email protected]/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
	at [email protected]/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:270)
	at [email protected]/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:313)
	at [email protected]/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:188)
	at [email protected]/java.io.InputStreamReader.read(InputStreamReader.java:177)
	at [email protected]/java.io.BufferedReader.read1(BufferedReader.java:211)
	at [email protected]/java.io.BufferedReader.read(BufferedReader.java:287)
	at [email protected]/java.io.Reader.read(Reader.java:250)
	at kotlin.io.TextStreamsKt.copyTo(ReadWrite.kt:122)
	at kotlin.io.TextStreamsKt.copyTo$default(ReadWrite.kt:119)
	at kotlin.io.TextStreamsKt.readText(ReadWrite.kt:106)
	at nl.hannahsten.texifyidea.util.SystemEnvironmentKt.runCommandWithExitCode(SystemEnvironment.kt:107)
	at nl.hannahsten.texifyidea.util.SystemEnvironmentKt.runCommandWithExitCode$default(SystemEnvironment.kt:72)
	at nl.hannahsten.texifyidea.util.SystemEnvironmentKt.runCommand(SystemEnvironment.kt:64)
	at nl.hannahsten.texifyidea.util.SystemEnvironmentKt.runCommand$default(SystemEnvironment.kt:63)
	at nl.hannahsten.texifyidea.util.files.LatexPackageLocationCache.fillCacheWithKpsewhich(LatexPackageLocationCache.kt:31)
	at nl.hannahsten.texifyidea.util.files.LatexPackageLocationCache.getPackageLocation(LatexPackageLocationCache.kt:49)
	at nl.hannahsten.texifyidea.reference.InputFileReference.resolve(InputFileReference.kt:206)
	at nl.hannahsten.texifyidea.reference.InputFileReference.resolve$default(InputFileReference.kt:113)
	at nl.hannahsten.texifyidea.util.parser.LatexCommandsUtilKt.getIncludedFiles(LatexCommandsUtil.kt:192)
	at nl.hannahsten.texifyidea.structure.latex.LatexIncludePresentation.<init>(LatexIncludePresentation.kt:21)
	at nl.hannahsten.texifyidea.structure.latex.LatexPresentationFactory.getPresentation(LatexPresentationFactory.kt:39)
	at nl.hannahsten.texifyidea.structure.latex.LatexStructureViewCommandElement.<init>(LatexStructureViewCommandElement.kt:32)
	at nl.hannahsten.texifyidea.structure.latex.LatexStructureViewCommandElement.<init>(LatexStructureViewCommandElement.kt)
	at nl.hannahsten.texifyidea.structure.latex.LatexStructureViewCommandElement$Companion.newCommand(LatexStructureViewCommandElement.kt:27)
	at nl.hannahsten.texifyidea.structure.latex.LatexStructureViewElement.addIncludes(LatexStructureViewElement.kt:147)
	at nl.hannahsten.texifyidea.structure.latex.LatexStructureViewElement.getChildren(LatexStructureViewElement.kt:85)
	at com.intellij.ide.util.treeView.smartTree.TreeElementWrapper.initChildren(TreeElementWrapper.java:35)
	at com.intellij.ide.util.treeView.smartTree.CachingChildrenTreeNode.rebuildSubtree(CachingChildrenTreeNode.java:207)
	at com.intellij.ide.util.treeView.smartTree.CachingChildrenTreeNode.ensureChildrenAreInitialized(CachingChildrenTreeNode.java:41)
	at com.intellij.ide.util.treeView.smartTree.CachingChildrenTreeNode.getChildren(CachingChildrenTreeNode.java:33)
	at com.intellij.ide.structureView.newStructureView.StructureViewComponent$MyNodeWrapper.getChildren(StructureViewComponent.java:841)
	at com.intellij.ide.util.treeView.smartTree.SmartTreeStructure.getChildElements(SmartTreeStructure.java:62)
	at com.intellij.ui.tree.StructureTreeModel.getValidChildren(StructureTreeModel.java:411)
	at com.intellij.ui.tree.StructureTreeModel.validateChildren(StructureTreeModel.java:329)
	at com.intellij.ui.tree.StructureTreeModel.getNode(StructureTreeModel.java:323)
	at com.intellij.ui.tree.StructureTreeModel.getChildren(StructureTreeModel.java:343)
	at com.intellij.ui.tree.AsyncTreeModel$CmdGetChildren.getNode(AsyncTreeModel.java:568)
	at com.intellij.ui.tree.AsyncTreeModel$Command.get(AsyncTreeModel.java:464)
	at com.intellij.ui.tree.AsyncTreeModel$Command.get(AsyncTreeModel.java:430)
	at com.intellij.util.concurrency.Invoker$Task.run(Invoker.java:306)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1133)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:76)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils$$Lambda$1833/0x0000000800ff1c90.run(Unknown Source)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:63)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:133)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:114)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils$$Lambda$1835/0x0000000800ff2380.compute(Unknown Source)
	at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:71)
	at com.intellij.openapi.progress.ProgressManager$$Lambda$1218/0x0000000800b87c78.run(Unknown Source)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186)
	at com.intellij.openapi.progress.impl.CoreProgressManager$$Lambda$1196/0x0000000800b372c0.run(Unknown Source)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
	at com.intellij.openapi.progress.impl.CoreProgressManager$$Lambda$1197/0x0000000800b37510.compute(Unknown Source)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(
@Jannik-Schroeder Jannik-Schroeder added crash-report Reports of crashes that popped up in IDEA. untriaged Issue type still needs to be triaged or verified. labels Nov 5, 2023
@PHPirates PHPirates added bug Deficiencies in TeXiFy behaviour. and removed untriaged Issue type still needs to be triaged or verified. labels Nov 8, 2023
@PHPirates
Copy link
Collaborator

Related to #3279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Deficiencies in TeXiFy behaviour. crash-report Reports of crashes that popped up in IDEA.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants