Bug 53904 - Crash while async pop
Summary: Crash while async pop
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.4
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Paul DiPietro [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2017-03-24 12:29 UTC by Shay
Modified: 2017-06-19 18:22 UTC (History)
3 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 NOT_REPRODUCIBLE

Description Shay 2017-03-24 12:29:41 UTC
This is a crash which happens once in a while, and not in a very consistent way.
The Hockeyapp report looks like this:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'View has lost track of its superview, most likely through unsupported use of CALayer API on the view's layer. If this isn't a crash yet, it will be in the near future. Problem view: <Xamarin_Forms_Platform_iOS_Platform_DefaultRenderer: 0xdeab160; frame = (160 163.25; 0 0); layer = <CALayer: 0xdeab130>> Expected parent: <Xamarin_Forms_Platform_iOS_Platform_DefaultRenderer: 0xdeab020; frame = (0 0; 320 506); layer = <CALayer: 0xdeab100>> Break on UIViewReportBrokenSuperviewChain to debug.'

Incident Identifier: F5497C39-1658-4DD8-9426-9F92AC234B39
CrashReporter Key:   8E4E962A-9F94-40C2-9445-E07099FDA87C
Hardware Model:      iPhone5,3
Process:         ClimbTag.iOS [12160]
Path:            /var/containers/Bundle/Application/63EE50E7-10E1-4F14-897C-6E4411A33C08/ClimbTag.iOS.app/ClimbTag.iOS
Identifier:      com.climbtag.climbtag
Version:         6.0 (1.0)
Code Type:       ARM
Parent Process:  ??? [1]

Date/Time:       2017-03-23T01:29:26Z
Launch Time:     2017-03-23T01:27:39Z
OS Version:      iPhone OS 10.2.1 (14D27)
Report Version:  104

Exception Type:  SIGABRT
Exception Codes: #0 at 0x1bb60ad4
Crashed Thread:  0

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'View has lost track of its superview, most likely through unsupported use of CALayer API on the view's layer. If this isn't a crash yet, it will be in the near future. 
	Problem view: <Xamarin_Forms_Platform_iOS_Platform_DefaultRenderer: 0xdeab160; frame = (160 163.25; 0 0); layer = <CALayer: 0xdeab130>>
	Expected parent: <Xamarin_Forms_Platform_iOS_Platform_DefaultRenderer: 0xdeab020; frame = (0 0; 320 506); layer = <CALayer: 0xdeab100>>
Break on UIViewReportBrokenSuperviewChain to debug.'

Last Exception Backtrace:
0   CoreFoundation                       0x1c3b8df7 0x1c2b7000 + 1056247
1   libobjc.A.dylib                      0x1b61b077 0x1b614000 + 28791
2   CoreFoundation                       0x1c3b8cd1 0x1c2b7000 + 1055953
3   Foundation                           0x1ccb3987 0x1cc10000 + 670087
4   UIKit                                0x2173a905 0x21456000 + 3033349
5   UIKit                                0x2173ac87 0x21456000 + 3034247
6   UIKit                                0x21d516af 0x21456000 + 9418415
7   UIKit                                0x21d51861 0x21456000 + 9418849
8   UIKit                                0x21460787 0x21456000 + 42887
9   UIKit                                0x214605eb 0x21456000 + 42475
10  UIKit                                0x21752949 0x21456000 + 3131721
11  UIKit                                0x2145f7a5 0x21456000 + 38821
12  UIKit                                0x2153fdaf 0x21456000 + 957871
13  libXamarin.iOS.dll.dylib             0x00ea11bc 0xdc8000 + 889276
14  libXamarin.iOS.dll.dylib             0x00dd80b4 0xdc8000 + 65716
15  libXamarin.Forms.Platform.iOS.dl...  0x02e90a10 0x2e68000 + 166416
16  libXamarin.Forms.Platform.iOS.dl...  0x02e91a04 0x2e68000 + 170500
17  libXamarin.Forms.Platform.iOS.dl...  0x02e90314 0x2e68000 + 164628
18  libXamarin.Forms.Platform.iOS.dl...  0x02e8ff48 0x2e68000 + 163656
19  libXamarin.Forms.Platform.iOS.dl...  0x02e943a4 0x2e68000 + 181156
20  libXamarin.iOS.dll.dylib             0x00e243cc 0xdc8000 + 377804
21  libXamarin.Forms.Platform.iOS.dl...  0x02e84618 0x2e68000 + 116248
22  libXamarin.Forms.Platform.iOS.dl...  0x02e86418 0x2e68000 + 123928
23  libXamarin.Forms.Core.dll.dylib      0x02929160 0x27c8000 + 1446240
24  libXamarin.Forms.Core.dll.dylib      0x029291fc 0x27c8000 + 1446396
25  libXamarin.Forms.Core.dll.dylib      0x02924e44 0x27c8000 + 1429060
26  libXamarin.Forms.Core.dll.dylib      0x029452c4 0x27c8000 + 1561284
27  libXamarin.Forms.Core.dll.dylib      0x02871e44 0x27c8000 + 695876
28  libXamarin.Forms.Core.dll.dylib      0x0287180c 0x27c8000 + 694284
29  libSystem.dll.dylib                  0x01a0b30c 0x19f4000 + 94988
30  libSystem.dll.dylib                  0x01a0b514 0x19f4000 + 95508
31  libSystem.dll.dylib                  0x01a0aebc 0x19f4000 + 93884
32  libmscorlib.dll.dylib                0x01151dd4 0x1108000 + 302548
33  libXamarin.Forms.Core.dll.dylib      0x02869b9c 0x27c8000 + 662428
34  libXamarin.Forms.Core.dll.dylib      0x02a964b0 0x27c8000 + 2942128
35  libXamarin.Forms.Core.dll.dylib      0x02863e98 0x27c8000 + 638616
36  libXamarin.Forms.Platform.iOS.dl...  0x02f3b4bc 0x2e68000 + 865468
37  libXamarin.Forms.Platform.iOS.dl...  0x02fa5018 0x2e68000 + 1298456
38  libXamarin.Forms.Platform.iOS.dl...  0x02f2ffc8 0x2e68000 + 819144
39  libmscorlib.dll.dylib                0x013fc970 0x1108000 + 3098992
40  libmscorlib.dll.dylib                0x013612c0 0x1108000 + 2462400
41  libmscorlib.dll.dylib                0x01265f88 0x1108000 + 1433480
42  libmscorlib.dll.dylib                0x012667cc 0x1108000 + 1435596
43  libmscorlib.dll.dylib                0x012758a8 0x1108000 + 1497256
44  libmscorlib.dll.dylib                0x01275684 0x1108000 + 1496708
45  libmscorlib.dll.dylib                0x01266710 0x1108000 + 1435408
46  libmscorlib.dll.dylib                0x0126651c 0x1108000 + 1434908
47  libmscorlib.dll.dylib                0x012716a0 0x1108000 + 1480352
48  libXamarin.iOS.dll.dylib             0x00e42138 0xdc8000 + 500024
49  libXamarin.iOS.dll.dylib             0x00e1f0c4 0xdc8000 + 356548
50  libmscorlib.dll.dylib                0x013c481c 0x1108000 + 2869276
51  libmonosgen-2.0.dylib                0x00438359 0x3e8000 + 328537
52  libmonosgen-2.0.dylib                0x004966e1 0x3e8000 + 714465
53  libmonosgen-2.0.dylib                0x00496677 0x3e8000 + 714359
54  ClimbTag.iOS                         0x000dc3c3 0xd5000 + 29635
55  ClimbTag.iOS                         0x000dc7a7 0xd5000 + 30631
56  Foundation                           0x1cd04d4b 0x1cc10000 + 1002827
57  CoreFoundation                       0x1c37471b 0x1c2b7000 + 775963
58  CoreFoundation                       0x1c374225 0x1c2b7000 + 774693
59  CoreFoundation                       0x1c3724fb 0x1c2b7000 + 767227
60  CoreFoundation                       0x1c2c1533 0x1c2b7000 + 42291
61  CoreFoundation                       0x1c2c1341 0x1c2b7000 + 41793
62  GraphicsServices                     0x1da98bfd 0x1da8f000 + 39933
63  UIKit                                0x214cfe67 0x21456000 + 499303
64  UIKit                                0x214ca591 0x21456000 + 476561
65  libXamarin.iOS.dll.dylib             0x00e9f6a8 0xdc8000 + 882344
66  libXamarin.iOS.dll.dylib             0x00e3baa8 0xdc8000 + 473768
67  libXamarin.iOS.dll.dylib             0x00e3ba68 0xdc8000 + 473704
68  libClimbTag.iOS.exe.dylib            0x0069625c 0x690000 + 25180
69  libmscorlib.dll.dylib                0x013c481c 0x1108000 + 2869276
70  libmonosgen-2.0.dylib                0x00438359 0x3e8000 + 328537
71  libmonosgen-2.0.dylib                0x004966e1 0x3e8000 + 714465
72  libmonosgen-2.0.dylib                0x00498c87 0x3e8000 + 724103
73  libmonosgen-2.0.dylib                0x00421e59 0x3e8000 + 237145
74  libxamarin-debug.dylib               0x001bfa34 0x189000 + 223796
75  ClimbTag.iOS                         0x001026b1 0xd5000 + 186033
76  libdyld.dylib                        0x1ba8b50b 0x1ba88000 + 13579
Comment 1 Paul DiPietro [MSFT] 2017-03-24 13:37:55 UTC
A minimized reproduction would be very useful even if it's inconsistent, along with more information about whether it only happens on the device listed or other devices/emulators as well.
Comment 2 Shay 2017-03-24 14:18:28 UTC
At the moment, I only saw this happening on the actual device (I'm not using emulators for testing because the app requires bluetooth).
It's unlikely that I will be able to provide minimal reproduction as this is a part of a large app.
I'll keep an eye on whether this happens again.
Comment 3 Paul DiPietro [MSFT] 2017-06-19 18:22:18 UTC
This issue will be closed since we'll reasonably assume this is no longer an issue. If you can in fact find that it's still occurring and can reproduce it (even if it requires a physical device), please reopen this and attach a minimized reproduction project if it occurs with the latest prerelease or nightly builds.