Bug 42852 - Random SIGSEGV crashes occurring while loading activities and scrollViews.
Summary: Random SIGSEGV crashes occurring while loading activities and scrollViews.
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 6.1.0 (C7)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2016-07-27 20:33 UTC by Ammar Mheir
Modified: 2016-09-19 19:55 UTC (History)
6 users (show)

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 for Bug 42852 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Ammar Mheir 2016-07-27 20:33:18 UTC
## Overview

SIGSEGV cashes occurring throughout application specifically when loading checklists which contain a ScrollView of images and text. Scrolling through the images too fast will cause the crash (fast swipe up or down). Navigating between pages (check lists) within the application also causes the SIGSEGV crashes and it doesn’t seem to be memory issues since there are no “OutOfMemoryException” errors appearing or any other indication of memory leaks. 

## Steps to reproduce

1. Open .sln file. Clean and Build solution.
2. Deploy app so that it copies over and installs on the device, then close app once it begins debugging.
3. Copy “Xamarin Bug.fillerbackup” file into the device or emulator (place in accessible storage, such as sdcard, the backup is used to restore application with sample data)
4. Navigate to .fillerbackup file using any File Explorer application then run it to begin restoring data. (ES file explorer .apk linked below if needed)
5. Begin navigating between various checklists to prompt the random SIGSEGV crash.

## Expected Results

Application continues to run smoothly without being interrupted by SIGSEGV crashes.  

## Actual Results

Application will randomly crash with a SIGSEGV error at any point while navigating between pages, most of the time the app will crash when attempting to load the checklists. Using dumpsys meminfo shows that the views and activities are being disposed of and there are no out of memory exceptions being thrown.

## Version information

Microsoft Visual Studio Enterprise 2015
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01038

Xamarin (34a92cd)
Xamarin.Android (7db2aac)

## Additional Information

After deploying the application from the provided project, run the fillerbackup file after moving it to the device storage (you can drag file and drop into the emulator to copy over): http://www.screencast.com/t/u7JW3Sx2C  
If using and Android emulator with no file explorer app, you can use ES File explorer (drag and drop .apk to emulator to install) http://es-file-explorer.en.uptodown.com/android/download  

As the crash may happen anytime (sometimes even at first start), we greatly doubt that it is about un-freed memory (memory leak).
Xamarin.Insights does not report these crashes, so we have no clue how many users are affected.
The problem seems to happen mainly on tablet device with a screen size greater than >= 8 inches. On our 5 inch phones we could not reproduce it.
Comment 2 Ammar Mheir 2016-09-19 19:55:00 UTC
If Navigating between pages back and forth enough, the application will almost always result in the crash. This is especially when activities with scrollViews and images are loaded.