nvllsvm / Audinaut

A Subsonic client for Android
GNU General Public License v3.0
134 stars 18 forks source link

Infinite recursion with Funkwhale #52

Open Nutomic opened 5 years ago

Nutomic commented 5 years ago

I connected the app to my Funkwhale server without problems, and audio files are shown in the library. But trying to play any song displays the error "stack size 1037 KB" in the app.

Logcat shows the following lines repeating again and again, probably a thousand times or more:

10-13 13:15:14.892 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.util.FileUtil.getAlbumDirectory(FileUtil.java:259)
10-13 13:15:14.892 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.util.FileUtil.getSongFile(FileUtil.java:93)
10-13 13:15:14.892 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.util.FileUtil.getAlbumDirectory(FileUtil.java:259)
10-13 13:15:14.892 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.util.FileUtil.getSongFile(FileUtil.java:93)
10-13 13:15:14.892 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.util.FileUtil.getAlbumDirectory(FileUtil.java:259)

The last lines are different:

10-13 13:15:14.920 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.util.SongDBHandler.addSongs(SongDBHandler.java:79)
10-13 13:15:14.920 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.service.CachedMusicService.updateAllSongs(CachedMusicService.java:669)
10-13 13:15:14.920 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.service.CachedMusicService.getAlbum(CachedMusicService.java:268)
10-13 13:15:14.920 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.fragments.SubsonicFragment$RecursiveLoader.getSongsRecursively(SubsonicFragment.java:1470)
10-13 13:15:14.920 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.fragments.SubsonicFragment$4.doInBackground(SubsonicFragment.java:722)
10-13 13:15:14.920 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.fragments.SubsonicFragment$4.doInBackground(SubsonicFragment.java:705)
10-13 13:15:14.920 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.util.BackgroundTask$Task.execute(BackgroundTask.java:172)
10-13 13:15:14.920 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.util.BackgroundTask$Task.access$100(BackgroundTask.java:158)
10-13 13:15:14.920 16011 16011 W BackgroundTask:        at net.nullsum.audinaut.util.BackgroundTask$TaskRunnable.run(BackgroundTask.java:268)
10-13 13:15:14.920 16011 16011 W BackgroundTask:        at java.lang.Thread.run(Thread.java:764)