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

[1.15.2] Crash with skip #35

Closed
HyCraftHD opened this issue Feb 8, 2020 · 1 comment
Closed

[1.15.2] Crash with skip #35

HyCraftHD opened this issue Feb 8, 2020 · 1 comment
Assignees
Labels
bug

Comments

@HyCraftHD
Copy link
Member

@HyCraftHD HyCraftHD commented Feb 8, 2020

Describe the bug
Crash on skip

To Reproduce
Steps to reproduce the behavior:

  1. Invalid song (e.g. remove mp3 file from folder, but don't remove it from the playlist
  2. Load playlist and start playing
  3. Shuffle mode is enabled
  4. Skip and the game will crash

Expected behavior
Should not crash

Screenshots
If applicable, add screenshots to help explain your problem.

Versions

  • Mod Version: All
  • Minecraft Version: All
  • Forge Version: All
  • UTeamCore Version: All

Log (if crash occures)
https://pastebin.com/XQ2c34gL

@HyCraftHD HyCraftHD added the bug label Feb 8, 2020
@HyCraftHD HyCraftHD self-assigned this Feb 8, 2020
@HyCraftHD

This comment has been minimized.

Copy link
Member Author

@HyCraftHD HyCraftHD commented Feb 8, 2020

Same happens when a song ends with shuffle mode enabled. Log is as follows:

[Audio Player] ERROR com.sedmelluq.discord.lavaplayer.player.AudioPlayer - Handler of event com.sedmelluq.discord.lavaplayer.player.event.TrackEndEvent@3c97c9ff threw an exception.
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: java.lang.NullPointerException
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at info.u_team.music_player.musicplayer.playlist.Playlist.lambda$4(Playlist.java:306)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at java.util.ArrayList.forEach(ArrayList.java:1257)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at info.u_team.music_player.musicplayer.playlist.Playlist.calculateNext(Playlist.java:302)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at info.u_team.music_player.lavaplayer.queue.TrackQueueWrapper.calculateNext(TrackQueueWrapper.java:18)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at info.u_team.music_player.lavaplayer.queue.TrackManager.skip(TrackManager.java:56)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at info.u_team.music_player.lavaplayer.queue.TrackManager.onTrackEnd(TrackManager.java:25)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at com.sedmelluq.discord.lavaplayer.player.event.AudioEventAdapter.onEvent(AudioEventAdapter.java:70)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayer.dispatchEvent(DefaultAudioPlayer.java:350)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayer.handleTerminator(DefaultAudioPlayer.java:260)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayer.provide(DefaultAudioPlayer.java:196)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at com.sedmelluq.discord.lavaplayer.format.AudioPlayerInputStream.attemptRetrieveFrame(AudioPlayerInputStream.java:110)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at com.sedmelluq.discord.lavaplayer.format.AudioPlayerInputStream.ensureAvailable(AudioPlayerInputStream.java:94)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at com.sedmelluq.discord.lavaplayer.format.AudioPlayerInputStream.read(AudioPlayerInputStream.java:56)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at javax.sound.sampled.AudioInputStream.read(AudioInputStream.java:292)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at javax.sound.sampled.AudioInputStream.read(AudioInputStream.java:232)
�[m�[32m[01:32:16] [Audio Player/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:319]: 	at info.u_team.music_player.lavaplayer.output.AudioOutput.run(AudioOutput.java:56)
HyCraftHD added a commit that referenced this issue Feb 8, 2020
@HyCraftHD HyCraftHD closed this Feb 8, 2020
HyCraftHD added a commit that referenced this issue Feb 10, 2020
HyCraftHD added a commit that referenced this issue Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.