Bug 43643 - App crashes while taking a zoomed in photo
Summary: App crashes while taking a zoomed in photo
Status: CONFIRMED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll (show other bugs)
Version: XI 9.8 (tvOS / C7)
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-08-23 00:52 UTC by Tristan
Modified: 2016-09-01 00:06 UTC (History)
4 users (show)

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


Attachments
Exception (65.33 KB, image/png)
2016-08-23 00:52 UTC, Tristan
Details
Repro (152.86 KB, application/x-7z-compressed)
2016-08-25 01:42 UTC, Tristan
Details
System log from iOS 8.0 confirmation (6.16 KB, text/plain)
2016-09-01 00:05 UTC, Brendan Zagaeski (Xamarin Support)
Details
Crash log from iOS 8.0 confirmation (48.00 KB, text/plain)
2016-09-01 00:05 UTC, Brendan Zagaeski (Xamarin Support)
Details

Description Tristan 2016-08-23 00:52:43 UTC
Created attachment 17167 [details]
Exception

Application crashes after taking a zoomed in photo. Isn't 100% reproducible.

1. Launch camera
2. Pinch to zoom in on object
3. Take photo
4. Use photo
5. App may crash


Copied from here
https://forums.xamarin.com/discussion/69130/app-crashes-while-taking-a-zoomed-in-photo#latest

2016-06-16 13:19:45.688 MI[2997:1711407] critical: 0 App 0x070aad35 mono_handle_native_sigsegv + 240
2016-06-16 13:19:45.689 MI[2997:1711407] critical: 1 App 0x070b4a95 mono_sigsegv_signal_handler + 212
2016-06-16 13:19:45.689 MI[2997:1711407] critical: 2 libsystem_platform.dylib 0x2546585f _sigtramp + 42
2016-06-16 13:19:45.689 MI[2997:1711407] critical: 3 Foundation 0x25f56c81 NSFireDelayedPerform + 468
2016-06-16 13:19:45.689 MI[2997:1711407] critical: 4 CoreFoundation 0x256f81f7 + 14
2016-06-16 13:19:45.689 MI[2997:1711407] critical: 5 CoreFoundation 0x256f7e29 + 936
2016-06-16 13:19:45.689 MI[2997:1711407] critical: 6 CoreFoundation 0x256f5c75 + 1500
2016-06-16 13:19:45.689 MI[2997:1711407] critical: 7 CoreFoundation 0x25644289 CFRunLoopRunSpecific + 516
2016-06-16 13:19:45.689 MI[2997:1711407] critical: 8 CoreFoundation 0x2564407d CFRunLoopRunInMode + 108
2016-06-16 13:19:45.689 MI[2997:1711407] critical: 9 GraphicsServices 0x26c60af9 GSEventRunModal + 160
2016-06-16 13:19:45.689 MI[2997:1711407] critical: 10 UIKit 0x29d692c5 UIApplicationMain + 144
2016-06-16 13:19:45.690 MI[2997:1711407] critical: 11 App 0x01256670 wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 272
2016-06-16 13:19:45.690 MI[2997:1711407] critical: 12 App 0x011d1d40 MonoTouch_UIKit_UIApplication_Main_string___intptr_intptr + 52
2016-06-16 13:19:45.690 MI[2997:1711407] critical: 13 App 0x011d1d00 MonoTouch_UIKit_UIApplication_Main_string + 68
2016-06-16 13:19:45.690 MI[2997:1711407] critical: 14 App 0x004f8260 App_Application_Main_string__ + 232
2016-06-16 13:19:45.690 MI[2997:1711407] critical: 15 App 0x01501528 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
2016-06-16 13:19:45.690 MI[2997:1711407] critical: 16 App 0x070b6f6b mono_jit_runtime_invoke + 1150
2016-06-16 13:19:45.690 MI[2997:1711407] critical: 17 App 0x0710481d mono_runtime_invoke + 88
2016-06-16 13:19:45.690 MI[2997:1711407] critical: 18 App 0x0710808f mono_runtime_exec_main + 282
2016-06-16 13:19:45.690 MI[2997:1711407] critical: 19 App 0x07107ed9 mono_runtime_run_main + 496
2016-06-16 13:19:45.690 MI[2997:1711407] critical: 20 App 0x070a0de9 mono_jit_exec + 48
2016-06-16 13:19:45.690 MI[2997:1711407] critical: 21 App 0x07196a74 xamarin_main + 2072
2016-06-16 13:19:45.691 MI[2997:1711407] critical: 22 App 0x07081c7d main + 112
2016-06-16 13:19:45.691 MI[2997:1711407] critical: 23 libdyld.dylib 0x252f0873 + 2

https://15254b2dcaab7f5478ab-24461f391e20b7336331d5789078af53.ssl.cf1.rackcdn.com/xamarin.vanillaforums.com/FileUpload/d4/667c9579cdf396ce9d49cca61fbf7b.png
In this photo you can see following:
NSInvalidArgumentException Reason: -[Dendrive_IPhone_Forms_CdlCellImageLink didHideZoomSlider:]: unrecognized selector sent to instance
Comment 1 Manuel de la Peña 2016-08-23 08:20:00 UTC
Hello,

Can you please provide some sample code to reproduce the issue as well as the information about your developing environment The easiest way to get exact version information is to use the  "Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" button and copy/paste the version informations (you can use the 
"Copy Information" button).

That way we can identify when is the bug happening and if we might have already fixed in a future release.
Comment 2 Tristan 2016-08-25 01:42:38 UTC
Created attachment 17207 [details]
Repro
Comment 3 Tristan 2016-08-25 01:42:55 UTC
Attached a project. It's random when it will crash. If it doesn't crash after ~10 photos, try relaunching from visual studio. I haven't tried reproducing this from Xamarin studio.

=== Xamarin Studio Business ===

Version 6.0.1 (build 9)
Installation UUID: 4f969ef5-6bf3-4889-92eb-941d1e72a2c8
Runtime:
	Mono 4.4.1 (mono-4.4.0-branch-c7sr0/4747417) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404010000

=== Xamarin.Profiler ===

Not Installed

=== Xamarin.Android ===

Not Installed

=== Xamarin Android Player ===

Not Installed

=== Apple Developer Tools ===

Xcode 7.3.1 (10188.1)
Build 7D1014

=== Xamarin.Mac ===

Not Installed

=== Xamarin.iOS ===

Version: 9.8.1.4 (Xamarin Business)
Hash: 3cf8aae
Branch: c7sr0
Build date: 2016-06-20 16:09:58-0400

=== Build Information ===

Release ID: 600010009
Git revision: e879ce52093257c5c386ad7e390dfaa937fa7f90
Build date: 2016-06-24 11:53:43-04
Xamarin addins: a9252e6df4851fbbed1f9c6228e7b6dd1b475ac5
Build lane: monodevelop-lion-cycle7-sr0

=== Operating System ===

Mac OS X 10.11.6
Darwin  15.6.0 Darwin Kernel Version 15.6.0
    Thu Jun 23 18:25:34 PDT 2016
    root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64



2016-08-25 11:28:23.838 ZoomFormsiOS[966:163991] critical: Stacktrace:
2016-08-25 11:28:23.838 ZoomFormsiOS[966:163991] critical:   at <unknown> <0xffffffff>
2016-08-25 11:28:23.840 ZoomFormsiOS[966:163991] critical:   at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0x0004f>
2016-08-25 11:28:23.842 ZoomFormsiOS[966:163991] critical:   at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/src/UIKit/UIApplication.cs:79
2016-08-25 11:28:23.843 ZoomFormsiOS[966:163991] critical:   at UIKit.UIApplication.Main (string[],string,string) [0x0001c] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/src/UIKit/UIApplication.cs:62
2016-08-25 11:28:23.844 ZoomFormsiOS[966:163991] critical:   at ZoomForms.iOS.Application.Main (string[]) [0x00001] in C:\Users\TristanD.INTELLEDOX\Documents\Visual Studio 2015\Projects\ZoomForms\ZoomForms\ZoomForms.iOS\Main.cs:17
2016-08-25 11:28:23.848 ZoomFormsiOS[966:163991] critical:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0x000ff>
2016-08-25 11:28:23.848 ZoomFormsiOS[966:163991] critical: 
Native stacktrace:
2016-08-25 11:28:24.414 ZoomFormsiOS[966:163991] critical: 	0   ZoomFormsiOS                        0x0008049d mono_handle_native_sigsegv + 240
2016-08-25 11:28:24.415 ZoomFormsiOS[966:163991] critical: 	1   ZoomFormsiOS                        0x00087a23 mono_sigsegv_signal_handler + 222
2016-08-25 11:28:24.416 ZoomFormsiOS[966:163991] critical: 	2   libsystem_platform.dylib            0x20992077 _sigtramp + 42
2016-08-25 11:28:24.417 ZoomFormsiOS[966:163991] critical: 	3   Foundation                          0x21481af5 __NSFireDelayedPerform + 468
2016-08-25 11:28:24.417 ZoomFormsiOS[966:163991] critical: 	4   CoreFoundation                      0x20c2658f <redacted> + 14
2016-08-25 11:28:24.418 ZoomFormsiOS[966:163991] critical: 	5   CoreFoundation                      0x20c261c1 <redacted> + 936
2016-08-25 11:28:24.418 ZoomFormsiOS[966:163991] critical: 	6   CoreFoundation                      0x20c2400d <redacted> + 1484
2016-08-25 11:28:24.419 ZoomFormsiOS[966:163991] critical: 	7   CoreFoundation                      0x20b73229 CFRunLoopRunSpecific + 520
2016-08-25 11:28:24.419 ZoomFormsiOS[966:163991] critical: 	8   CoreFoundation                      0x20b73015 CFRunLoopRunInMode + 108
2016-08-25 11:28:24.419 ZoomFormsiOS[966:163991] critical: 	9   GraphicsServices                    0x22163ac9 GSEventRunModal + 160
2016-08-25 11:28:24.419 ZoomFormsiOS[966:163991] critical: 	10  UIKit                               0x25247189 UIApplicationMain + 144
2016-08-25 11:28:24.420 ZoomFormsiOS[966:163991] critical: 	11  ZoomFormsiOS                        0x004ad134 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 252
2016-08-25 11:28:24.420 ZoomFormsiOS[966:163991] critical: 	12  ZoomFormsiOS                        0x0040e86c UIKit_UIApplication_Main_string___intptr_intptr + 52
2016-08-25 11:28:24.420 ZoomFormsiOS[966:163991] critical: 	13  ZoomFormsiOS                        0x0040e82c UIKit_UIApplication_Main_string___string_string + 204
2016-08-25 11:28:24.421 ZoomFormsiOS[966:163991] critical: 	14  ZoomFormsiOS                        0x001465a8 ZoomForms_iOS_Application_Main_string__ + 152
2016-08-25 11:28:24.421 ZoomFormsiOS[966:163991] critical: 	15  ZoomFormsiOS                        0x00394600 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
2016-08-25 11:28:24.421 ZoomFormsiOS[966:163991] critical: 	16  ZoomFormsiOS                        0x0008942b mono_jit_runtime_invoke + 1562
2016-08-25 11:28:24.422 ZoomFormsiOS[966:163991] critical: 	17  ZoomFormsiOS                        0x000cd873 mono_runtime_invoke + 102
2016-08-25 11:28:24.422 ZoomFormsiOS[966:163991] critical: 	18  ZoomFormsiOS                        0x000d0e31 mono_runtime_exec_main + 284
2016-08-25 11:28:24.422 ZoomFormsiOS[966:163991] critical: 	19  ZoomFormsiOS                        0x00145938 xamarin_main + 2232
2016-08-25 11:28:24.423 ZoomFormsiOS[966:163991] critical: 	20  ZoomFormsiOS                        0x00daad5f main + 112
2016-08-25 11:28:24.424 ZoomFormsiOS[966:163991] critical: 	21  libdyld.dylib                       0x2081b873 <redacted> + 2
2016-08-25 11:28:24.424 ZoomFormsiOS[966:163991] critical: 
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
Comment 4 Brendan Zagaeski (Xamarin Support) 2016-09-01 00:05:33 UTC
Created attachment 17288 [details]
System log from iOS 8.0 confirmation

## Confirmation status: Confirmed on Cycle 7 – Service Release 0

Many thanks for the test case and steps to replicate!

I was able to hit the crash on 1/4 trials after approximately 20 repetitions of the steps to replicate as described in Comment 0. 

In 3/4 trials I was not able to hit the crash even after more than 50 repetitions of the steps to replicate.  So this problem it might require a bit more characterization before it would be easy to verify whether it has been fixed in more recent versions.

I have so far only tested on one device running an older iOS version (8.0).  One thing to check might be whether the problem is easier to replicate on a more recent iOS version.



### BAD

VS 2015 Professional Update 1
XamarinVS 4.1.1.3 (34a92cd)

Xamarin.iOS 9.8.1.4 (c7sr0: 3cf8aae)
Mono 4.4.1 (mono-4.4.0-branch-c7sr0/4747417)
Xcode 7.3 (10183.3), Build 7D175

Test device: iPad Mini 2, iOS 8.0
Comment 5 Brendan Zagaeski (Xamarin Support) 2016-09-01 00:05:50 UTC
Created attachment 17289 [details]
Crash log from iOS 8.0 confirmation

Note You need to log in before you can comment on or make changes to this bug.