question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash when scrolling on Android 7.x (problem seen in example project too)

See original GitHub issue

Hi Daniel,

I have a problem with the FlowListView in my app. On Android 4.4 and Android 6 (Samsung galaxy s5) it works flawlessly, but on Android Nougat ( 7.x) my app crashes when scrolling after the screen has been filled with images. I also reproduced the problem in your sample application, in the Update items grouped example.

What can I do to fix this?

Here there is the stack trace:

at Xamarin.Forms.Platform.Android.ListViewAdapter.GetView (System.Int32 position, Android.Views.View convertView, Android.Views.ViewGroup parent) [0x000ef] in C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\ListViewAdapter.cs:223 at Android.Widget.BaseAdapter.n_GetView_ILandroid_view_View_Landroid_view_ViewGroup_ (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 position, System.IntPtr native_convertView, System.IntPtr native_parent) [0x0001a] in /Users/builder/data/lanes/3511/501e63ce/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Widget.BaseAdapter.cs:443 at (wrapper dynamic-method) System.Object:c292c97d-ebcc-4bd6-8985-3d51c66bc96e (intptr,intptr,int,intptr,intptr)

schermata 2017-01-30 alle 13 13 04

Maybe is it a problem with grouping Lists? I couldn’t reproduce in the Simple Gallery section

EDIT: I think it’s the grouping, because it’s giving this error just in that examples! EDIT2: It seems an unresolved bug of Xamarin Forms with android 7, as noticed. https://bugzilla.xamarin.com/show_bug.cgi?id=51429 https://bugzilla.xamarin.com/show_bug.cgi?id=51645 https://bugzilla.xamarin.com/show_bug.cgi?id=51704

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
timteamcommented, Sep 6, 2017

@daniel-luberda Let’s hope! Thank you both for your time!

1reaction
daniel-luberdacommented, Sep 6, 2017

There were several bugs, maybe they’re fixed in Xamarin.Forms 2.4?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Crash] WebView inside ScrollView crash on scroll end - ...
When I try to put a webview inside a scroll view along with other native content, the app crashes when scroll reaches the...
Read more >
Bug: native crash on scrolling in RecyclerView ... - Issue Tracker
Attached sample project, which includes a RecyclerView instead of NestedScrollView in the ScrollingActivity, and the next flags for CollapsingToolbarLayout:
Read more >
RecyclerView crashes when updating on top
I have a RecyclerView in my app everything is working fine I am while scrolling when the last item is visible I am...
Read more >
Detect and diagnose crashes
When an app crashes, Android terminates the app's process and displays a dialog to let the user know that the app has stopped,...
Read more >
How to Resolve App Crashes in Android Studio?
Scroll to the bottom of the screen and look for the line that says Caused by. You may find the file name and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found