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

Fix DBus Exception on window close #13997

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

affederaffe
Copy link
Contributor

What does the pull request do?

Fix an issue when Avalonia is instructed to use ibus as IME but ibus is not available, e.g. by settings the env var GTK_IM_MODULE=ibus
The IM context is (somehow) successfully created but doesn't actually exist, so naturally Destroy fails when it's called on Dispose.

What is the current behavior?

The app crashes

What is the updated/expected behavior with this PR?

The exception is caught.

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

None

Obsoletions / Deprecations

None

Fixed issues

#13863

@maxkatz6 maxkatz6 added the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Dec 19, 2023
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0043070-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Dec 22, 2023
Merged via the queue into AvaloniaUI:master with commit 8756fef Dec 22, 2023
6 checks passed
@maxkatz6 maxkatz6 added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Jan 17, 2024
maxkatz6 pushed a commit that referenced this pull request Jan 17, 2024
* Only disconnect from ibus when connected

* Catch exception on Destroy when ime context is successfully created but doesn't actually exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants