Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8327] Android: KS - Switching between tabs in KS generates the debug message "Unable to release window reference."

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-06-26T16:40:04.000+0000
Affected Version/sRelease 2.0.0, Release 1.8.2
Fix Version/sSprint 2012-13 API, Release 3.0.0
ComponentsAndroid
Labelsapi, qe-and031912
ReporterWilson Luu
AssigneeJosh Roesslein
Created2012-03-27T11:00:22.000+0000
Updated2012-08-14T16:30:00.000+0000

Description

Steps to reproduce: 1. Import and install KS from 1_8_X branch or master branch 2. Launch logcat 3. Switch between the different tabs several times Actual: "Unable to release window reference." debug messages appear in logcat:
I/TiAPI   ( 4286): tab Controls prevTab = Phone
I/TiAPI   ( 4286): tab Base UI prevTab = Controls
I/TiAPI   ( 4286): tab blur - new index 0 old index 1
W/dalvikvm( 4286): JNI: DeleteGlobalRef(0xda95e987) failed to find entry (valid=0)
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
I/TiAPI   ( 4286): tab blur - new index 1 old index 0
W/dalvikvm( 4286): JNI: DeleteGlobalRef(0xda9d339f) failed to find entry (valid=0)
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
D/Window  ( 4286): Unable to release window reference.
I/TiAPI   ( 4286): tab Controls prevTab = Base UI
I/TiAPI   ( 4286): tab Platform prevTab = Controls
Expected: Should not generate debug messages. Note: Bug still appears in 1.8.2 build.

Comments

  1. Tamila Smolich 2012-05-08

    Also exists window closure issues that seem related I/TiAPI ( 326): tab blur - new index 0 old index 1 D/Window ( 326): unable to open, window is not closed I/TiAPI ( 326): tab Base UI prevTab = Controls I/TiAPI ( 326): tab Phone prevTab = Base UI D/Window ( 326): Unable to release window reference. D/Window ( 326): Unable to release window reference. D/Window ( 326): Unable to release window reference. D/Window ( 326): Unable to release window reference. D/Window ( 326): Unable to release window reference. D/Window ( 326): unable to close, window is not opened
  2. Josh Roesslein 2012-06-15

    Got a solution for this pending. Will have a PR to resolve this once TIMOB-9487 is fixed.
  3. Josh Roesslein 2012-06-22

    Please check for memory leak regressions with the test cases from TIMOB-7409.
  4. Josh Roesslein 2012-06-22

    Created [PR #2459](https://github.com/appcelerator/titanium_mobile/pull/2459) to resolve issue.
  5. Rima Umbrasas 2012-08-14

    Verified fixed with : Mobile sdk-2.2.0.v20120810080115 Titanium Studio, build: 2.1.1.201207271312 Device: Galaxy S III Android version 4.0.4

JSON Source