Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4776] Android: Using button bar crashes the application

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-23T16:41:31.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2012-01, Release 2.0.0, Release 1.8.1
ComponentsAndroid
Labelsbuttonbar, crash, layout, parity, size, ui
ReporterNatalie Huynh
AssigneeHieu Pham
Created2011-07-25T17:28:11.000+0000
Updated2012-03-04T22:18:44.000+0000

Description

Steps to Reproduce: 1. Run test 1073 from http://wiki.appcelerator.org/display/tp/UI+Composite+Layout+Behavior+Test+Case Actual Result: Application crashes W/dalvikvm( 271): threadid=3: thread exiting with uncaught exception (group=0x4001b188) E/TiUncaughtHandler( 271): (main) [103,7321] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator. UICompositeLayout/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException; Titanium 1.8.0,2011/07/25 11:14, E/TiUncaughtHandler( 271): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.UICompositeLayout/org.appcelerator.titanium.TiActivity}: java.l ang.NullPointerException E/TiUncaughtHandler( 271): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496) E/TiUncaughtHandler( 271): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512) E/TiUncaughtHandler( 271): at android.app.ActivityThread.access$2200(ActivityThread.java:119) E/TiUncaughtHandler( 271): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863) E/TiUncaughtHandler( 271): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiUncaughtHandler( 271): at android.os.Looper.loop(Looper.java:123) E/TiUncaughtHandler( 271): at android.app.ActivityThread.main(ActivityThread.java:4363) E/TiUncaughtHandler( 271): at java.lang.reflect.Method.invokeNative(Native Method) E/TiUncaughtHandler( 271): at java.lang.reflect.Method.invoke(Method.java:521) E/TiUncaughtHandler( 271): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) E/TiUncaughtHandler( 271): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) E/TiUncaughtHandler( 271): at dalvik.system.NativeStart.main(Native Method) E/TiUncaughtHandler( 271): Caused by: java.lang.NullPointerException E/TiUncaughtHandler( 271): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:371) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.proxy.TiViewProxy.getView(TiViewProxy.java:356) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:384) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:370) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.proxy.TiViewProxy.getView(TiViewProxy.java:356) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:434) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:196) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:100) E/TiUncaughtHandler( 271): at ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:95) E/TiUncaughtHandler( 271): at android.os.Handler.dispatchMessage(Handler.java:95) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.TiMessageQueue.dispatchMessage(TiMessageQueue.java:320) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.TiMessageQueue.dispatchPendingMessages(TiMessageQueue.java:304) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.TiMessageQueue$2.getResult(TiMessageQueue.java:172) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.TiMessageQueue.sendBlockingMessage(TiMessageQueue.java:196) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.kroll.KrollContext.evalFile(KrollContext.java:277) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.kroll.KrollBridge.evalFile(KrollBridge.java:149) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.TiContext.evalFile(TiContext.java:190) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.TiContext.evalFile(TiContext.java:210) E/TiUncaughtHandler( 271): at ti.modules.titanium.ui.TiUIWindow.handleWindowCreated(TiUIWindow.java:230) E/TiUncaughtHandler( 271): at ti.modules.titanium.ui.TiUIWindow.windowCreated(TiUIWindow.java:222) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:31) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:271) E/TiUncaughtHandler( 271): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:301) E/TiUncaughtHandler( 271): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) E/TiUncaughtHandler( 271): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459) E/TiUncaughtHandler( 271): ... 11 more E/AndroidRuntime( 271): Uncaught handler: thread main exiting due to uncaught exception D/dalvikvm( 271): GC freed 12308 objects / 1011208 bytes in 74ms E/AndroidRuntime( 271): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.UICompositeLayout/org.appcelerator.titanium.TiActivity}: java.lang .NullPointerException E/AndroidRuntime( 271): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496) E/AndroidRuntime( 271): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512) E/AndroidRuntime( 271): at android.app.ActivityThread.access$2200(ActivityThread.java:119) E/AndroidRuntime( 271): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863) E/AndroidRuntime( 271): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 271): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 271): at android.app.ActivityThread.main(ActivityThread.java:4363) E/AndroidRuntime( 271): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 271): at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime( 271): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) E/AndroidRuntime( 271): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) E/AndroidRuntime( 271): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 271): Caused by: java.lang.NullPointerException E/AndroidRuntime( 271): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:371) E/AndroidRuntime( 271): at org.appcelerator.titanium.proxy.TiViewProxy.getView(TiViewProxy.java:356) E/AndroidRuntime( 271): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:384) E/AndroidRuntime( 271): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:370) E/AndroidRuntime( 271): at org.appcelerator.titanium.proxy.TiViewProxy.getView(TiViewProxy.java:356) E/AndroidRuntime( 271): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:434) E/AndroidRuntime( 271): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:196) E/AndroidRuntime( 271): at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:100) E/AndroidRuntime( 271): at ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:95) E/AndroidRuntime( 271): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 271): at org.appcelerator.titanium.TiMessageQueue.dispatchMessage(TiMessageQueue.java:320) E/AndroidRuntime( 271): at org.appcelerator.titanium.TiMessageQueue.dispatchPendingMessages(TiMessageQueue.java:304) E/AndroidRuntime( 271): at org.appcelerator.titanium.TiMessageQueue$2.getResult(TiMessageQueue.java:172) E/AndroidRuntime( 271): at org.appcelerator.titanium.TiMessageQueue.sendBlockingMessage(TiMessageQueue.java:196) E/AndroidRuntime( 271): at org.appcelerator.titanium.kroll.KrollContext.evalFile(KrollContext.java:277) E/AndroidRuntime( 271): at org.appcelerator.titanium.kroll.KrollBridge.evalFile(KrollBridge.java:149) E/AndroidRuntime( 271): at org.appcelerator.titanium.TiContext.evalFile(TiContext.java:190) E/AndroidRuntime( 271): at org.appcelerator.titanium.TiContext.evalFile(TiContext.java:210) E/AndroidRuntime( 271): at ti.modules.titanium.ui.TiUIWindow.handleWindowCreated(TiUIWindow.java:230) E/AndroidRuntime( 271): at ti.modules.titanium.ui.TiUIWindow.windowCreated(TiUIWindow.java:222) E/AndroidRuntime( 271): at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:31) E/AndroidRuntime( 271): at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:271) E/AndroidRuntime( 271): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:301) E/AndroidRuntime( 271): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) E/AndroidRuntime( 271): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459) E/AndroidRuntime( 271): ... 11 more Expected Result: To display the button bar

Comments

  1. Hieu Pham 2012-01-05

    This class is deprecated since we don't have an implementation for it. Any usage of ButtonBar will crash the application. It will be removed in 1.9.0.
  2. Wilson Luu 2012-01-13

    Closing bug. Bug is invalid.

JSON Source