Extreme CPU Usage
Opened this issue · 2 comments
Describe the bug
This is the same bug that has been plaguing the original repo (valentjn#134 and valentjn#880). The java
task spawned by the server goes to 700% CPU Usage, one of the rare times when my M1 MacBook's fans ever turn on.
Steps to reproduce
Steps to reproduce the behavior:
Very hard to reproduce, seems to happen randomly, but for me especially when there are multiple documents open and multiple edits in succession. My suspicion is that there's an infinite loop triggered somewhere.
Expected behavior
CPU Usage should remain low.
Sample document
The bug does not happen with specific documents. Samples can be provided via email upon request.
LTeX configuration
Please paste all configuration settings starting with ltex.
from your settings.json
. You can help us by temporarily removing some irrelevant settings from your settings.json
and see if the bug still occurs.
{
"enabled": [
"context",
"context.tex",
"html",
"latex",
"markdown",
"org",
"restructuredtext",
"rsweave"
],
"language": "en-US",
"dictionary": {},
"disabledRules": {},
"enabledRules": {},
"hiddenFalsePositives": {},
"bibtex": {
"fields": {
"abstract": false
}
},
"latex": {
"commands": {
"\\subfile{}": "ignore",
"\\subfileinclude{}": "ignore",
"\\textcquote[]{}": "ignore",
"\\textcite*{}": "dummy",
"\\blockcquote[]{}": "ignore",
"\\Glsfmtshort{}": "dummy",
"\\namecref": "dummy",
"\\R": "dummy",
"\\C": "dummy"
},
"environments": {}
},
"markdown": {
"nodes": {}
},
"configurationTarget": {
"dictionary": "workspaceFolderExternalFile",
"disabledRules": "workspaceFolderExternalFile",
"hiddenFalsePositives": "workspaceFolderExternalFile"
},
"additionalRules": {
"enablePickyRules": false,
"motherTongue": "fr",
"languageModel": "",
"neuralNetworkModel": "",
"word2VecModel": ""
},
"languageToolHttpServerUri": "",
"languageToolOrg": {
"username": "redacted",
"apiKey": "redacted"
},
"ltex-ls": {
"path": "",
"logLevel": "finest",
"languageToolHttpServerUri": "",
"languageToolOrgUsername": "",
"languageToolOrgApiKey": ""
},
"java": {
"path": "",
"initialHeapSize": 64,
"maximumHeapSize": 512
},
"sentenceCacheSize": 2000,
"completionEnabled": false,
"diagnosticSeverity": "information",
"checkFrequency": "edit",
"clearDiagnosticsWhenClosingFile": true,
"statusBarItem": true,
"trace": {
"server": "verbose"
}
}
"LTeX Language Server" log file
"LTeX Language Client" log file
Both log files are ready, with trace enabled. Where can I send them so that they are handled privately?
Version information
List here the version information of the relevant software.
- Operating system: Darwin (darwin), arm64, 23.5.0
- VS Code: 1.89.1
- vscode-ltex: x.xx
- ltex-ls: 15.2.0
- Java: 11.0.12
Additional context/information
You can add any other context or information about the problem here.
I seem to be encountering the same issue under similar conditions (i.e. more likely to happen with multiple editing windows open). On MacOS. Will keep tracking behavior and report more details as I learn them.
I am getting this too - it get called by Code -> Code Helper -> java -Xms... and swallows 90% of all available CPUs
Macos 10.15.7 intel i7
java 16
vscode
Version: 1.91.1
Commit: 8dc116235926cec63663b828d083c236fc66c2d3
Date: 2024-07-08T21:09:59.389Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin x64 19.6.0
Can reliably reproduce by opening jupyter notebook or a .tex file but it usually dies down after a little. But sometimes it will just arc up without apparent reason.