Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6496] Android: Image Rapid Update crashes sometimes

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-12-08T23:39:50.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-49, Release 1.8.0.1
Componentsn/a
Labelsbranch-v8
ReporterPing Wang
AssigneeHieu Pham
Created2011-12-07T01:37:47.000+0000
Updated2014-06-19T12:42:55.000+0000

Description

Run KS ->Base UI->Views->Image Views->Image Rapid Update and then hit BACK key. The program crashes sometimes. Hard to reproduce. The error stack is
D/Window  ( 2348): Loading window with URL: ../examples/image_view_updateimages.js
D/Module  ( 2348): Loading module: ../examples/image_view_updateimages -> Resources/examples/image_view_updateimages.js
D/dalvikvm( 2348): GC_CONCURRENT freed 2050K, 13% free 15635K/17799K, paused 3ms+5ms
I/ActivityManager(  148): Displayed com.appcelerator.titanium/org.appcelerator.titanium.TiActivity: +376ms
D/BatteryService(  148): level:30 scale:100 status:4 health:2 present:true dock_status:1 dock_level:0 voltage: 7 temperature: 290 technology: Li-ion AC powered:false USB powered:false icon:17302710 invalid charger:0
D/WifiService(  148): ACTION_BATTERY_CHANGED pluggedType: 0
D/WindowManager(  148): adjustConfigurationLw, config:{ scale=1.0 imsi=0/0 loc=null touch=3 keys=1/1/2 nav=1/1 orien=P layout=0x10000014 uiMode=0x0} mLidOpen:-1 mHasDockFeature:true mHasHallSensorFeature:true config.hardKeyboardHidden:2
I/TextType(  207): TextType = 0x0
D/dalvikvm(  207): GC_CONCURRENT freed 404K, 49% free 6969K/13575K, paused 1ms+4ms
E/TiBaseActivity( 2348): (main) [2707,119484] Layout cleanup.
W/dalvikvm( 2348): threadid=12: thread exiting with uncaught exception (group=0x40121760)
E/TiApplication( 2348): (Thread-21) [63,119547] Sending event: exception on thread: Thread-21 msg:java.lang.NullPointerException; Titanium 1.8.0.1,2011/12/07 01:04,5dd7d38
E/TiApplication( 2348): java.lang.NullPointerException
E/TiApplication( 2348):   at ti.modules.titanium.ui.widget.TiUIImageView$Loader.isNotFinalFrame(TiUIImageView.java:318)
E/TiApplication( 2348):   at ti.modules.titanium.ui.widget.TiUIImageView$Loader.run(TiUIImageView.java:343)
E/TiApplication( 2348):   at java.lang.Thread.run(Thread.java:1020)
E/AndroidRuntime( 2348): FATAL EXCEPTION: Thread-21
E/AndroidRuntime( 2348): java.lang.NullPointerException
E/AndroidRuntime( 2348):   at ti.modules.titanium.ui.widget.TiUIImageView$Loader.isNotFinalFrame(TiUIImageView.java:318)
E/AndroidRuntime( 2348):   at ti.modules.titanium.ui.widget.TiUIImageView$Loader.run(TiUIImageView.java:343)
E/AndroidRuntime( 2348):   at java.lang.Thread.run(Thread.java:1020)
W/ActivityManager(  148):   Force finishing activity com.appcelerator.titanium/org.appcelerator.titanium.TiActivity

Comments

  1. Hieu Pham 2011-12-07

    The PR for 6496 contains a fix for 6501 and 6509.
  2. Natalie Huynh 2011-12-09

    Tested with 1.8.0.1.v20111209011840 on Droid (2.2.2) - v8 Nexus One (2.2.2) - rhino

JSON Source