Skip to content

Android.Graphics.BitmapFactory.Options crashes with JNI DETECTED ERROR IN APPLICATION: attempt to access field boolean android.graphics.BitmapFactory$Options.inMutable #30780

@philipag

Description

@philipag

Description

When accessing Android.Graphics.BitmapFactory.Options fields, the Android application crashes with the log message "JNI DETECTED ERROR IN APPLICATION: attempt to access field boolean android.graphics.BitmapFactory$Options.inMutable"

The attaches sample shows this in the boiler plate Android app in the added method Bug2():

AndroidOptionsBug.zip

Steps to Reproduce

  1. Build and run the app in debug mode
  2. Click the button
  3. The app crashes when modifying Options fields.

Link to public reproduction project repository

No response

Version with bug

10.0.0-preview.6

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

tested on Android 34 emulator and Android 35 phone

Did you find any workaround?

No

Relevant log output

JNI DETECTED ERROR IN APPLICATION: attempt to access field boolean android.graphics.BitmapFactory$Options.inMutable

Metadata

Metadata

Assignees

Labels

i/regressionThis issue described a confirmed regression on a currently supported versionplatform/androidregressed-in-10-preview1s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions