Symphonium Sync Crashes with my large Plex library

Issue description:

Lately when I sync again Plex, Symphonium just crashes once it reaches somewhere around 100k songs. I’m uploaded logs under -------- so hopefully that will help.

Logs:

Upload description: -------

Additional information:

 

 

Reproduction steps:

 

 

Media provider:

Plex

Screenshots:

     

Do not use your mail as log identifier as it’s visible in this post.

Anyway you are the HiBy user that fill the crash report with OOM so glad you finally come so I can understand this.

In the logs the sync stops during the album part and not the songs, can you clarify it’s is still the case?

If it crash on the song part, please provide new logs.

And just in case, can you try to press cleanup internal states in advanced settings and wait like 30 seconds before starting a new sync ?

After cleaning internal state and waiting awhile, I resynced and it crashed again, it was still updating songs when it crashed - but had slowed down quite a bit - I do notice that the sync process seems to update artists, then albums, then songs, then more albums etc. so it’s possible it had returned to albums.

The logs have been uploaded as talios2, and a screenshot moments prior to the crash can be seen attached.

The device is a Hiby R6Pro II - HiBy R6 Pro II - Portable DAP with Snapdragon 665 | HiBy

That log is empty.

You need to enable logs, then start a sync then after the crash upload it.

So you think you can provide me an access in private to those libraries to see if it’s something special the server returns ? Like too much metadata in one of the queries.

so @talios saw that you uploaded a new log by luck as I’m not notified but it crashes exactly again at the same place.

Really seems like your Plex server returns something that cause this.

I’ll either need an access to the server if possible to the library that have:

2024-07-23 07:13:18.841 Verbose/Plex: Insert Album: Come Together
2024-07-23 07:13:18.841 Verbose/Plex: Insert Album: Crown Lands
2024-07-23 07:13:18.842 Verbose/Plex: Insert Album: Fearless
2024-07-23 07:13:18.843 Verbose/Plex: Insert Album: Fearless (Deluxe)

Or I’ll need the result of some JSON request to your server if you feel comfortable doing queries with proper headers and finding your plex token with things like Postman or Insomnia.

Sorry I didn’t reply sooner - I was busy driving for 5 hours to my folks’ place. One thing I wonder if is/was pertinent was I had several playlists set to auto download, and there was a large number of songs in the download queue—that never downloaded.

I managed to clear and remove both of them, but when I booted up the DAP after getting to my destination I noticed that the new release had been installd and that scanned all the music, updated stats and I was able to download one of the playlists I had previously set to autosync - so I guess something in those downloads was giving grief (of which I don’t think those above would be included in the current version of that playlist).

As an API dev, I could do some queries and get JSON for you, or invite you to the server if you DM me an email address to invite.

So are you saying that it works now ?

From the few logs the crash seems tied to the sync and a specific part of the library, but if it works now then it’s maybe something else. (Or maybe a mix, the download queue was using a lot of memory and that specific query too leading to crash, and now it pass with less memory used by the download manager)

If it still crash the need is the result of :

https://IP:32400/library/sections/8/all?X-Plex-Container-Start=8000&X-Plex-Container-Size=1000&type=9&X-Plex-Token=YOURTOKENVALUEHERE

See Finding an authentication token / X-Plex-Token | Plex Support for how to get the token.
You also need to pass an Accept header for json (“application/json”)

But in all case the result of that query to see why it use a lot of memory after would help.

The sync worked - but I’ve noticed several crashes during playback (not sure if sync was happening at the time tho).

I’ve emailed thru the JSON output from my Plex.

You sent XML but not important there’s nothing special in it.

I can see the OOM in Crashlytics, I’m clueless on what happens on your device.

Can you provide new logs when one or 2 crash occurs without a sync running + a bug report Capture and read bug reports  |  Android Studio  |  Android Developers just after the 2nd crash ?

You can upload via https://upload.symfonium.app

Are there downloads running when it happens ? Can you try to enable the slower downloads option in Offline cache/Media settings ?

Android crash report uploaded. There were no downloads running when crashed.

Ok so nothing clear there except one kill by the OS so maybe check https://dontkillmyapp.com/ to disable battery optimization for Symfonium.

Will need an access to the server to reproduce as it seems to always fail at the same place.