java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • This is a regression in master (3.2.0). 3.1.3.GA works fine. To reproduce: 1. KS->Controls->Picker->Android "useSpinner"-text. i) Expected behavior: show 3 spinners. Actual behavior: only show 1 spinner. See the attached screenshot for the latest master and 3.1.3.GA. ii) Click the button "Add 'Manny'" and then scroll the spinner. The app crashes. The log is {code} W/dalvikvm(16260): threadid=1: thread exiting with uncaught exception (group=0x40a3d1f8) E/TiApplication(16260): (main) [32538,34141] Sending event: exception on thread: main msg:java.lang.IllegalArgumentException: Layout: -20 < 0; Titanium 3.2.0,2013/10/25 13:41,9b2cd09 E/TiApplication(16260): java.lang.IllegalArgumentException: Layout: -20 < 0 E/TiApplication(16260): at android.text.Layout.<init>(Layout.java:140) E/TiApplication(16260): at android.text.StaticLayout.<init>(StaticLayout.java:104) E/TiApplication(16260): at android.text.StaticLayout.<init>(StaticLayout.java:90) E/TiApplication(16260): at kankan.wheel.widget.WheelView.createLayouts(WheelView.java:504) E/TiApplication(16260): at kankan.wheel.widget.WheelView.onDraw(WheelView.java:564) E/TiApplication(16260): at android.view.View.draw(View.java:10978) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10417) E/TiApplication(16260): at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10380) E/TiApplication(16260): at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10380) E/TiApplication(16260): at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10380) E/TiApplication(16260): at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10380) E/TiApplication(16260): at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10380) E/TiApplication(16260): at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10380) E/TiApplication(16260): at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:842) E/TiApplication(16260): at android.view.ViewRootImpl.draw(ViewRootImpl.java:1910) E/TiApplication(16260): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1634) E/TiApplication(16260): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442) E/TiApplication(16260): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiApplication(16260): at android.os.Looper.loop(Looper.java:137) E/TiApplication(16260): at android.app.ActivityThread.main(ActivityThread.java:4424) E/TiApplication(16260): at java.lang.reflect.Method.invokeNative(Native Method) E/TiApplication(16260): at java.lang.reflect.Method.invoke(Method.java:511) E/TiApplication(16260): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/TiApplication(16260): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/TiApplication(16260): at dalvik.system.NativeStart.main(Native Method) {code} 2. KS->Controls->Picker->Android "useSpinner"-text2. Some spinners do not show. See the attached screenshot for the latest master and 3.1.3.GA.
    via by Ping Wang,
  • This is a regression in master (3.2.0). 3.1.3.GA works fine. To reproduce: 1. KS->Controls->Picker->Android "useSpinner"-text. i) Expected behavior: show 3 spinners. Actual behavior: only show 1 spinner. See the attached screenshot for the latest master and 3.1.3.GA. ii) Click the button "Add 'Manny'" and then scroll the spinner. The app crashes. The log is {code} W/dalvikvm(16260): threadid=1: thread exiting with uncaught exception (group=0x40a3d1f8) E/TiApplication(16260): (main) [32538,34141] Sending event: exception on thread: main msg:java.lang.IllegalArgumentException: Layout: -20 < 0; Titanium 3.2.0,2013/10/25 13:41,9b2cd09 E/TiApplication(16260): java.lang.IllegalArgumentException: Layout: -20 < 0 E/TiApplication(16260): at android.text.Layout.<init>(Layout.java:140) E/TiApplication(16260): at android.text.StaticLayout.<init>(StaticLayout.java:104) E/TiApplication(16260): at android.text.StaticLayout.<init>(StaticLayout.java:90) E/TiApplication(16260): at kankan.wheel.widget.WheelView.createLayouts(WheelView.java:504) E/TiApplication(16260): at kankan.wheel.widget.WheelView.onDraw(WheelView.java:564) E/TiApplication(16260): at android.view.View.draw(View.java:10978) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10417) E/TiApplication(16260): at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10380) E/TiApplication(16260): at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10380) E/TiApplication(16260): at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10380) E/TiApplication(16260): at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10380) E/TiApplication(16260): at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10380) E/TiApplication(16260): at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) E/TiApplication(16260): at android.view.View.getDisplayList(View.java:10380) E/TiApplication(16260): at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:842) E/TiApplication(16260): at android.view.ViewRootImpl.draw(ViewRootImpl.java:1910) E/TiApplication(16260): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1634) E/TiApplication(16260): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442) E/TiApplication(16260): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiApplication(16260): at android.os.Looper.loop(Looper.java:137) E/TiApplication(16260): at android.app.ActivityThread.main(ActivityThread.java:4424) E/TiApplication(16260): at java.lang.reflect.Method.invokeNative(Native Method) E/TiApplication(16260): at java.lang.reflect.Method.invoke(Method.java:511) E/TiApplication(16260): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/TiApplication(16260): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/TiApplication(16260): at dalvik.system.NativeStart.main(Native Method) {code} 2. KS->Controls->Picker->Android "useSpinner"-text2. Some spinners do not show. See the attached screenshot for the latest master and 3.1.3.GA.
    via by Ping Wang,
  • GitHub comment 74#262284305
    via GitHub by julioz
    ,
  • Android below API 21: TapTargetView
    via GitHub by vados60
    ,
    • java.lang.IllegalArgumentException: Layout: -20 < 0 at android.text.Layout.<init>(Layout.java:140) at android.text.StaticLayout.<init>(StaticLayout.java:104) at android.text.StaticLayout.<init>(StaticLayout.java:90) at kankan.wheel.widget.WheelView.createLayouts(WheelView.java:504) at kankan.wheel.widget.WheelView.onDraw(WheelView.java:564) at android.view.View.draw(View.java:10978) at android.view.View.getDisplayList(View.java:10417) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) at android.view.View.getDisplayList(View.java:10380) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) at android.view.View.getDisplayList(View.java:10380) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) at android.view.View.getDisplayList(View.java:10380) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) at android.view.View.getDisplayList(View.java:10380) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) at android.view.View.getDisplayList(View.java:10380) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597) at android.view.View.getDisplayList(View.java:10380) at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:842) at android.view.ViewRootImpl.draw(ViewRootImpl.java:1910) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1634) at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4424) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method)

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,