Brackets freezes when searching near certain uppercase Unicode chars #6105
Comments
@ugurbulut Can you provide some more detail? Ideally, please give us specific steps that you can follow to cause the problem. For example, here's what I tried:
This all worked as expected for me. Can you provide different steps that show the problem in this case? Three other questions:
|
Hi @peterflynn,
I removed all extensions, i uninstalled Brackets and do a clean installation on a other driver but nothing has changed. I attached a file screenshot of Brackets and Task Manager. PS: OS is Windows 7 x64 Home Premium |
Can you try disabling all extensions and see if the problem still occurs? From the screenshot it looks like you have some extensions that modify the UI, at the least (working set replaced with tab bar, perhaps? and status bar hidden), which could be causing problems. Also, is it possible to share that one file with us so we can try to reproduce the problem? (You could send it directly if you don't want to post it publicly). |
I tried this but unfortunately nothing was changed. I think there is a problem with <b> and </b> tag. I changed all b tags to strong on Notepad++ than i reopened the file with brackets and there was not problem. |
I can repro this with the text file, and I even edited it to the least I can repro: Can't repro it in CodeMirror demo. |
The problem is |
Repros as far back as Sprint 18 at least, so not an urgent regression. Will investigate more today... |
Yikes, so apparently the problem is that for certain unicode strings, including It shouldn't be hard to prevent Find from going into an infinite loop here, but this has far-reaching implications covering a whole bunch of other Brackets features, including Find in Files and Quick Open / StringMatch. Adding architecture tag. |
Clarified title (was: "Brackets crashes when select a close tag and run to find") |
CC @RaymondLim since I know you're sometimes interested in crazy localization-related stuff :-) |
@peterflynn You got me! I was thinking of looking into this one. Have you tried with toLocaleLowerCase()? |
Same problem, since that just converts using your current locale. The string changes length either way. |
As noted above, I suspect a bunch of parts of Brackets would have issues with chars like this. In this particular case, the infinite loop here is caused by a bug in CodeMirror's searchcursor.js. Filed codemirror/codemirror5#2009. If we don't see a fix for that soon, we could probably work around the searchcursor bug in a manner similar to our existing workaround in the findFirst() loop. |
@ugurbulut This bug was fixed and is included in the next Sprint of Brackets. |
@SAplayer , thanks for description. |
FBNC to me to verify |
I tested this problem on the same project and same file at Sprint 37, it works great.. Thanks @peterflynn |
When i select a tag especially "</b>" to find another one, brackets crashes and frozen..
The text was updated successfully, but these errors were encountered: