-
-
Notifications
You must be signed in to change notification settings - Fork 361
[iOS] iOS 14, ObjectDisposedException MediaPickerController #910
Comments
Had a similar issue (probably the same) with the following stacktrace:
Versions: |
Had a metadata exception issue, when i set SaveMetaData = true, i got System.ObjectDisposedException Message=Cannot access a disposed object. Object name: 'MediaPickerController'. So same issue, i don't know how to work around it |
@zackrykalash Did you find a workaround for this? |
Anyone who has a workaround for this? I'm still having this issue. |
I'm now getting similar errors in our crash tracking:
This was on an iPhone X, iOS 14.7.1 |
I believe I have this fixed in next beta |
@jamesmontemagno tried the latest pre-release version and it has the same issue.
|
Is there any workaround or solution for this? |
@pspeybro no workaround that I have found yet, if you do please let me know too! :) |
Hi! |
Hello, |
I'm getting a similar issue any luck with a workaround? |
If anyone wants to give a stab at fixing this issue, let me know and I will give you all some pointers! @volcano619 @callumideagen @flipper09112 @pspeybro ! Essentially, (save your changes first), then use the debuggable version of this library:
Then during the runtime
|
@saamerm I am currently digging into this issue. Sadly an end user has seen it but I am yet to reproduce it in a development environment. Is it specific to a Pro device? |
@saamerm I have opened a draft PR with some experimental changes in it. I haven't been able to reliably reproduce the issue but as I mention in my PR the changes don't appear to make things any worse. Is there anyone that can reliably reproduce this that could test these changes out? |
@bijington I can check, I'll report back if I'm able to reproduce it |
@volcano619 thanks. I can confirm that so far my end user seeing this issue is unable to do so with the changes introduced. I must admit even they couldn't reproduce it regularly though |
An ObjectDisposedException is thrown when taking photo with
TakePhotoAsync
. However it doesn't crash and the photo can still be used.Here is exception details:
System.ObjectDisposedException Message=Cannot access a disposed object. Object name: 'MediaPickerController'.
As you proposed I tried to migrate to Xamarin.essentials.MediaPicker unfortunatly it is currently missing options (at least AllowCropping, DefaultCamera and RotateImage) and the multiple pictures pick is not proposed.
Bug Information
Version Number of Plugin: 5.0.1
Device Tested On: iPhone XR
Version of VS: 16.7.7
Version of Xamarin: 16.7.000.463
Versions of other things you are using: Version of Xamarin;iOS: 14.2.0.12
Steps to reproduce the Behavior
Call
TakePhotoAsync
Expected Behavior
No exception thrown
Actual Behavior
An ObjectDisposedException is thrown
Screenshots
The text was updated successfully, but these errors were encountered: