Bug 25951 - Frame in a ViewCell causes OOM exception
Summary: Frame in a ViewCell causes OOM exception
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.1
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-01-12 17:48 UTC by John Miller [MSFT]
Modified: 2015-01-22 03:44 UTC (History)
5 users (show)

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


Attachments
Test Case (163.97 KB, application/x-gzip)
2015-01-12 17:48 UTC, John Miller [MSFT]
Details


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:
VERIFIED FIXED

Description John Miller [MSFT] 2015-01-12 17:48:04 UTC
**Overview:**

   Using a Frame in a ViewCell causes an OOM exception on Android. 

**Steps to Reproduce:**

   1. Run the attached sample on an android emulator (tested with AP 19) 
   2. Scroll the list that appears up and down. 
   3. Repeat step 2 until it crashes

    Normally takes about 20 seconds of scrolling back and forth

**Actual Results:**

   OOM exception
   See stacktrace here: https://gist.github.com/therealjohn/03ef5f15b2a7f4770ea0

**Expected Results:**

   No crashing. 

**Build Date & Platform:**

   XF 1.3.1

**Additional Information:**

   It seems related to use a Frame. There are no images/drawables in the cells, so its confusing why CreateBitmap is in the stacktrace.
Comment 1 John Miller [MSFT] 2015-01-12 17:48:22 UTC
Created attachment 9329 [details]
Test Case
Comment 2 Danish Akhtar 2015-01-13 05:57:25 UTC
I have tried to reproduce this issue by following the steps mentioned in bug and able to reproduce this issue, application gets crashed while user scroll the list up and down.

Hence marking this as Confirmed.

Supplement info:
Application output: https://gist.github.com/Mohit-Kheterpal/8afd2fd7c6a2dca14647
adblogcat: https://gist.github.com/Mohit-Kheterpal/2a97d6b39afd9058f797

Environment info:
=== Xamarin Studio ===

Version 5.7 (build 661)
Installation UUID: 3dbf10c4-ed30-4e55-8a8b-1704777c7b5f
Runtime:
	Mono 3.12.0 ((detached/a813491)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000068

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.Mac ===

Version: 1.10.0.18 (Enterprise Edition)

=== Xamarin.iOS ===

Version: 8.6.0.52 (Enterprise Edition)
Hash: 7c4c2c5
Branch: 
Build date: 2015-01-08 22:29:16-0500

=== Xamarin.Android ===

Version: 4.20.0.28 (Enterprise Edition)
Android SDK: /Users/apprpject/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Build Information ===

Release ID: 507000661
Git revision: b70bab61da996da29045ea8ee8aed1a6faedbe78
Build date: 2015-01-05 16:31:31-05
Xamarin addins: 82f6c71490562d6cd125a09287f441902fdac3d7

=== Operating System ===

Mac OS X 10.8.5
Darwin localhost 12.5.0 Darwin Kernel Version 12.5.0
    Sun Sep 29 13:33:47 PDT 2013
    root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
Comment 3 Jason Smith [MSFT] 2015-01-16 22:13:58 UTC
The frame background is somehow leaking. Starting my investigation now.
Comment 4 Jason Smith [MSFT] 2015-01-17 18:28:45 UTC
Should be fixed in 1.3.2-pre1
Comment 5 Sadik Ali 2015-01-22 03:44:48 UTC
I have checked this issue with following builds:

1.3.2.6299-pre1
Mac OS X 10.10.0
Xamarin Studio: 5.7.1 (build 14)
Xamarin.Android: 5.0.0.17 
Build Information
Release ID: 507010014
Git revision: a4dd61ad7f8b3695be4b17bcb5c3ae6b81438cf7
Build date: 2015-01-19 15:21:09-05
Xamarin addins: 081208fe3bbf40e24a562867c6c7fba20a9b94b6

I have checked this issue with attached sample and observed that I am not getting any error/ exception while scrolling the list. Application is not crashes and working fine.

This issue has been fixed. Hence I am closing this issue.