Closed teoric closed 1 year ago
Unfortunately, I cannot reproduce the issue. I'm afraid that you may need to provide a working example with private data remove for debug.
Thank you very much for your reply! Preparing data may take some time, as the directory is so convoluted and mixed. Maybe I should try to compile the extension myself, trying to check which of the code changes caused the change in behaviour? (Between 9.11.2 and 9.11.3 there were not too many, if I see correctly.) Either way it may take at least two or three weeks; sorry for that. (But the good news is that 9.11.2 works for perfectly for me.)
Would it make sense to leave this bug report open to see whether others are affected, too?
I will mentioned, that I too encountered the same issue. I will also say, I did see the issue on my large project (well over 1k+ documents). On my end, I can't tell 100% if the extension was timeout or what; as it kept wanting to reload the extension. I did however see, when I was compiling my project, all of my processor was spent on vscode's node binary and not on the luatex binary compiling my files. The other part I noticed, is that the memory usage had a huge spike in usage. To put in perspective, on my 32GB machine, 9.10.0 on vscode used about 6G; on the current latest 9.11.4 memory usage was over 30GB when I forced vscode to close.
A MWE may be difficult to make, as like @teoric, the part that makes the it difficult, is that we are working on projects with numerous files. I'll play around see if I can make an working example later tonight (might not be as minimal).
VSCode Info: Version: 1.78.2 Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435 Date: 2023-05-10T14:47:05.613Z Electron: 22.5.2 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Linux x64 6.1.0-9-amd64 Sandboxed: Yes
Ok, I made a workable example; and while watching the extension's logs and also my process monitor (top in linux) I have narrowed down more of the issue. Again, this is tested with version 9.11.4.
To start with, a simple working example: Main.tex
% !TeX root = main.tex
\documentclass{article}
\usepackage{blindtext}
\begin{document}
\tableofcontents
\include{subdoc}
\include{subdoc1}
\include{subdoc2}
\include{subdoc3}
\include{subdoc4}
\include{subdoc5}
\include{subdoc6}
\include{subdoc7}
...
% \include{subdoc1999}
% \include{subdoc2000}
\end{document}
subdoc$x.tex
\Blinddocument
All the subdocs are the same; the more subdocs you have the more the issue is shown. On this working example, 500 was sufficient to see the effects, but more makes the effect last longer. The contents of the subdocs doesn't matter; the main thing is that it's not empty and the quantity of files.
The cause of the issue, is specifically the parsing all the files one after another (hence if you have a faster computer, you'll need more subdocs). In this example, the parsing is super simple (only a single line), so the effect is only a temporary thing. Once the extension parses all the files, it looks like the extension activates. I suspect if the extension does the parsing loop again, will trigger the issue all over. I suspect the excessive memory I encountered, is more of the extension keeping the files in memory (obviously non-existent with this example).
In case you want the extension's log for this example. log.txt
Thanks for the information. I will look into the issue, though it may need some more time than usual.
I have also the same issue (#3901).
I also have the same issue. Downgrading to v9.11.2 fixes the problem.
The exact same behavior here on my side. Here are some more observations:
Also here, downgrading to v 9.11.2 fixes all of these issues.
The exact same behavior here on my side. Here are some more observations:
- loading the extension got more slow than before (v9.1.2)
- loading the extension also seems to block the loading of other extensions
- when the extension does not load, I cannot even type text in LaTeX documents, any key stroke (except for the backspace, deleting text works) is lost.
- when I open a document for which the extension finally loads in a new window (this can take several seconds), and I open another document (for which it does not initially load) in the same workspace, then the extension is disabled again and also does not work for the initial document any longer.
Also here, downgrading to v 9.11.2 fixes all of these issues.
Yes. After the plugin was updated to version 9.11.4 today, it has been in a loading state and the system CPU consumption is very high. It returned to normal after restoring to version 9.11.2. System environment: VSCode + WSL (Ubuntu 2204).
Surprisingly, this seems to be caused by a single-worker-based LU parser, which also exists before 9.11.3. As we are in the process of transferring from LU to unified-latex for parsing, this temporary fix will become obsolete in future versions.
Hi James,
Wow, thank you very much for your speedy solution! You were faster fixing the issue than I was providing data.
Impressed regards, Bernhard
Am So., 4. Juni 2023 um 13:57 Uhr schrieb James Yu @.***
:
Closed #3907 https://github.com/James-Yu/LaTeX-Workshop/issues/3907 as completed via 0953de2 https://github.com/James-Yu/LaTeX-Workshop/commit/0953de27121b162036e3caa7708eddd7445e557a .
— Reply to this email directly, view it on GitHub https://github.com/James-Yu/LaTeX-Workshop/issues/3907#event-9424676312, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGWCD6YAYFJVJLVS6A547TXJRZZNANCNFSM6AAAAAAYTXU3YM . You are receiving this because you were mentioned.Message ID: @.***>
Hi James, Wow, thank you very much for your speedy solution! You were faster fixing the issue than I was providing data. Impressed regards, Bernhard
Thanks for the compliment! Though I am not sure whether the fix can indeed provide a temp solution to the issue. I will keep an eye on this.
Pre-checks*
Environment*
The Issue*
After 9.11.2, in a rather big directory containing LaTeX sources for different documents, LaTeX Workshop does not activate, but a lot of CPU is used (no helper processes seem to run, just Code). (I've left it for half an hour, and behaviour did not change.) I.e., one cannot execute commands: For any command, in the status bar, "Activating Extensions…" appears, but nothing happens.
This does not occur in smaller repositories, but everything has worked fine up to 9.11.2.
As this happens on Windows and on Linux and on different TeX distributions, it seems to be something general?
Reproduction Steps
(Though these files are of different size, have different roots etc., all lead to the same behaviour.)
Expected Behavior
I expected the extension to activate and commands to execute.
Logs
LaTeX Workshop Output*
Developer Tools Console
Anything Else?