BLeeEZ / amperfy

Amperfy is an iOS app to play songs from an Ampache or Subsonic server
GNU General Public License v3.0
383 stars 34 forks source link

Amperfy crashes when in airplane mode / disconnected #244

Closed bietiekay closed 1 month ago

bietiekay commented 2 months ago

I was let down by Amperfy when I preloaded lots of my music library and went on a 15 hour flight. Only to find Amperfy to crash when my phone was in Airplane mode / not connected "correctly".

Please please make it work and not just crash - it opened and closed whenever launched. Can be replicated when certain network conditions are met (airplane mode / no correct network but maybe iOS says there is network....)

BLeeEZ commented 2 months ago

Have you tried "Offline Mode" in Settings. Is it then still crashing?

bietiekay commented 2 months ago

Yes. Switched to offline when I was back at home - still crashed when network was bad/disconnected.

Also: While travelling I had the app crash immediately after starting it - no time to switch to the offline mode because there was no way to get to the settings in the app. The Settings page of the System Settings does not offer the offline mode.

BLeeEZ commented 2 months ago

What Amperfy version and what server are you using?

bietiekay commented 2 months ago

Amperfy 1.1.5 and Subsonic 11.0

Since there was no internet available (in a plane) there was no connection to subsonic possible.

Samaze123 commented 2 months ago

I have the same issue here. My server crashed so I had no connection to it and I can't listen more that 30 sec before Amperfy crash. Even in offline mode.

BLeeEZ commented 2 months ago

Amperfy has two backend APIs (Subsonic and Ampache). I asked to know which API could. be responsible for the crash.

I tested a lot of different network conditions and I am currently not able to reproduce this issue. Could you please install the Beta via TestFlight (https://github.com/BLeeEZ/amperfy/issues/25). TestFlight allows the testers to send crash reports when one occurs. This would help to find the root cause. I did some API changes in v1.2.0 (3) too, maybe this already fixed the crash.

Can you tell me how much background song sync percentage ("Settings"->"Library"->"Background Song Sync") did you have when it crashed?

Samaze123 commented 2 months ago

I will install the beta version to send report and i had 100% Song Sync. The API I'm using is Subsonic and my server works with Navidrome.

Samaze123 commented 2 months ago

For me the beta version fixes the issue and don't crash anymore. Thanks !