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
We have migrated our app to .NET 9 from .NET 8 and we were using community toolkit camera for taking pictures. After updating the toolkit to latest version which was released on 18th December 2024, it started crashing the app .
It is throwing below error
[mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method not found: void AndroidX.Camera.Core.Preview.SetSurfaceProvider(AndroidX.Camera.Core.Preview/ISurfaceProvider)
[mono-rt] at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[<StartUseCase>d__14](<StartUseCase>d__14& stateMachine)
[mono-rt] at CommunityToolkit.Maui.Core.CameraManager.StartUseCase(CancellationToken token)
[mono-rt] at CommunityToolkit.Maui.Core.CameraManager.<>c__DisplayClass41_0.<<PlatformConnectCamera>b__0>d.MoveNext() in /_/src/CommunityToolkit.Maui.Camera/CameraManager.android.cs:line 164
[mono-rt] --- End of stack trace from previous location ---
[mono-rt] at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
[mono-rt] at Android.App.SyncContext.<>c__DisplayClass2_0.<Post>b__0() in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.App/SyncContext.cs:line 36
[mono-rt] at Java.Lang.Thread.RunnableImplementor.Run() in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Java.Lang/Thread.cs:line 37
[mono-rt] at Java.Lang.IRunnableInvoker.n_Run(IntPtr jnienv, IntPtr native__this) in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net9.0/android-35/mcw/Java.Lang.IRunnable.cs:line 59
[mono-rt] at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PP_V(_JniMarshal_PP_V callback, IntPtr jnienv, IntPtr klazz) in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:line 22
Expected Behavior
Camera should open with preview and user should be able to capture images.
Steps To Reproduce
Download the samples provided in the community toolkit repo
Update the toolkit camera version to latest version
Hi @dharamhbtik! We have added the
needs reproduction
label to this issue, which indicates that we are unable to take further action until you provide a reproduction sample that we can use to reproduce + fix your bug. In accordance with the Reporting a bug section of our Contributing.md that you confirmed reading before you submitted this Issue, we ask that every Issue author provide a link to an open-source repository containing the reproduction sample app. This issue will be closed automatically in 5 days if we do not receive a reproduction sample from you. Please feel free to re-open this Issue once you have provided a reproduction sample.
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
We have migrated our app to .NET 9 from .NET 8 and we were using community toolkit camera for taking pictures. After updating the toolkit to latest version which was released on 18th December 2024, it started crashing the app .
It is throwing below error
Expected Behavior
Camera should open with preview and user should be able to capture images.
Steps To Reproduce
Link to public reproduction project repository
https://github.com/CommunityToolkit/Maui/tree/b01a18dcef03f955523b8ec71a3f02ec98c96824/samples/CommunityToolkit.Maui.Sample
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: