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

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


Attachments

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 4.1.1.3 (34a92cd)
Xamarin.Android 6.1.1.1 (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.

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