java.lang.IllegalArgumentException: Layout: -20 < 0

Appcelerator JIRA | Ping Wang | 3 years ago
  1. 0

    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.

    Appcelerator JIRA | 3 years ago | Ping Wang
    java.lang.IllegalArgumentException: Layout: -20 < 0
  2. 0

    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.

    Appcelerator JIRA | 3 years ago | Ping Wang
    java.lang.IllegalArgumentException: Layout: -20 < 0
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    java.lang.IllegalArgumentException: Layout: -64 < 0

    GitHub | 2 years ago | pawelantczak
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.antczak.whereIsMyPackage/org.antczak.whereIsMyPackage.activity.AddActivity}: java.lang.IllegalArgumentException: Layout: -64 < 0

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Layout: -20 < 0

      at android.text.Layout.<init>()
    2. Android Platform
      StaticLayout.<init>
      1. android.text.Layout.<init>(Layout.java:140)
      2. android.text.StaticLayout.<init>(StaticLayout.java:104)
      3. android.text.StaticLayout.<init>(StaticLayout.java:90)
      3 frames
    3. kankan.wheel.widget
      WheelView.onDraw
      1. kankan.wheel.widget.WheelView.createLayouts(WheelView.java:504)
      2. kankan.wheel.widget.WheelView.onDraw(WheelView.java:564)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.view.View.draw(View.java:10978)
      2. android.view.View.getDisplayList(View.java:10417)
      3. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597)
      4. android.view.View.getDisplayList(View.java:10380)
      5. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597)
      6. android.view.View.getDisplayList(View.java:10380)
      7. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597)
      8. android.view.View.getDisplayList(View.java:10380)
      9. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597)
      10. android.view.View.getDisplayList(View.java:10380)
      11. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597)
      12. android.view.View.getDisplayList(View.java:10380)
      13. android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2597)
      14. android.view.View.getDisplayList(View.java:10380)
      15. android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:842)
      16. android.view.ViewRootImpl.draw(ViewRootImpl.java:1910)
      17. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1634)
      18. android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)
      19. android.os.Handler.dispatchMessage(Handler.java:99)
      20. android.os.Looper.loop(Looper.java:137)
      21. android.app.ActivityThread.main(ActivityThread.java:4424)
      21 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame