You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chucker crashes with java.lang.IndexOutOfBoundsException when we try to search for something in the response tab.
💣 Steps to reproduce
Go to the Response tab in chucker
Click on the search button and start searching for anything in the response
Chucker crashes with java.lang.IndexOutOfBoundsException
Process: com.cheq.retail.uat, PID: 6919
java.lang.IndexOutOfBoundsException: setSpan (26 ... 33) ends beyond length 26
at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1326)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:685)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:677)
at com.chuckerteam.chucker.internal.support.SearchHighlightUtilKt.applyColoredSpannableSubstring(SearchHighlightUtil.kt:47)
at com.chuckerteam.chucker.internal.support.SearchHighlightUtilKt.highlightWithDefinedColorsSubstring(SearchHighlightUtil.kt:36)
at com.chuckerteam.chucker.internal.ui.transaction.TransactionBodyAdapter.highlightItemWithColorOnPosition$com_github_ChuckerTeam_Chucker_library(TransactionPayloadAdapter.kt:139)
at com.chuckerteam.chucker.internal.ui.transaction.TransactionPayloadFragment.scrollToSearchedItemPosition(TransactionPayloadFragment.kt:378)
at com.chuckerteam.chucker.internal.ui.transaction.TransactionPayloadFragment.access$scrollToSearchedItemPosition(TransactionPayloadFragment.kt:47)
at com.chuckerteam.chucker.internal.ui.transaction.TransactionPayloadFragment$onQueryTextChange$1.invokeSuspend(TransactionPayloadFragment.kt:338)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:221)
at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:154)
at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:470)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$kotlinx_coroutines_core(CancellableContinuationImpl.kt:504)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$kotlinx_coroutines_core$default(CancellableContinuationImpl.kt:493)
at kotlinx.coroutines.CancellableContinuationImpl.resumeUndispatched(CancellableContinuationImpl.kt:596)
at kotlinx.coroutines.android.HandlerContext$scheduleResumeAfterDelay$$inlined$Runnable$1.run(Runnable.kt:14)
at android.os.Handler.handleCallback(Handler.java:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8705)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@d6d5fd5, Dispatchers.Main.immediate]
🔧 Expected behavior
Chucker shouldn't crash and auto scrolls to the desired result
📱 Tech info
Device: Pixel 7a
OS: 15
Chucker version: 4.1.0
The text was updated successfully, but these errors were encountered:
✍️ Describe the bug
Chucker crashes with
java.lang.IndexOutOfBoundsException
when we try to search for something in the response tab.💣 Steps to reproduce
java.lang.IndexOutOfBoundsException
🔧 Expected behavior
Chucker shouldn't crash and auto scrolls to the desired result
📱 Tech info
The text was updated successfully, but these errors were encountered: