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

UI freeze MiKTeX extraction #3316

Closed
oleh-dreval-swidget opened this issue Nov 15, 2023 · 10 comments · Fixed by #3395
Closed

UI freeze MiKTeX extraction #3316

oleh-dreval-swidget opened this issue Nov 15, 2023 · 10 comments · Fixed by #3395
Assignees
Labels
bug Deficiencies in TeXiFy behaviour. high-priority Critical issues that must be solved ASAP.
Milestone

Comments

@oleh-dreval-swidget
Copy link

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

CLion 2023.2.2
Build #CL-232.9921.42, built on September 12, 2023
Licensed to Oleg Dreval
Subscription is active until December 9, 2023.
Runtime version: 17.0.8+7-b1000.22 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 16
Registry:
run.processes.with.pty=TRUE
debugger.attach.dialog.enabled=true
cidr.max.intellisense.file.length=1000000

Operating System

Windows 10 19045.3570

TeXiFy IDEA version

0.9.1

What I did (steps to reproduce)

Install TeXiFy, open IDE

Minimal example to reproduce the problem

Any project, even with no .tex files at all

Expected behavior

No IDE freeze

Actual behavior

IDE freezes for indefinite time, UI is not responding.
The only way to load IDE after installing the plugin is to run clion.exe disableNonBundledPlugins

(if applicable) The full stacktrace of the exception thrown

Also please see attached log file ide.log

2023-11-15 17:21:46,226 [   4202]   INFO - STDERR - [ApplicationImpl pooled thread 2] INFO org.codehaus.plexus.archiver.tar.TarXZUnArchiver - Expanding: C:\Users\OlehDreval\AppData\Local\Programs\MiKTeX\source\a0poster-src.tar.xz into C:\Users\OlehDreval\AppData\Local\Programs\MiKTeX\source\latex
2023-11-15 17:21:46,248 [   4224]   INFO - STDERR - [ApplicationImpl pooled thread 2] INFO org.codehaus.plexus.archiver.tar.TarXZUnArchiver - Expanding: C:\Users\OlehDreval\AppData\Local\Programs\MiKTeX\source\aastex-src.tar.xz into C:\Users\OlehDreval\AppData\Local\Programs\MiKTeX\source\latex
2023-11-15 17:21:46,279 [   4255]   INFO - STDERR - [ApplicationImpl pooled thread 2] INFO org.codehaus.plexus.archiver.tar.TarXZUnArchiver - Expanding: C:\Users\OlehDreval\AppData\Local\Programs\MiKTeX\source\abnt-src.tar.xz into C:\Users\OlehDreval\AppData\Local\Programs\MiKTeX\source\latex
2023-11-15 17:21:46,279 [   4255]   INFO - STDERR - [ApplicationImpl pooled thread 2] INFO org.codehaus.plexus.archiver.tar.TarXZUnArchiver - Expanding: C:\Users\OlehDreval\AppData\Local\Programs\MiKTeX\source\accents-src.tar.xz into C:\Users\OlehDreval\AppData\Local\Programs\MiKTeX\source\latex
2023-11-15 17:21:46,294 [   4270]   INFO - STDERR - [ApplicationImpl pooled thread 2] INFO org.codehaus.plexus.archiver.tar.TarXZUnArchiver - Expanding: C:\Users\OlehDreval\AppData\Local\Programs\MiKTeX\source\accessibility-src.tar.xz into C:\Users\OlehDreval\AppData\Local\Programs\MiKTeX\source\latex
2023-11-15 17:21:46,310 [   4286]   INFO - STDERR - [ApplicationImpl pooled thread 2] INFO org.codehaus.plexus.archiver.tar.TarXZUnArchiver - Expanding: C:\Users\OlehDreval\AppData\Local\Programs\MiKTeX\source\accsupp-src.tar.xz into C:\Users\OlehDreval\AppData\Local\Programs\MiKTeX\source\latex
... etc
@oleh-dreval-swidget oleh-dreval-swidget added bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified. labels Nov 15, 2023
@PHPirates
Copy link
Collaborator

May I ask how you concluded that it is the archive unzipping that leads to the UI freeze?

@oleh-dreval-swidget
Copy link
Author

I'm not 100% sure that unzipping causes the freeze, but this is the most obvious thing I saw in the log and it seems a bit excessive. Does it really need to do all these operations on every startup?

@PHPirates
Copy link
Collaborator

Okay that makes sense! Then I'm guessing this issue is related to #3302 and #3279,

Did the freeze happen multiple times or just once?

Yes, because MiKTeX wants it to be like that, we have to unzip before we can get at package sources. I tried to silence the logging but didn't know how to do it.

@PHPirates PHPirates removed the untriaged Issue type still needs to be triaged or verified. label Nov 21, 2023
@oleh-dreval-swidget
Copy link
Author

I never had enough patience to wait until it unfreezes. It seems to be starting from the beginning each time IDE restarts though.

@PHPirates PHPirates changed the title Numerous archives expanding on plugin startup causing IDE UI freeze UI freeze Nov 24, 2023
@oleh-dreval-swidget
Copy link
Author

@PHPirates do you have any updates on this issue, perhaps there is a known workaround? I really want to try the plugin but still can't get IDE to load when it is enabled.
Can I help investigating the problem somehow?

@PHPirates
Copy link
Collaborator

I think I know what the problem is, somehow the extraction of the zip files is blocking the UI. I will try to fix that.
I need to look at the log in more detail, because I just noticed something strange:

TEXIFY-IDEA - Exception when trying to extract MiKTeX source files: Error while expanding C:\Users\OlehDreval\AppData\Local\Programs\MiKTeX\source\montex-src.tar.bz2

then after it finishes extracting, it just seems to start from the beginning leading to an infinite loop maybe. It's a huge number of packages you have installed, which makes the problem much more visible.

@PHPirates PHPirates added the high-priority Critical issues that must be solved ASAP. label Nov 30, 2023
@PHPirates
Copy link
Collaborator

@oleh-dreval-swidget
Copy link
Author

Thank you for looking into this.
I wish I could try disabling indexing, but whenever I enable the plugin, the IDE instantly becomes unresponsive after restart, so I can't even get to the settings. Is it possible to disable this from the config files somehow?

@PHPirates
Copy link
Collaborator

Oh I didn't think of that. I think so, but maybe easier to just install this version: https://plugins.jetbrains.com/plugin/download?rel=true&updateId=447793

@oleh-dreval-swidget
Copy link
Author

This version works without freezes, thanks!

@PHPirates PHPirates changed the title UI freeze UI freeze MiKTeX extraction Dec 13, 2023
@PHPirates PHPirates self-assigned this Jan 12, 2024
@PHPirates PHPirates added this to the Next milestone Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Deficiencies in TeXiFy behaviour. high-priority Critical issues that must be solved ASAP.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants