Bug 45811 - Fatal crash trying to use MediaPicker for Xamarin Forms
Summary: Fatal crash trying to use MediaPicker for Xamarin Forms
Status: RESOLVED DUPLICATE of bug 46186
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-10-23 01:45 UTC by Shay
Modified: 2016-10-31 21:47 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 46186

Description Shay 2016-10-23 01:45:32 UTC
I'm trying to use MediaPicker with a Xamarin Forms project. 
I've installed the MediaPicker nuget package: https://github.com/detroitpro/MediaPicker.Plugin
It crashes on the iOS test app with the following output being presented on the application output window:

2016-10-22 21:38:44.293 TestAndSampleAppiOS[5985:1552968] critical: 
Native stacktrace:

2016-10-22 21:38:44.436 TestAndSampleAppiOS[5985:1552968] critical: 	0   TestAndSampleAppiOS                 0x00114f11 mono_handle_native_sigsegv + 240
2016-10-22 21:38:44.436 TestAndSampleAppiOS[5985:1552968] critical: 	1   libsystem_platform.dylib            0x1d4af26d _sigtramp + 24
2016-10-22 21:38:44.437 TestAndSampleAppiOS[5985:1552968] critical: 	2   libsystem_kernel.dylib              0x1d3fbd8f <redacted> + 64
2016-10-22 21:38:44.437 TestAndSampleAppiOS[5985:1552968] critical: 	3   libsystem_kernel.dylib              0x1d3fbdd9 system_set_sfi_window + 0
2016-10-22 21:38:44.437 TestAndSampleAppiOS[5985:1552968] critical: 	4   TCC                                 0x1fb04e85 <redacted> + 228
2016-10-22 21:38:44.438 TestAndSampleAppiOS[5985:1552968] critical: 	5   TCC                                 0x1fb04da1 <redacted> + 0
2016-10-22 21:38:44.438 TestAndSampleAppiOS[5985:1552968] critical: 	6   TCC                                 0x1fb0757b <redacted> + 276
2016-10-22 21:38:44.438 TestAndSampleAppiOS[5985:1552968] critical: 	7   libxpc.dylib                        0x1d4e515f <redacted> + 46
2016-10-22 21:38:44.438 TestAndSampleAppiOS[5985:1552968] critical: 	8   libxpc.dylib                        0x1d4e5101 <redacted> + 26
2016-10-22 21:38:44.439 TestAndSampleAppiOS[5985:1552968] critical: 	9   libdispatch.dylib                   0x1d30a49b <redacted> + 604
2016-10-22 21:38:44.439 TestAndSampleAppiOS[5985:1552968] critical: 	10  libdispatch.dylib                   0x1d30ba91 <redacted> + 378
2016-10-22 21:38:44.440 TestAndSampleAppiOS[5985:1552968] critical: 	11  libdispatch.dylib                   0x1d30b8b7 <redacted> + 106
2016-10-22 21:38:44.440 TestAndSampleAppiOS[5985:1552968] critical: 	12  libsystem_pthread.dylib             0x1d4b1947 _pthread_wqthread + 1168
2016-10-22 21:38:44.440 TestAndSampleAppiOS[5985:1552968] critical: 	13  libsystem_pthread.dylib             0x1d4b149c start_wqthread + 8
2016-10-22 21:38:44.440 TestAndSampleAppiOS[5985:1552968] critical: 
=================================================================

Ways to reproduce:
1. Download MediaPicker for Xamarin Forms package.
2. Update Xamarin Forms package to the latest version (2.3.2.127)
3. Compile and run the TestAndSampleApp.iOS
4. Click on Take Photo

Btw, this also happens on trying to select an image from the gallery.
Comment 1 Shay 2016-10-23 13:28:04 UTC
This also occurs when I'm trying to run the  ContentPageCustomRender example (https://developer.xamarin.com/samples/xamarin-forms/customrenderers/contentpage/)
The crash point was localized to line 167
captureDeviceInput = AVCaptureDeviceInput.FromDevice (captureDevice);
Comment 2 Shay 2016-10-31 21:47:17 UTC

*** This bug has been marked as a duplicate of bug 46186 ***