-
-
Notifications
You must be signed in to change notification settings - Fork 448
"Incremental search" behavior of "SEARCH" view field can cause crash #1660
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
Comments
Hi @dagnall53. Are you able to reproduce the bug using this large project?: https://github.com/DCC-EX/CommandStation-EX (note that it currently takes some time to open this large sketch for the first time: I just gave it a try and did not experience any problems with the IDE going unresponsive or even using any significant amount of CPU or memory on my Windows 10 machine while searching for a single letter in the 85 files of that sketch. I do notice that the single letter search never completes (or maybe I'm just not patient enough). Once I add one additional letter and bring the number of results down to ~1000, the search finishes quickly. There was a similar problem in the Arduino IDE 1.x Library Manager search: arduino/Arduino#8282 |
@per1234 I have downloaded that sketch. - and it does take a long time for the tabs to fully appear. Interestingly, the IDE seemed to do all the indexing in about 1 minute, and I can quickly see all the library/subfile names in the pull down, but the tabs individually took about 5-10 seconds (?) each to "flash" onto the screen. It was not clear if any "work" is possible before all are available.. so I just waited the 7 minutes for the screen to stop its momentary flashing as the tabs appeared. I was compiling for esp32, so change dto Arduino mega in case this affects anything, I repeated the tests but (unsurprisingly) it still responded ok. SO- NO.. Unfortunately even this big project did not allow me to demonstrate the completely unresponsive behaviour I have occasionally seen. (Side note - given the test material!. . I started looking at an automated garden railway when I retired 10 years ago. I found the JMRI Javascript approach difficult to follow, so built a small system around RocRail. I managed to code a sound decoder for esp8266 and my own 3d printed loco, which I was rather pleased with : https://youtu.be/Pg5r6MZDhww , but it was heavily integrated into Rocrail's comms protocol which I fully admit I do not fully understand. Rob (Rocrail) has since improved his ESP8266 decoder code to an extent that my loco sound decoder approach is now irrelevant, but the sound effects on mine were interesting. ) |
Uh oh!
There was an error while loading. Please reload this page.
Describe the problem
When using the "global" search in a large project, the IDE can crawl to a halt as the search term is typed in. In some situations I have had the IDE turn unresponsive with just a single letter typed in - preventing me from adding more elements to the search term.
I believe that this is due to it trying hard to find all instances of the search term AS it is being typed in.
To reproduce
Expected behavior
Triggering the search only after the user clicks a button or presses Enter would prevent the problem.
Arduino IDE version
2.0.1
Operating system
Windows
Operating system version
10
Additional context
Additional reports
Keywords
Issue checklist
The text was updated successfully, but these errors were encountered: