-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 - Crash on bluetooth keyboard device connection and disconnection #15903
Comments
Can you attach any logs related to the crash? Collected from the app or from the logcat. |
I got everything I could from logcat, I see some Avalonia related logs but also included some of the surrounding logs. There appears to be several Avalonia errors related to buffers and window management. |
@maxkatz6 I've acquired a more useful stack trace through some logging I setup here: Click To Expand
|
@ArchangelJTW that's intersting. I wonder if it will be enough to add this new constructor with shared code as the main one: AvaloniaView. |
I would like to note the issue is still present on nightly 11.1.999 |
According to @workgroupengineering 's research, this was expected behavior without including the flags I recommend this information be added somewhere in the android documentation, so it can easily be found, if it is not present already. |
Describe the bug
App crashes if bluetooth keyboard device is connected or disconnected while it is open.
To Reproduce
Connect or disconnect a bluetooth keyboard device to an Android device with an Avalonia Android App open.
Expected behavior
Avalonia should be able to handle any changes in input on mobile during runtime, such as a bluetooth keyboard being connected or disconnected.
Avalonia version
11.1.0-beta2
OS
Android
Additional context
I'm developing an app that uses a barcode scanner. Barcode scanners for those who don't know typically, and in this case, just function as keyboards (Android even detects it as if it's a keyboard). This one is connected through bluetooth.
If the app is running and the bluetooth scanner is connected or disconnected the app crashes,
I have not been able to get any useful debugging information as of yet.
The text was updated successfully, but these errors were encountered: