Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1936] Android: crash (mem leak?) when running BaseUi>Views>Web Views (external url and local url)

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:57:35.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M03
ComponentsAndroid
Labelsandroid, crash, regression
ReporterThomas Huelbert
AssigneeDon Thorp
Created2011-04-15T03:06:03.000+0000
Updated2011-04-17T01:57:35.000+0000

Description

1.4.2.5935b3 G1 running 1.6

  1. BaseUi>Views>Web Views>external url
  2. then BaseUi>Views>Web Views>local url

crashlog at - http://pastie.org/1186898">http://pastie.org/1186898

Comments

  1. Don Thorp 2011-04-15

    Let's check for leaks from one test to the other.

  2. Bill Dawson 2011-04-15

    You can even reproduce by backing out of the first webview, going back to the Views menu, and clicking to go into any Views set of tests. (So you don't need to load webview twice to get it to happen.)

  3. Bill Dawson 2011-04-15

    For posterity: the crash begins happening in 1.6 after this commit is applied:

    http://github.com/appcelerator/titanium_mobile/commit/a8c5ccc4cb76843898bc"> http://github.com/appcelerator/titanium_mobile/commit/a8c5ccc4cb768...

  4. Bill Dawson 2011-04-15

    (from [b8a6eb4de745a63299b04a9a6d221bfa35b1dc9c]) [#1936 status:fixed-in-qa] Don't allow the webview to be released like other views are in our new memory-saving scheme. Some native (JNI) code seems to freak out and crash the app if the webview isn't still around at a certain point in the GC process http://github.com/appcelerator/titanium_mobile/commit/b8a6eb4de745a63299b04a9a6d221bfa35b1dc9c"> http://github.com/appcelerator/titanium_mobile/commit/b8a6eb4de745a...

  5. Thomas Huelbert 2011-04-15

    crash persists in Mobile sdk 1.5.0.02c264.

  6. Bill Dawson 2011-04-15

    This seems to have resolved itself. (A lot of changes since 10/14 in the master branch, related to the Kroll refactoring that was merged around that time.) Can you still reproduce? I can't.

  7. Thomas Huelbert 2011-04-15

    Titanium SDK version: 1.5.0 (12/03/10 09:29 33c2058). Not seeing it on the g1 or g2 anymore. closing as resolved

JSON Source