jamesmontemagno / MediaPlugin

Take & Pick Photos and Video Plugin for Xamarin and Windows
MIT License
711 stars 360 forks source link

[Crash] mono.java.lang.RunnableImplementor.run RunnableImplementor.java, line 30 Java.Lang.IllegalArgumentException: View=DecorView@d126374[MediaPickerActivity] not attached to window manager #926

Closed sbs-Arockia-Jenitha closed 2 years ago

sbs-Arockia-Jenitha commented 3 years ago

ONLY Post issues against Latest Beta!!!

We are using Media Plugin for Take photo and Take Video.

https://gist.github.com/sbs-Arockia-Jenitha/d725b80fc1a3618c13266f90542f5d33

Bug Information

Version Number of Plugin: 5.0.1 Device Tested On: Galaxy S21 5G(Android 11) Simulator Tested On: Version of VS: 16.8.6 Version of Xamarin: 5.0.0.1931 Versions of other things you are using:

Steps to reproduce the Behavior

unknown

Expected Behavior

App will not be crash

Actual Behavior

App Crashed

Code snippet

Screenshots

fvalentiner commented 3 years ago

@sbs-Arockia-Jenitha we are having the same Issue in some devices not all with version 5.1. Have you been able to solve it?

sbs-Arockia-Jenitha commented 3 years ago

@sbs-Arockia-Jenitha we are having the same Issue in some devices not all with version 5.1. Have you been able to solve it?

This issue occurs for android and ios while open the Camera to take video or photo. But not resolved.

fvalentiner commented 3 years ago

@sbs-Arockia-Jenitha we went back to 5.0.1 and made sure all Projects: Core, iOS and Android had the same version and it is now working. Hope it works for you as well

sbs-Arockia-Jenitha commented 3 years ago

@fvalentiner We are using latest version of Plugin.Media. and also getting this issue from this version too.

sbs-Arockia-Jenitha commented 3 years ago

@fvalentiner Any update about this issue?

chloehawthorne commented 3 years ago

any updates on this issue?

fvalentiner commented 3 years ago

@sbs-Arockia-Jenitha @cchhllooee are you using any other plugins? We were using AcrUserDialogs and was not handling the lifetime of the view model correctly and it was affecting the camera in the Plugin.Media.

It was calling for a dialog while the camera was active and it was giving us this error

chloehawthorne commented 3 years ago

Thank you :)

jamesmontemagno commented 2 years ago

Unable to reproduce at all working fine. Do NOT call from a pop up dialog.

navkar commented 2 years ago

See the attached screenshot! - version 5.0.1

Screenshot 2022-10-25 124447