AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
25.26k stars 2.19k forks source link

After using Cefglue in Mac and enabling off-screen rendering, typing any character using the Chinese Simplified input method causes the program to crash #14222

Open klousCan opened 8 months ago

klousCan commented 8 months ago

Describe the bug

After using Cefglue in Mac and enabling off-screen rendering, typing any character using the Chinese Simplified input method causes the program to crash

To Reproduce

Steps to reproduce the behavior:

1.Download the project https://github.com/OutSystems/CefGlue/tree/avalonia11 2.Modify the Program.cs file of the CefGlue.Demo.Avalonia project to enable off-screen rendering

image

3.Run the CefGlue.Demo.Avalonia project and switch to the Simplified Pinyin input method and type any character (for example: q)

image

Expected behavior

After using Cefglue in Mac and enabling off-screen rendering, typing any character using the Chinese Simplified input method causes the program to crash

Screenshots

image

Environment

Additional context

.Net Version 6.0 and 8.0

klousCan commented 8 months ago

log.log Verbose logs

Gillibald commented 8 months ago

_text is probably null here or does not cover requested range: https://github.com/AvaloniaUI/Avalonia/blob/master/native/Avalonia.Native/src/OSX/AvnView.mm#L678

klousCan commented 8 months ago

Is there a plan to fix this issue, or test it out in nightly-build @Gillibald

Gillibald commented 8 months ago

I need to reproduce the issue locally to verify my fix. A fix will be linked to this issue.

Gillibald commented 7 months ago

I can not reproduce the issue with current master

timunie commented 7 months ago

@klousCan can you test nightly builds?

klousCan commented 7 months ago

@timunie I just tested it with nightly builds and still got the same result.

timunie commented 7 months ago

@klousCan which package ID?

klousCan commented 7 months ago

11.1.999-cibuild0044315-beta @timunie