Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

java.lang.IndexOutOfBoundsException #17

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 6 comments
Open

java.lang.IndexOutOfBoundsException #17

GoogleCodeExporter opened this issue Mar 14, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

java.lang.IndexOutOfBoundsException: setSpan (21 ... 21) ends beyond length 2
at 
android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:945)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:527)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:520)
at android.widget.SpellChecker$SpellParser.init(SpellChecker.java:403)
at android.widget.SpellChecker.spellCheck(SpellChecker.java:224)
at android.widget.TextView.updateSpellCheckSpans(TextView.java:7810)
at android.widget.TextView.sendOnTextChanged(TextView.java:7638)
at android.widget.TextView.handleTextChanged(TextView.java:7681)
at android.widget.TextView$ChangeWatcher.onTextChanged(TextView.java:8044)
at 
android.text.SpannableStringBuilder.sendTextChange(SpannableStringBuilder.java:8
92)
at android.text.SpannableStringBuilder.change(SpannableStringBuilder.java:389)
at android.text.SpannableStringBuilder.change(SpannableStringBuilder.java:266)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:443)
at android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:216)
at android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:29)
at 
android.text.method.BaseKeyListener.backspaceOrForwardDelete(BaseKeyListener.jav
a:90)
at android.text.method.BaseKeyListener.backspace(BaseKeyListener.java:45)
at android.text.method.BaseKeyListener.onKeyDown(BaseKeyListener.java:151)
at android.text.method.QwertyKeyListener.onKeyDown(QwertyKeyListener.java:352)
at android.text.method.TextKeyListener.onKeyDown(TextKeyListener.java:132)
at android.widget.TextView.doKeyDown(TextView.java:5445)
at android.widget.TextView.onKeyDown(TextView.java:5267)
at android.widget.AutoCompleteTextView.onKeyDown(AutoCompleteTextView.java:682)
at android.view.KeyEvent.dispatch(KeyEvent.java:2551)
at android.view.View.dispatchKeyEvent(View.java:5500)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at android.widget.ScrollView.dispatchKeyEvent(ScrollView.java:344)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at 
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(Pho
neWindow.java:1879)
at 
com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.j
ava:1361)
at android.app.Activity.dispatchKeyEvent(Activity.java:2324)
at 
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWin
dow.java:1806)
at android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:3327)
at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2597)
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)

Original issue reported on code.google.com by [email protected] on 11 Mar 2012 at 5:01

@GoogleCodeExporter
Copy link
Author

Non si comprende da cosa sia causato l'errore, sarebbe utile conoscere le 
azioni dell'utente che generano questa eccezione.

Original comment by [email protected] on 11 Mar 2012 at 5:12

@GoogleCodeExporter
Copy link
Author

Un altro errore è il seguente:

java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257)
at java.util.ArrayList.get(ArrayList.java:311)
at android.widget.ArrayAdapter.getItem(ArrayAdapter.java:298)
at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:351)
at android.widget.ArrayAdapter.getView(ArrayAdapter.java:323)
at android.widget.Spinner.makeAndAddView(Spinner.java:192)
at android.widget.Spinner.layout(Spinner.java:151)
at android.widget.Spinner.onLayout(Spinner.java:115)
at android.view.View.layout(View.java:7446)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254)
at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1243)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1049)
at android.view.View.layout(View.java:7446)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1130)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1047)
at android.view.View.layout(View.java:7446)
at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
at android.view.View.layout(View.java:7446)
at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
at android.view.View.layout(View.java:7446)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1140)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1859)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3694)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
at dalvik.system.NativeStart.main(Native Method)

Original comment by [email protected] on 31 Mar 2012 at 2:29

  • Changed title: java.lang.IndexOutOfBoundsException

@GoogleCodeExporter
Copy link
Author

java.lang.IndexOutOfBoundsException: setSpan (23 ... 23) ends beyond length 4
at 
android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:945)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:527)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:520)
at android.widget.SpellChecker$SpellParser.init(SpellChecker.java:403)
at android.widget.SpellChecker.spellCheck(SpellChecker.java:224)
at android.widget.TextView.updateSpellCheckSpans(TextView.java:7810)
at android.widget.TextView.sendOnTextChanged(TextView.java:7638)
at android.widget.TextView.handleTextChanged(TextView.java:7681)
at android.widget.TextView$ChangeWatcher.onTextChanged(TextView.java:8044)
at 
android.text.SpannableStringBuilder.sendTextChange(SpannableStringBuilder.java:8
92)
at android.text.SpannableStringBuilder.change(SpannableStringBuilder.java:389)
at android.text.SpannableStringBuilder.change(SpannableStringBuilder.java:266)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:443)
at android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:216)
at android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:29)
at 
android.text.method.BaseKeyListener.backspaceOrForwardDelete(BaseKeyListener.jav
a:90)
at android.text.method.BaseKeyListener.backspace(BaseKeyListener.java:45)
at android.text.method.BaseKeyListener.onKeyDown(BaseKeyListener.java:151)
at android.text.method.QwertyKeyListener.onKeyDown(QwertyKeyListener.java:352)
at android.text.method.TextKeyListener.onKeyDown(TextKeyListener.java:132)
at android.widget.TextView.doKeyDown(TextView.java:5445)
at android.widget.TextView.onKeyDown(TextView.java:5267)
at android.widget.AutoCompleteTextView.onKeyDown(AutoCompleteTextView.java:682)
at android.view.KeyEvent.dispatch(KeyEvent.java:2551)
at android.view.View.dispatchKeyEvent(View.java:5500)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at android.widget.ScrollView.dispatchKeyEvent(ScrollView.java:344)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
at 
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(Pho
neWindow.java:1879)
at 
com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.j
ava:1361)
at android.app.Activity.dispatchKeyEvent(Activity.java:2324)
at 
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWin
dow.java:1806)
at android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:3327)
at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2597)
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)

Original comment by [email protected] on 4 Apr 2012 at 12:59

@GoogleCodeExporter
Copy link
Author

Aumento priorità perché la frequenza di questo errore risulta essere più 
alta della media.

Original comment by [email protected] on 11 Oct 2012 at 7:37

  • Added labels: Priority-High
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

il bug (e relativo crash dell'applicazione) si verifica quando si tenta di 
cancellare un numero di telefono preso dalla rubrica, usando il tasto backspace 
della tastiera su schermo. Se si aggiunge invece prima un qualsiasi carattere, 
allora il crash non si presenta più, ma premendo il bottone (+) si noterà che 
il numero di telefono non è stato realmente modificato. Ho riprodotto più 
volte il bug su Android ICS seguendo la procedura descritta.

Original comment by [email protected] on 19 Oct 2013 at 5:53

@GoogleCodeExporter
Copy link
Author

Grazie per le informazioni.

Original comment by [email protected] on 21 Oct 2013 at 9:04

  • Changed state: Started

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant