[TIMOB-8327] Android: KS - Switching between tabs in KS generates the debug message "Unable to release window reference."
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-06-26T16:40:04.000+0000 |
Affected Version/s | Release 2.0.0, Release 1.8.2 |
Fix Version/s | Sprint 2012-13 API, Release 3.0.0 |
Components | Android |
Labels | api, qe-and031912 |
Reporter | Wilson Luu |
Assignee | Josh Roesslein |
Created | 2012-03-27T11:00:22.000+0000 |
Updated | 2012-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.
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
Got a solution for this pending. Will have a PR to resolve this once TIMOB-9487 is fixed.
Please check for memory leak regressions with the test cases from TIMOB-7409.
Created [PR #2459](https://github.com/appcelerator/titanium_mobile/pull/2459) to resolve issue.
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