You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I type Chinese comments in my sketch, severe memory leak occurs randomly in the arduino-language-server process.
To reproduce
Since the issue occurs randomly, there are no steps to 100% reproduce. But after some fumbling, I found a way to reproduce with the greatest probability:
Open my sketch with Arduino IDE v2.0.3, and switch to IStepTrial.h
Open Task Manager and monitor the memory footprint of arduino-language-server.
Use the Microsoft Pinyin input method to type the comment text on line 16 as it is on line 17. Note that keyboard input is required, not copy-paste. You will most likely observe a memory explosion before you finish this line.
I have tried some of other sketches and they were all less likely to trigger this issue than my sketch. I offer my sketch here so that you may easily reproduce the issue.
Expected behavior
The Arduino code language may not have plans to support Chinese, but I don't think there should be a serious problem like a memory leak just because of a few lines of Chinese comments anyway.
@14725 Thanks for your attention. The probability of this problem seems to have increased again in recent versions. Since I'm not the only one experiencing this problem, I think I can really reopen it.
BTW, I don't know if any of the developers and maintainers of this repository know Chinese, and if not, I'm afraid it will be difficult for them to reproduce this problem. 😓
Describe the problem
When I type Chinese comments in my sketch, severe memory leak occurs randomly in the arduino-language-server process.

To reproduce
Since the issue occurs randomly, there are no steps to 100% reproduce. But after some fumbling, I found a way to reproduce with the greatest probability:
Gbec.zip
I have tried some of other sketches and they were all less likely to trigger this issue than my sketch. I offer my sketch here so that you may easily reproduce the issue.
Expected behavior
The Arduino code language may not have plans to support Chinese, but I don't think there should be a serious problem like a memory leak just because of a few lines of Chinese comments anyway.
Arduino Language Server version
0.7.2
Arduino CLI version
0.29.0
Operating system
Windows
Operating system version
Win11 22H2, Win10
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: