Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on switching instances #4595

Closed
3 tasks done
omentic opened this issue Aug 23, 2023 · 0 comments · Fixed by #4601
Closed
3 tasks done

Crash on switching instances #4595

omentic opened this issue Aug 23, 2023 · 0 comments · Fixed by #4601
Labels
bug Something isn't working

Comments

@omentic
Copy link

omentic commented Aug 23, 2023

Steps to reproduce

java.lang.ArrayIndexOutOfBoundsException: length=3; index=6
	at com.github.libretube.ui.views.SliderPreference$$ExternalSyntheticLambda2.onClick(SourceFile:276)
	at androidx.appcompat.app.AlertController$AlertParams$3.onItemClick(SourceFile:19)
	at android.widget.AdapterView.performItemClick(AdapterView.java:330)
	at android.widget.AbsListView.performItemClick(AbsListView.java:1257)
	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3270)
	at android.widget.AbsListView$3.run(AbsListView.java:4236)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7940)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ExecInit.main(ExecInit.java:49)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)

Expected behavior

The app should not crash.

I'm unfamiliar with how switching instances functions: but it almost looks like it pulls a list of available ones remotely? I may have tried to switch instances before it fully pulled new ones?

Actual behavior

A crash.

LibreTube version

0.17.1

Android version

Android 13

Other details

No response

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I will fill out all of the requested information in this form.
@omentic omentic added the bug Something isn't working label Aug 23, 2023
@Bnyro Bnyro changed the title Crash on switching proxy instances Crash on switching instances Aug 23, 2023
@Bnyro Bnyro mentioned this issue Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant