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

LMS crashes when accessed with Audinaut or Subtracks Android Apps - Node already has a value #225

Closed
rluetzner opened this issue May 17, 2022 · 7 comments
Labels
Milestone

Comments

@rluetzner
Copy link

I've had some trouble getting Android Apps to work in combination with my LMS instance.

I'm aware that neither Audinaut nor Subtracks have been tested. I stumbled over these while looking for FOSS Apps on F-Droid and if possible I would rather use these than anything proprietary. DSub is of course an alternative, but also gave me trouble at the start (but no crashes).

In case of Subtracks the crash is consistently reproducible and will crash the server as well as the client. After opening Subtracks a few times (or navigating quickly enough to a submenu) I'm able to queue music and listen to it without further issues. The following log line pops up whenever the server process crashes:

[2022-May-17 11:03:13.572] 1 - [error] - [API_SUBSONIC] Error while processing request 'getCoverArt', params = [{c=subtracks}, {id=-1}, {p=*REDACTED*}, {size=256}, {u=REDACTED}, {v=1.13.0}, ], code = 0, msg = 'Parameter 'id': bad value'
172.18.0.4 - - [2022-May-17 11:03:13.573] "HEAD /rest/getCoverArt.view?u=REDACTED&p=REDACTED&v=1.13.0&c=subtracks&id=-1&size=256 HTTP/1.1" 200 174
[2022-May-17 11:03:15.652] 1 - [error] - [API_SUBSONIC] Error while processing request 'getCoverArt', params = [{c=subtracks}, {id=-1}, {p=*REDACTED*}, {size=256}, {u=REDACTED}, {v=1.13.0}, ], code = 0, msg = 'Parameter 'id': bad value'
172.18.0.4 - - [2022-May-17 11:03:15.652] "HEAD /rest/getCoverArt.view?u=REDACTED&p=REDACTED&v=1.13.0&c=subtracks&id=-1&size=256 HTTP/1.1" 200 174
172.18.0.4 - - [2022-May-17 11:03:19.950] "GET /rest/getAlbumList2.view?u=REDACTED&p=REDACTED&v=1.13.0&c=subtracks&size=300&offset=0&type=alphabeticalByArtist HTTP/1.1" 200 59489
terminate called after throwing an instance of 'LmsException'
  what():  Node already has a value

The same happens with Audinaut, although here at least the client handles the error and does not crash itself:

172.18.0.4 - - [2022-May-17 11:08:47.453] "GET /rest/getUser.view?u=REDACTED&p=REDACTED&v=1.13.0&c=Audinaut&username=REDACTED HTTP/1.1" 200 394
terminate called after throwing an instance of 'LmsException'
  what():  Node already has a value

I mainly wanted to use Subtracks, because out of all the FOSS Apps it showed the most promise of working smoothly with LMS. DSub is listed as compatible and tested, but gave me trouble initially as well. I've since been able to get it to work, but I've not spent tons of time playing around with it.

If you're not going to support Subtracks that's fine by me, but the error message seems like something that should be easy to find and figure out.

@epoupon
Copy link
Owner

epoupon commented May 17, 2022

Hi!
Thanks for reporting this, it looks like a regression of #184.
I managed to reproduce it locally, so I guess it should be not that difficult to fix this.

@epoupon epoupon added the bug label May 17, 2022
@epoupon epoupon added this to the v3.29.0 milestone May 17, 2022
@epoupon epoupon pinned this issue May 17, 2022
@epoupon
Copy link
Owner

epoupon commented May 18, 2022

Ok I have fixed this but I find subtracks is very laggy (lot of freezes in the UI when browsing albums for example)
Is that the case also for you?

epoupon added a commit that referenced this issue May 18, 2022
@epoupon epoupon closed this as completed May 18, 2022
@epoupon epoupon unpinned this issue May 18, 2022
@rluetzner
Copy link
Author

I've observed something similar, although at the time I thought that might be related to a slow response from my network. If I find the time I'll look into this more closely and report back. Thanks for looking into and fixing this. 😃

@Sahnvour
Copy link

@epoupon Thanks for the fix, I have the same issue with Ultrasonic. Any plans of releasing a new version (or a hotfix) soon ?

@epoupon
Copy link
Owner

epoupon commented May 22, 2022

Hi! I am not far from finishing #193, I think/hope it should be a matter of days now.

@rluetzner
Copy link
Author

rluetzner commented May 27, 2022

Thank you. It's working as expected now.

I'm not noticing any major UI slowdowns with Subtracks, although scrolling through a huge library requires a lot of requests, i.e. there's no predictive fetching of artists or albums, instead the next page seems to be loaded when I've reached the end of the last. I can live with that.

I did have some trouble with the update though as the new Docker container did not load my SQLite DB correctly. Everything works fine now after I've deleted the DB and started from scratch. I would open a new ticket, but couldn't find any hints in the logs. The container just kept restarting. I was also not attached to any of the metadata, so it's no trouble for me.


Edit: it's most likely the same issue as #228 .

@epoupon
Copy link
Owner

epoupon commented May 27, 2022

Yes indeed, sorry for that.
By recreating the the DB have a workaround for the scan issue (but the bug is still here... working on it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants