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
26.16k stars 2.27k 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 10 months ago

klousCan commented 10 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 10 months ago

log.log Verbose logs

Gillibald commented 10 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 10 months ago

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

Gillibald commented 10 months ago

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

Gillibald commented 10 months ago

I can not reproduce the issue with current master

timunie commented 10 months ago

@klousCan can you test nightly builds?

klousCan commented 10 months ago

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

timunie commented 10 months ago

@klousCan which package ID?

klousCan commented 10 months ago

11.1.999-cibuild0044315-beta @timunie