Skip to content
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

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 this issue Jan 16, 2024 · 9 comments · May be fixed by #15063

Comments

@klousCan
Copy link

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

  • OS: [Mac 14.1.2 (23B92)]
  • Avalonia-Version: [11.0.0 and 11.0.6]

Additional context

.Net Version 6.0 and 8.0

@klousCan klousCan added the bug label Jan 16, 2024
@klousCan
Copy link
Author

log.log
Verbose logs

@Gillibald
Copy link
Contributor

Gillibald commented Jan 16, 2024

_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

@Gillibald Gillibald self-assigned this Jan 16, 2024
@klousCan
Copy link
Author

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

@Gillibald
Copy link
Contributor

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

@Gillibald
Copy link
Contributor

I can not reproduce the issue with current master

@timunie
Copy link
Contributor

timunie commented Jan 30, 2024

@klousCan can you test nightly builds?

@klousCan
Copy link
Author

klousCan commented Feb 2, 2024

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

@timunie
Copy link
Contributor

timunie commented Feb 2, 2024

@klousCan which package ID?

@klousCan
Copy link
Author

klousCan commented Feb 2, 2024

11.1.999-cibuild0044315-beta @timunie

klousCan referenced this issue in klousCan/Avalonia Mar 21, 2024
I temporarily use try catch to get out of bounds because I'm not very good at programming in oc
@klousCan klousCan linked a pull request Mar 21, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants