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

Crashing When Deleting From Playlist Tab #3891

Closed
nate2014jatc opened this issue Jul 16, 2020 · 8 comments · Fixed by #6127
Closed

Crashing When Deleting From Playlist Tab #3891

nate2014jatc opened this issue Jul 16, 2020 · 8 comments · Fixed by #6127
Labels
bug Issue is related to a bug GUI Issue is related to the graphical user interface

Comments

@nate2014jatc
Copy link

nate2014jatc commented Jul 16, 2020

Exception

  • User Action: ui error
  • Request: App crash, UI failure
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: none
  • Version: 0.19.6
  • OS: Linux Android 9 - 28
Crash log

java.lang.ArrayIndexOutOfBoundsException: length=15; index=-1
	at java.util.ArrayList.remove(ArrayList.java:506)
	at org.schabi.newpipe.local.LocalItemListAdapter.removeItem(LocalItemListAdapter.java:128)
	at org.schabi.newpipe.local.playlist.LocalPlaylistFragment.deleteItem(LocalPlaylistFragment.java:621)
	at org.schabi.newpipe.local.playlist.LocalPlaylistFragment.lambda$showStreamItemDialog$19$LocalPlaylistFragment(LocalPlaylistFragment.java:791)
	at org.schabi.newpipe.local.playlist.-$$Lambda$LocalPlaylistFragment$90syoQLDH9fDdmrHKGkSeGndyvo.onClick(Unknown Source:4)
	at org.schabi.newpipe.util.StreamDialogEntry.clickOn(StreamDialogEntry.java:105)
	at org.schabi.newpipe.local.playlist.LocalPlaylistFragment.lambda$showStreamItemDialog$20$LocalPlaylistFragment(LocalPlaylistFragment.java:794)
	at org.schabi.newpipe.local.playlist.-$$Lambda$LocalPlaylistFragment$XkVgE8RSZjjT9Ft0r7B-0GYSTrk.onClick(Unknown Source:4)
	at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:1169)
	at android.widget.AdapterView.performItemClick(AdapterView.java:318)
	at android.widget.AbsListView.performItemClick(AbsListView.java:1192)
	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3169)
	at android.os.Handler.handleCallback(Handler.java:873)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:193)
	at android.app.ActivityThread.main(ActivityThread.java:6758)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)


~~Could be related to #3887 but this has a different crash log.~~

My mistake, it was actually caused when I was deleting a video from a local Playlist.

@wb9688
Copy link
Contributor

wb9688 commented Jul 16, 2020

What exactly did you do? Please just fill in the whole issue template.

That error seems to happen from trying to remove an item…

@Stypox Stypox added more info needed bug Issue is related to a bug labels Jul 16, 2020
@nate2014jatc nate2014jatc changed the title Crashing When Playing From Playlist Tab Crashing When Deleting From Playlist Tab Jul 19, 2020
@nate2014jatc
Copy link
Author

You are correct, my apologies.
it was caused when I was removing an item from a Playlist.
I have updated the title and body accordingly.
what data am I missing from the report? I pasted it directly from the app.

@Stypox Stypox added GUI Issue is related to the graphical user interface and removed more info needed labels Jul 21, 2020
@opusforlife2
Copy link
Collaborator

@nate2014jatc Has this happened since or was it a one-off?

@sauravrao637
Copy link
Contributor

@nate2014jatc can you please test the apk generated by PR#6127

@nate2014jatc
Copy link
Author

Let me make sure this is still a bug, and then I'll try the new version.

@nate2014jatc
Copy link
Author

This appears to no longer be an issue on 0.21.2.

@mustanggb
Copy link

With 0.21.15 it still occurs.

@Redirion
Copy link
Member

can you provide a log of the crash?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug GUI Issue is related to the graphical user interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants