I'm seeing the following error sometimes when scrolling through the list of
crosswords on my Nexus 7 / Jelly Bean 4.1.2 device:
E/AndroidRuntime( 6798): FATAL EXCEPTION: main
E/AndroidRuntime( 6798): java.lang.ArrayIndexOutOfBoundsException: length=125;
index=-1
E/AndroidRuntime( 6798): at
android.text.StaticLayout.calculateEllipsis(StaticLayout.java:756)
E/AndroidRuntime( 6798): at
android.text.StaticLayout.out(StaticLayout.java:720)
E/AndroidRuntime( 6798): at
android.text.StaticLayout.generate(StaticLayout.java:428)
E/AndroidRuntime( 6798): at
android.text.StaticLayout.<init>(StaticLayout.java:140)
E/AndroidRuntime( 6798): at
android.widget.TextView.makeSingleLayout(TextView.java:5884)
E/AndroidRuntime( 6798): at
android.widget.TextView.makeNewLayout(TextView.java:5741)
E/AndroidRuntime( 6798): at
android.widget.TextView.checkForRelayout(TextView.java:6280)
E/AndroidRuntime( 6798): at android.widget.TextView.setText(TextView.java:3547)
E/AndroidRuntime( 6798): at android.widget.TextView.setText(TextView.java:3405)
E/AndroidRuntime( 6798): at android.widget.TextView.setText(TextView.java:3380)
E/AndroidRuntime( 6798): at
com.totsp.crossword.BrowseActivity$FileAdapter.getView(BrowseActivity.java:711)
E/AndroidRuntime( 6798): at
com.totsp.crossword.view.SeparatedListAdapter.getView(SeparatedListAdapter.java:
99)
E/AndroidRuntime( 6798): at
android.widget.AbsListView.obtainView(AbsListView.java:2255)
E/AndroidRuntime( 6798): at
android.widget.ListView.makeAndAddView(ListView.java:1769)
E/AndroidRuntime( 6798): at android.widget.ListView.fillDown(ListView.java:672)
E/AndroidRuntime( 6798): at android.widget.ListView.fillGap(ListView.java:636)
E/AndroidRuntime( 6798): at
android.widget.AbsListView.trackMotionScroll(AbsListView.java:5040)
E/AndroidRuntime( 6798): at
android.widget.AbsListView$FlingRunnable.run(AbsListView.java:4197)
E/AndroidRuntime( 6798): at
android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
E/AndroidRuntime( 6798): at
android.view.Choreographer.doCallbacks(Choreographer.java:555)
E/AndroidRuntime( 6798): at
android.view.Choreographer.doFrame(Choreographer.java:524)
E/AndroidRuntime( 6798): at
android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
E/AndroidRuntime( 6798): at android.os.Handler.handleCallback(Handler.java:615)
E/AndroidRuntime( 6798): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 6798): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 6798): at
android.app.ActivityThread.main(ActivityThread.java:4745)
E/AndroidRuntime( 6798): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 6798): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 6798): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime( 6798): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime( 6798): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 365): Force finishing activity
com.totsp.crossword.shortyz/com.totsp.crossword.BrowseActivity
It looks like http://code.google.com/p/android/issues/detail?id=33868 may be
relevant; I made the lines="1" -> singleLine="true" change suggested in comment
#2 and haven't seen any further crashes.
Original issue reported on code.google.com by jep...@gmail.com on 17 Oct 2012 at 7:17
Original issue reported on code.google.com by
jep...@gmail.com
on 17 Oct 2012 at 7:17