WPF APP will hang if the editor SyntaxHighlighting=python #241

Closed
opened 2020-07-13 04:00:07 -05:00 by heartacker · 5 comments
heartacker commented 2020-07-13 04:00:07 -05:00 (Migrated from github.com)

OS: Windows_NT x64 10.0.14393
dotnetcore: 3.1.301
my wpf app is a editor using Avalonedit.
when setting the highlight==python(py). my wpf app hang, the only thing I can do is kill it by force.
but it works well when SyntaxHighlighting is not python, like markdown, csharp an so on.

OS: Windows_NT x64 10.0.14393 dotnetcore: 3.1.301 my wpf app is a editor using Avalonedit. when setting the highlight==python(py). my wpf app hang, the only thing I can do is kill it by force. but it works well when SyntaxHighlighting is not python, like markdown, csharp an so on.
heartacker commented 2020-07-13 04:23:37 -05:00 (Migrated from github.com)

there is the pic.
it seems that all SyntaxHighlighting will casuse the app-hang,
editor2
and also, it will hang if text length >5

there is the pic. it seems that all SyntaxHighlighting will casuse the app-hang, ![editor2](https://user-images.githubusercontent.com/1876302/87287921-43357b00-c52d-11ea-8959-666b9f2c20ee.gif) and also, it will hang if text length >5
heartacker commented 2020-07-13 04:53:45 -05:00 (Migrated from github.com)

I download the source code, and add it to my project.
there is the code that cause the hang.
Snipaste_2020-07-13_17-50-51

I download the source code, and add it to my project. there is the code that cause the hang. ![Snipaste_2020-07-13_17-50-51](https://user-images.githubusercontent.com/1876302/87291318-b8a34a80-c531-11ea-86a8-e1352e5151be.png)
heartacker commented 2020-07-22 02:10:08 -05:00 (Migrated from github.com)

hi,it seem that this problem has some to do with highlighted-rule,
eg: work well while input mcu.Core and hang when input impor
image

hi,it seem that this problem has some to do with highlighted-rule, eg: work well while input `mcu.Core` and hang when input `impor` ![image](https://user-images.githubusercontent.com/1876302/88145497-110ed200-cc2d-11ea-854d-197212c7dbe2.png)
siegfriedpammer commented 2021-03-08 09:28:06 -06:00 (Migrated from github.com)

I just tried to reproduce this using a project targetting net5.0. I was unable to reproduce it. Is this still a problem using recent net5.0? Thanks!

I just tried to reproduce this using a project targetting net5.0. I was unable to reproduce it. Is this still a problem using recent net5.0? Thanks!
heartacker commented 2021-03-08 09:32:44 -06:00 (Migrated from github.com)

I just tried to reproduce this using a project targetting net5.0. I was unable to reproduce it. Is this still a problem using recent net5.0? Thanks!

thanks, finall we have found that i upgrade my embed-font Cascadia Codewhich caused this issues. there is nothing
to do with avalonedit. thanks

> I just tried to reproduce this using a project targetting net5.0. I was unable to reproduce it. Is this still a problem using recent net5.0? Thanks! thanks, finall we have found that i upgrade my embed-font `Cascadia Code`which caused this issues. there is nothing to do with avalonedit. thanks
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-icsharpcode/AvalonEdit#241
No description provided.