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

Android screen rotation causes crash #16588

Closed
3rob3 opened this issue Aug 3, 2024 · 3 comments · Fixed by #16616
Closed

Android screen rotation causes crash #16588

3rob3 opened this issue Aug 3, 2024 · 3 comments · Fixed by #16616

Comments

@3rob3
Copy link

3rob3 commented Aug 3, 2024

Describe the bug

After updating my Avalonia versions to 11.1.1 (from 11.0.13), screen rotations cause my Android app to crash. When debugging on emulator the error is:
System.NotSupportedException: 'Unable to activate instance of type Avalonia.Android.AvaloniaView from native handle 0x7fffc4d5fc38 (key_handle 0x82127b2).'

To Reproduce

I'm not sure exactly, as the demo/default app created with a new project rotates fine.

Expected behavior

Doesn't crash :). As mentioned this doesn't happen in 11.0.13.

Avalonia version

11.1.1

OS

No response

Additional context

No response

@3rob3 3rob3 added the bug label Aug 3, 2024
@3rob3
Copy link
Author

3rob3 commented Aug 4, 2024

@maxkatz6
Copy link
Member

maxkatz6 commented Aug 5, 2024

Seems to be the same as #16468 and #15903

@3rob3
Copy link
Author

3rob3 commented Aug 5, 2024

Seems to be the same as #16468 and #15903

The ConfigurationChanges? I had found and tried that already. Same thing happens.

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.

2 participants