Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10040] Android: XML: v8- Application crashes with out of memory error.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-08-23T20:09:30.000+0000
Affected Version/sRelease 2.1.1, Release 3.0.0
Fix Version/sSprint 2012-16 API, Release 3.0.0
ComponentsAndroid
Labelscore, qe-testadded
ReporterEvgenii Tcarev
AssigneeJosh Roesslein
Created2012-07-19T12:17:55.000+0000
Updated2012-09-05T13:22:47.000+0000

Description

Application crashes with out of memory error. On some occasions the ed "runtime error" is displayed, other times, the "application has stopped unexpectedly" dialog is shown. The screenshots of each are attached. Logcat output is also attached. This is a regression it doesn't occur on SDK 2.1.0 Steps to reproduce:
 1) Launch Kitchen Sink > Platform > XHR > XML Properties. 2) 
Tap back button on the phone. 3) Repeat 1 and 2 steps 10 times. Result: 1) The application crashes. Expected Result: 1) The application shouldn't crash.

Attachments

FileDateSize
device-2012-07-19-104854.png2012-07-19T12:17:55.000+0000117354
device-2012-07-19-105547.png2012-07-19T12:17:55.000+000070059
Logcat.rtf2012-07-19T12:17:55.000+00006257

Comments

  1. Josh Roesslein 2012-07-20

    This actually looks like a memory leak caused by us not releasing our persistent handles (aka references) to the V8 function callbacks (ex: onload, ondatastream). The bug probably has existed for some time now (possibly back to 1.8), but only came forth in this test case due to us fixing the decoding to always return something when you access "responseText". Since the label is referenced inside the callbacks, it would never get collected and neither would the response text/data it references.
  2. Josh Roesslein 2012-08-23

    Memory leaks have all been fixed in master. Test case no longer crashes due to out of memory.
  3. Rima Umbrasas 2012-09-05

    Tested as fixed: SDK-version 2.2.0.v20120904103252 Titanium Studio, builds: 2.1.2.201208301612, 2.2.0.v20120904103252 Devices: iPone4 version 5.0.1 Nexus Android tablet version 4.1.1

JSON Source