Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug][iOS] listview / observable collection throwing native error on load #6472

Open
DM1145 opened this issue Jun 10, 2019 · 6 comments
Open
Labels
a/listview Problems with the ListView/TableView e/2 🕑 2 i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often i/regression p/iOS 🍎 t/bug 🐛 up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!
Milestone

Comments

@DM1145
Copy link

DM1145 commented Jun 10, 2019

Description

iOS app throws native error on page load. Page has ObservableCollection and ListView.
Issue noted after upgrading Xamarin Forms to v4.0.0.482984

Expected Behavior

Page loads without issue, listview populated with data.

Actual Behavior

Page starts to load, does not complete loading. ListView does not show items. Below error in console.

Basic Information

  • IDE: Visual Studio for Mac Community Edition, v 8.0.9 (build 5)
  • Platform Target Frameworks:
    • iOS: 12.0, 12.2
  • Affected Devices: All devices attempted

Console Error Message

2019-06-09 17:06:28.217455-0700 cloudLogViewer.iOS[2956:376318] [Assert] Missing animatedCell for newly visible row 1
2019-06-09 17:06:28.226646-0700 cloudLogViewer.iOS[2956:376318] [Assert] Missing animatedCell for newly visible row 3
2019-06-09 17:06:28.235864-0700 cloudLogViewer.iOS[2956:376318] [Assert] Missing animatedCell for newly visible row 9
2019-06-09 17:06:28.246550-0700 cloudLogViewer.iOS[2956:376318] [Assert] Missing animatedCell for newly visible row 10

=================================================================
Native Crash Reporting

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.

=================================================================
Basic Fault Adddress Reporting

Memory around native instruction pointer (0x116afe927):0x116afe917 08 5b 5d e9 21 2d 00 00 90 48 85 ff 74 1e 78 1e .[].!-...H..t.x.
0x116afe927 48 8b 07 f6 40 20 04 0f 85 ee 0a 00 00 48 8d 05 H...@ .......H..
0x116afe937 ed 24 8f 00 48 8b 30 e9 fd 2c 00 00 31 ff 48 89 .$..H.0..,..1.H.
0x116afe947 f8 c3 55 48 89 e5 41 57 41 56 53 50 4c 8b 37 49 ..UH..AWAVSPL.7I

=================================================================
Native stacktrace:

0x1089ff4ad - /Users/dmartin/Library/Developer/CoreSimulator/Devices/9F95FC48-588D-47A8-BE1B-5D5644951BAB/data/Containers/Bundle/Application/6D6E9E11-8978-47D1-8E0D-39C02CC3ECE7/cloudLogViewer.iOS.app/cloudLogViewer.iOS : mono_dump_native_crash_info
0x1089f3c05 - /Users/dmartin/Library/Developer/CoreSimulator/Devices/9F95FC48-588D-47A8-BE1B-5D5644951BAB/data/Containers/Bundle/Application/6D6E9E11-8978-47D1-8E0D-39C02CC3ECE7/cloudLogViewer.iOS.app/cloudLogViewer.iOS : mono_handle_native_crash
0x108a05fa3 - /Users/dmartin/Library/Developer/CoreSimulator/Devices/9F95FC48-588D-47A8-BE1B-5D5644951BAB/data/Containers/Bundle/Application/6D6E9E11-8978-47D1-8E0D-39C02CC3ECE7/cloudLogViewer.iOS.app/cloudLogViewer.iOS : mono_sigsegv_signal_handler
0x118435b5d - /usr/lib/system/libsystem_platform.dylib : _sigtramp
0x7ff03813fe68 - Unknown
0x11d56a3e5 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:]
0x11d56a8c2 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:]
0x11d2afc47 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UITableView _updateWithItems:updateSupport:]
0x11d2a71f5 - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UITableView _endCellAnimationsWithContext:]
0x11d2bfe6f - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UITableView endUpdates]
0x108c52489 - /Users/dmartin/Library/Developer/CoreSimulator/Devices/9F95FC48-588D-47A8-BE1B-5D5644951BAB/data/Containers/Bundle/Application/6D6E9E11-8978-47D1-8E0D-39C02CC3ECE7/cloudLogViewer.iOS.app/cloudLogViewer.iOS : xamarin_dyn_objc_msgSend
0x13b4856b0 - Unknown

=================================================================
Managed Stacktrace:

  at <unknown> <0xffffffff>
  at ObjCRuntime.Messaging:void_objc_msgSend <0x000bf>
  at UIKit.UITableView:EndUpdates <0x0014a>
  at <>c__DisplayClass50_0:<InsertRows>b__0 <0x001f4>
  at Xamarin.Forms.Platform.iOS.ListViewRenderer:InsertRows <0x0036e>
  at Xamarin.Forms.Platform.iOS.ListViewRenderer:UpdateItems <0x00a02>
  at Xamarin.Forms.Platform.iOS.ListViewRenderer:OnCollectionChanged <0x0008a>
  at Xamarin.Forms.Internals.TemplatedItemsList`2:OnCollectionChanged <0x000c5>
  at Xamarin.Forms.Internals.TemplatedItemsList`2:OnProxyCollectionChanged <0x02e3a>
  at Xamarin.Forms.ListProxy:OnCollectionChanged <0x000c1>
  at <>c__DisplayClass33_0:<OnCollectionChanged>b__0 <0x000aa>
  at Foundation.NSAsyncActionDispatcher:Apply <0x0006e>
  at System.Object:runtime_invoke_void__this__ <0x000cd>
  at <unknown> <0xffffffff>
  at UIKit.UIApplication:UIApplicationMain <0x00211>
  at UIKit.UIApplication:Main <0x000b2>
  at UIKit.UIApplication:Main <0x00222>
  at cloudLogViewer.iOS.Application:Main <0x00092>
  at <Module>:runtime_invoke_void_object <0x00178>

=================================================================

Reproduction Link

Unknown at this time how to reproduce. Will attempt upon request.

@DM1145 DM1145 added s/unverified New report that has yet to be verified t/bug 🐛 labels Jun 10, 2019
@samhouts samhouts added a/listview Problems with the ListView/TableView i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often p/iOS 🍎 i/regression labels Jun 10, 2019
@samhouts samhouts added this to the 4.0.0 milestone Jun 10, 2019
@samhouts
Copy link
Member

@DM1145 Can you please attach a small project that demonstrates this issue? also, what version did you upgrade from? Thanks!

@samhouts samhouts added s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. labels Jun 10, 2019
@DM1145
Copy link
Author

DM1145 commented Jun 10, 2019

@samhouts - I don't recall what version I was on. How best to check?

@DM1145
Copy link
Author

DM1145 commented Jun 10, 2019

@samhouts Also, I've tried to create a small project which reproduces the issue. The new, simpler project does not reproduce the error. Further, I have refactored my code and the issue still presents, each time I execute the project.

@DM1145
Copy link
Author

DM1145 commented Jun 11, 2019

Prior version may have been 4.0.0.425677. That's the default on my workstation when creating new projects.

Disregard. Recomplied with older versions, same issue.

@DM1145
Copy link
Author

DM1145 commented Jun 12, 2019

ErrorRepro.zip
The attached project generates this error. Please let me know if the issue is at my end.
TYVM/DM

@samhouts samhouts removed s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. labels Jun 13, 2019
@samhouts samhouts modified the milestones: 4.0.0, 3.6.0 Jun 13, 2019
@samhouts
Copy link
Member

Looks like this was a regression in 3.6. It appears to work in 3.5. Thanks!

@samhouts samhouts added e/2 🕑 2 and removed s/unverified New report that has yet to be verified labels Jun 13, 2019
@jfversluis jfversluis self-assigned this Jun 19, 2019
@samhouts samhouts removed this from the 3.6.0 milestone Jun 21, 2019
@samhouts samhouts added this to the 4.0.0 milestone Jul 3, 2019
@PureWeen PureWeen reopened this Aug 20, 2020
@samhouts samhouts added inactive Issue is older than 6 months and needs to be retested help wanted We welcome community contributions to any issue, but these might be a good place to start! up-for-grabs We welcome community contributions to any issue, but these might be a good place to start! and removed inactive Issue is older than 6 months and needs to be retested help wanted We welcome community contributions to any issue, but these might be a good place to start! labels Sep 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/listview Problems with the ListView/TableView e/2 🕑 2 i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often i/regression p/iOS 🍎 t/bug 🐛 up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!
Projects
None yet
Development

No branches or pull requests

4 participants