Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13229] Android: Pressing the plus sign on a TIME_PICKER crashes the app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionNot Our Bug
Resolution Date2013-04-08T19:42:18.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2013 Sprint 08 Core, 2013 Sprint 08
ComponentsAndroid
Labelstriage
ReporterJames Semple
AssigneeAllen Yeung
Created2013-03-27T15:55:55.000+0000
Updated2017-03-10T21:10:35.000+0000

Description

Use Alloy to create a Picker of type Ti.UI.PICKER_TYPE_TIME on Android. When you press the + or - buttons the app crashes fatally with the stack dump given below. I will create a test case momentarily.

Attachments

FileDateSize
src-code.zip2013-03-27T18:15:23.000+00005844680

Comments

  1. James Semple 2013-03-27

    This is from a PoC created by a customer. They are using DATE_PICKER items without a problem but the TIME_PICKER crashes with the following.. [ERROR][TiApplication( 771)] (main) [8687,36044] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 3.0.2,2013/02/15 19:02,5a77fe7 [ERROR][TiApplication( 771)] java.lang.NullPointerException [ERROR][TiApplication( 771)] at android.widget.TimePicker.updateInputState(TimePicker.java:580) [ERROR][TiApplication( 771)] at android.widget.TimePicker.access$000(TimePicker.java:56) [ERROR][TiApplication( 771)] at android.widget.TimePicker$3.onValueChange(TimePicker.java:178) [ERROR][TiApplication( 771)] at android.widget.NumberPicker.notifyChange(NumberPicker.java:1750) [ERROR][TiApplication( 771)] at android.widget.NumberPicker.setValueInternal(NumberPicker.java:1536) [ERROR][TiApplication( 771)] at android.widget.NumberPicker.changeValueByOne(NumberPicker.java:1564) [ERROR][TiApplication( 771)] at android.widget.NumberPicker.access$200(NumberPicker.java:88) [ERROR][TiApplication( 771)] at android.widget.NumberPicker$2.onClick(NumberPicker.java:606) [ERROR][TiApplication( 771)] at android.view.View.performClick(View.java:4084) [ERROR][TiApplication( 771)] at android.view.View$PerformClick.run(View.java:16966) [ERROR][TiApplication( 771)] at android.os.Handler.handleCallback(Handler.java:615) [ERROR][TiApplication( 771)] at android.os.Handler.dispatchMessage(Handler.java:92) [ERROR][TiApplication( 771)] at android.os.Looper.loop(Looper.java:137) [ERROR][TiApplication( 771)] at android.app.ActivityThread.main(ActivityThread.java:4745) [ERROR][TiApplication( 771)] at java.lang.reflect.Method.invokeNative(Native Method) [ERROR][TiApplication( 771)] at java.lang.reflect.Method.invoke(Method.java:511) [ERROR][TiApplication( 771)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) [ERROR][TiApplication( 771)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR][TiApplication( 771)] at dalvik.system.NativeStart.main(Native Method) [ERROR][AndroidRuntime( 771)] FATAL EXCEPTION: main [ERROR][AndroidRuntime( 771)] java.lang.NullPointerException [ERROR][AndroidRuntime( 771)] at android.widget.TimePicker.updateInputState(TimePicker.java:580) [ERROR][AndroidRuntime( 771)] at android.widget.TimePicker.access$000(TimePicker.java:56) [ERROR][AndroidRuntime( 771)] at android.widget.TimePicker$3.onValueChange(TimePicker.java:178) [ERROR][AndroidRuntime( 771)] at android.widget.NumberPicker.notifyChange(NumberPicker.java:1750) [ERROR][AndroidRuntime( 771)] at android.widget.NumberPicker.setValueInternal(NumberPicker.java:1536) [ERROR][AndroidRuntime( 771)] at android.widget.NumberPicker.changeValueByOne(NumberPicker.java:1564) [ERROR][AndroidRuntime( 771)] at android.widget.NumberPicker.access$200(NumberPicker.java:88) [ERROR][AndroidRuntime( 771)] at android.widget.NumberPicker$2.onClick(NumberPicker.java:606) [ERROR][AndroidRuntime( 771)] at android.view.View.performClick(View.java:4084) [ERROR][AndroidRuntime( 771)] at android.view.View$PerformClick.run(View.java:16966) [ERROR][AndroidRuntime( 771)] at android.os.Handler.handleCallback(Handler.java:615) [ERROR][AndroidRuntime( 771)] at android.os.Handler.dispatchMessage(Handler.java:92) [ERROR][AndroidRuntime( 771)] at android.os.Looper.loop(Looper.java:137) [ERROR][AndroidRuntime( 771)] at android.app.ActivityThread.main(ActivityThread.java:4745) [ERROR][AndroidRuntime( 771)] at java.lang.reflect.Method.invokeNative(Native Method) [ERROR][AndroidRuntime( 771)] at java.lang.reflect.Method.invoke(Method.java:511) [ERROR][AndroidRuntime( 771)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) [ERROR][AndroidRuntime( 771)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR][AndroidRuntime( 771)] at dalvik.system.NativeStart.main(Native Method) [WARN][ActivityManager( 149)] Force finishing activity com.appc.avis2/.Avis2Activity
  2. Tony Lukasavage 2013-03-27

    This seems like a TIMOB Android issue, isn't it? Was this created as an ALOY ticket simply because it happend to be an Alloy built app? Hard to tell with most of the detail missing. * TiSDK version * Alloy version, if they're using it * Android version. Emulator or device? * code to reproduce this issue
  3. James Semple 2013-03-27

    Source code provided by the customer
  4. Tony Lukasavage 2013-03-27

    I can't unzip the source code.
  5. James Semple 2013-03-28

    Ok it seems it fails if the picker is inside a table...
  6. Allen Yeung 2013-04-07

    This looks like a native android bug: https://code.google.com/p/android/issues/detail?id=24387 I run into this on an ICS device, but not a 2.3 device as mentioned.
  7. Lee Morris 2017-03-10

    Closing ticket as invalid.

JSON Source