You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling ShowAsync() on a BottomSheet object from The49.Maui.BottomSheet, the app crashes on both Android and iOS with the following error:
System.NullReferenceException: 'Object reference not set to an instance of an object.'
Stack Trace (Excerpt)
0xFFFFFFFFFFFFFFFF in Android.Runtime.RuntimeNativeMethods.monodroid_debugger_unhandled_exception
0x1A in Android.Runtime.JNINativeWrapper._unhandled_exception
0x1D in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PP_V
...
0xC in Android.App.SyncContext.
0xE in Java.Lang.Thread.RunnableImplementor.Run
0x8 in Java.Lang.IRunnableInvoker.n_Run
Expected Behavior
The BottomSheet should open without crashing, and CameraView should function correctly inside it.
Findings
Works fine if CameraView is placed inside a ContentPage instead of BottomSheet.
The issue might be related to lifecycle handling, missing context, or rendering limitations inside BottomSheet.
Environment
.NET MAUI Version: net8.0
CameraScanner.Maui Version: 1.4.19
The49.Maui.BottomSheet Version: 8.0.3
Devices Tested:
Samsung Galaxy S23 (Android)
iPhone 14 (iOS)
Steps to Reproduce
Download the source code of sample app attached
Run the sample app in any Android or iOS device
Click on Request Camera Permission and grant permission to camera usage
Click on QR Code Scanner button
Expected Behavior
The BottomSheet should open, and the CameraView should function correctly.
Actual Behavior
The app crashes with a NullReferenceException.
Basic Information
Version with issue: 1.4.19
Last known good version: none
Screenshots, Attachments, Links
Source code for sample app with reproducing the issue is attached
Description
When calling
ShowAsync()
on aBottomSheet
object from The49.Maui.BottomSheet, the app crashes on both Android and iOS with the following error:Stack Trace (Excerpt)
Expected Behavior
The
BottomSheet
should open without crashing, andCameraView
should function correctly inside it.Findings
CameraView
is placed inside a ContentPage instead ofBottomSheet
.BottomSheet
.Environment
net8.0
1.4.19
8.0.3
Steps to Reproduce
Expected Behavior
Actual Behavior
Basic Information
Screenshots, Attachments, Links
Source code for sample app with reproducing the issue is attached
CameraDemoApp.zip
The text was updated successfully, but these errors were encountered: