Skip to content

crash after one or just a few songs end in playlist #616

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

Closed
1 task done
dimitris-personal opened this issue Aug 5, 2023 · 6 comments
Closed
1 task done

crash after one or just a few songs end in playlist #616

dimitris-personal opened this issue Aug 5, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@dimitris-personal
Copy link

dimitris-personal commented Aug 5, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Opening new issue because the behavior is a combination of #580 and #442: Playback stops at the end of a (in this case the first) song, and attempting to pause start it leads to app crash.

Expected Behavior

Playlist has many more songs left, should continue to next one.

Steps to reproduce

  • Start a playlist
  • After the end of a song (in this latest case, the first one in this session) the app doesn't progress to the next song in the list.
  • Status is still "playing". I click on pause, then play again.
  • App crashes.

Operating System

Fedora 38, GNOME, Wayland

Spotube version

v3.0.1

Installation source

Flathub (Flatpak)

Additional information

log entry:

============================== CATCHER LOG ==============================
Crash occurred on 2023-08-05 10:03:48.671089

------- DEVICE INFO -------
name: GNOME
version: 44 (Flatpak runtime)
id: org.gnome.Platform
idLike: null
versionCodename: null
versionId: 44
prettyName: GNOME 44 (Flatpak runtime)
buildId: null
variant: null
variantId: null
machineId: f8acc9d32ed64189ad529cd6360db66a

------- APP INFO -------
environment: release
version: 3.0.1
appName: spotube
buildNumber: 20
packageName: spotube

---------- ERROR ----------
Error Code: 403
Forbidden.

------- STACK TRACE -------
#0      SpotifyApiBase.handleErrors (package:spotify/src/spotify_base.dart:232)
#1      SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:206)
<asynchronous suspension>
#2      SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:172)
<asynchronous suspension>
#3      Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:236)
<asynchronous suspension>

------- CUSTOM INFO -------
======================================================================

In journalctl I see repeated rate limit errors. Although the error messages says sleeping for 1 second, the log timestamps suggest a loop spinning on API attempts:

Aug 05 10:03:37 laptop xdg-dbus-proxy[8324]: Socket check failed
Aug 05 10:03:37 laptop xdg-dbus-proxy[8324]: Error writing credentials to socket: Error sending message: Broken pipe
Aug 05 10:03:37 laptop xdg-dbus-proxy[8324]: Error writing credentials to socket: Error sending message: Broken pipe
Aug 05 10:03:37 laptop xdg-dbus-proxy[8324]: Error writing credentials to socket: Error sending message: Broken pipe
Aug 05 10:03:37 laptop xdg-dbus-proxy[8324]: Error writing credentials to socket: Error sending message: Broken pipe
Aug 05 10:03:37 laptop xdg-dbus-proxy[8324]: Error writing credentials to socket: Error sending message: Broken pipe
Aug 05 10:03:37 laptop xdg-dbus-proxy[8324]: Error writing credentials to socket: Error sending message: Broken pipe
Aug 05 10:03:27 laptop com.github.KRTirtho.Spotube.desktop[8329]: flutter: Spotify API rate exceeded. waiting for 1 seconds
Aug 05 10:03:27 laptop com.github.KRTirtho.Spotube.desktop[8329]: flutter: Spotify API rate exceeded. waiting for 1 seconds
Aug 05 10:03:27 laptop com.github.KRTirtho.Spotube.desktop[8329]: flutter: Spotify API rate exceeded. waiting for 1 seconds
Aug 05 10:03:27 laptop com.github.KRTirtho.Spotube.desktop[8329]: flutter: Spotify API rate exceeded. waiting for 1 seconds
Aug 05 10:03:27 laptop com.github.KRTirtho.Spotube.desktop[8329]: flutter: Spotify API rate exceeded. waiting for 1 seconds
Aug 05 10:03:27 laptop com.github.KRTirtho.Spotube.desktop[8329]: flutter: Spotify API rate exceeded. waiting for 1 seconds
Aug 05 10:03:27 laptop com.github.KRTirtho.Spotube.desktop[8329]: flutter: Spotify API rate exceeded. waiting for 1 seconds
Aug 05 10:03:27 laptop com.github.KRTirtho.Spotube.desktop[8329]: flutter: Spotify API rate exceeded. waiting for 1 seconds
...

This goes on for some seconds until:

Aug 05 10:03:52 laptop systemd-coredump[11662]: [🡕] Process 8329 (spotube) of user 1000 dumped core.
                                                
                                                Module /app/spotube/lib/libmetadata_god.so without build-id.
                                                Module /app/spotube/lib/libmetadata_god.so
                                                Stack trace of thread 2:
                                                #0  0x00007f85a5228038 n/a (/usr/lib/x86_64-linux-gnu/libwayland-client.so.0.21.0 + 0x7038)
                                                #1  0x00007f85a0710772 n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/libEGL_mesa.so.0.0.0 + 0x2b772)
                                                #2  0x00007f85a0704bc1 n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/libEGL_mesa.so.0.0.0 + 0x1fbc1)
                                                #3  0x00007f85a06f4e1a n/a (/usr/lib/x86_64-linux-gnu/GL/default/lib/libEGL_mesa.so.0.0.0 + 0xfe1a)
                                                #4  0x00007f85a636caa1 n/a (/usr/lib/x86_64-linux-gnu/libgdk-3.so.0.2406.32 + 0x7baa1)
                                                #5  0x00007f85a634e1d2 n/a (/usr/lib/x86_64-linux-gnu/libgdk-3.so.0.2406.32 + 0x5d1d2)
                                                #6  0x00007f85a634e318 n/a (/usr/lib/x86_64-linux-gnu/libgdk-3.so.0.2406.32 + 0x5d318)
                                                #7  0x00007f85a6621857 n/a (/usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2406.32 + 0x221857)
                                                #8  0x00007f85a6333bc1 n/a (/usr/lib/x86_64-linux-gnu/libgdk-3.so.0.2406.32 + 0x42bc1)
                                                #9  0x00007f85a6343b39 n/a (/usr/lib/x86_64-linux-gnu/libgdk-3.so.0.2406.32 + 0x52b39)
                                                #10 0x00007f85a63457f2 n/a (/usr/lib/x86_64-linux-gnu/libgdk-3.so.0.2406.32 + 0x547f2)
                                                #11 0x00007f85a63459ed n/a (/usr/lib/x86_64-linux-gnu/libgdk-3.so.0.2406.32 + 0x549ed)
                                                #12 0x00007f85a5e5665a n/a (/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.7600.3 + 0x1865a)
                                                #13 0x00007f85a5e7153f n/a (/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.7600.3 + 0x3353f)
                                                #14 0x00007f85a5e71743 n/a (/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.7600.3 + 0x33743)
                                                #15 0x00007f85a633d7c5 n/a (/usr/lib/x86_64-linux-gnu/libgdk-3.so.0.2406.32 + 0x4c7c5)
                                                #16 0x00007f85a63282fd n/a (/usr/lib/x86_64-linux-gnu/libgdk-3.so.0.2406.32 + 0x372fd)
                                                #17 0x00007f85a5d51a4f n/a (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.7600.3 + 0x61a4f)
                                                #18 0x00007f85a5d50d49 n/a (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.7600.3 + 0x60d49)
                                                #19 0x00007f85a5d512a8 n/a (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.7600.3 + 0x612a8)
                                                #20 0x00007f85a5d51343 n/a (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.7600.3 + 0x61343)
                                                #21 0x00007f85a5f9535d n/a (/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.7600.3 + 0xf435d)
                                                #22 0x000055d3627d74ee n/a (/app/spotube/spotube + 0x24ee)
                                                ELF object binary architecture: AMD x86-64
@dimitris-personal dimitris-personal added the bug Something isn't working label Aug 5, 2023
@dimitris-personal dimitris-personal changed the title Write the title here crash after one or just a few songs end in playlist Aug 5, 2023
@DickinsonSa
Copy link

Can confirm the exact same steps to reproduce on Android also - click 'play' button at the top of the displayed playlist should play it non-stop. It doesn't, it stops after the first track.

@systemoperator
Copy link

systemoperator commented Aug 6, 2023

I can also confirm this issue: The music stopped after some songs and the flatpak app running on Debian 11 x64 was killed. The system logs show:

Aug  6 21:04:23 yyy kernel: [279221.515507] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=user.slice,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/[email protected]/app.slice/app-flatpak-com.github.KRTirtho.Spotube-3150450.scope,task=spotube,pid=3150464,uid=1000
Aug  6 21:04:23 yyy kernel: [279221.515620] Out of memory: Killed process 3150464 (spotube) total-vm:23475972kB, anon-rss:19571704kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:54852kB oom_score_adj:0
Aug  6 21:04:25 yyy kernel: [279223.932100] oom_reaper: reaped process 3150464 (spotube), now anon-rss:16kB, file-rss:0kB, shmem-rss:0kB

Priority: 3

@KRTirtho
Copy link
Owner

It was fixed. Check the nightly release

@KRTirtho KRTirtho moved this to Done in Spotube Board Aug 26, 2023
@KRTirtho KRTirtho moved this from Done to Deployed in Spotube Board Aug 28, 2023
@KRTirtho
Copy link
Owner

Fixed in v3.1.1

@github-project-automation github-project-automation bot moved this from Deployed to Done in Spotube Board Aug 28, 2023
@KRTirtho KRTirtho moved this from Done to Deployed in Spotube Board Aug 28, 2023
@systemoperator
Copy link

systemoperator commented Aug 28, 2023

moved to #659

@KRTirtho
Copy link
Owner

That's a different issue

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
Status: Deployed
Development

No branches or pull requests

4 participants