smstuebe / xamarin-fingerprint

Xamarin and MvvMCross plugin for authenticate a user via fingerprint sensor
Microsoft Public License
494 stars 118 forks source link

App becomes unresponsive when using plugin.fingerprint on net8-pre5 #237

Open tranb3r opened 1 year ago

tranb3r commented 1 year ago

Steps to reproduce

  1. Open the attached repro (very similar to maui sample app)
  2. Build in Release and launch the app
  3. Tap on Authenticate (it should check fingerprint and then navigate to a page full of text).
  4. Do that a few times (Authenticate, Navigate to page full of text, Back).
  5. At some point, the app becomes unresponsive. UI is totally frozen, you have to kill it.

This is on Android. I have not tested iOS. It only happens in Release. No issue in Debug. It only happens with net8-pre5. No issue with net7. It seems to happen only if the page is full of text. No issue (it seems) if there is only one row of labels.

Here is the repro.

Expected behavior

The app should not become unresponsive.

Actual behavior

The app becomes unresponsive.

Crashlog

No crash. Nothing special in the log.

Configuration

Version of the Plugin: 3.0.0-beta.1

Platform: Android 33

Framework net8-pre5

Device: Xiaomi Redmi 7 (not important)

smsissuechecker commented 1 year ago

Hi @tranb3r,

I'm the friendly issue checker. Thanks for using the issue template :star2: I appreciate it very much. I'm sure, the maintainers of this repository will answer, soon.

tranb3r commented 1 year ago

I've managed to workaround the issue by disabling marshal methods:

<AndroidEnableMarshalMethods>false</AndroidEnableMarshalMethods>
tranb3r commented 1 year ago

https://github.com/xamarin/xamarin-android/issues/8147