-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Android app freezing after launch #10030
Comments
Can you try accessing your instance over local IP? What is your mobile phone model? |
Hi, I can't as it's a dedicated server in another country. |
I'm having the same issue. I'm running a galaxy S21+ But it seems to be the issue with my android app version 1.106.3 build 14.3 Server version 1.106.4 on a Debian 12 container. The experience is that:
I've tried running it in various conditions: It feels like it locks up trying to index or cash the content. I also very large library. Let me know how else I can help. |
I'm going to try to attach adb to the app loaded on my phone and will see what's locking it up later this week. |
I wonder if it would be worth implementing this usage pattern, if not already - https://isar.dev/recipes/multi_isolate.html#example I found isolate usage in the code but it might be for the background sync. I'm thinking if doing the database sync in an isolate thread would help with performance. |
Hi, I found using isolates helped, adb logs don't show any more than usual, other than using CPU profiling which shows Isar doing this: The UI locks up at this state, and there are no more logs. Doing more CPU profiling shows about the same things, maybe as flutter itself stops responding on the app. As I mentioned, running the app with my isolate PR fixes this problem, but I suspect it might be something related to it, or a side effect/bug that I put in f.e. - there are watchers on the Isar db that would refresh the UI. Perhaps this happens too many times (per asset?) and that might/not be happening with the assets synced in the isolate? Thank you! |
We‘re experiencing the same on my wife’s Galaxy S20, see here: #9614 I hope your PR can be merged at some point. For us, this is the most annoying bug with this otherwise amazing software. I understood it might not be the root cause, but maybe it improves things. I am clutching at every straw 🤣 |
Hey! I've implemented immich locally for a month now. Everthing has being going great up until a few days ago? Android App version: 1.115.0 I've tried clearing cache: same behaviour. |
This is unfortunately also happening to me for couple of versions.. Background sync works, but after few (approximately 20) seconds the app freezes and I cannot do anything. Does not matter if I open gallery or sync settings, or other screen. If I tab out and return to app, I only see black screen. Immich version (both app and server): 1.115.0 |
@LinhyCZ how many assets do you have on your instance and local device? How many album do you have on your Immich instance? How long have you been installing the app? |
@alextran1502 is there a good way to get library stats? I've made a dummy user with 100k photos and the app worked just fine. My library is ~70k + some videos Also tested on pixel 2 when i made this issue (100% of the time), now got a pixel 8 pro - still having the same problem just not as frequently |
@matejkramny the easiest way is from the web, you can hover on the icon next to the navigation button to show how many assets/albums the user has. I believe the bottleneck is our albums synchronization code that competes with the UI thread. We discussed internally and come up with a better solution. The PRs you are seeing that refactoring the mobile app are steps toward solving this issue |
@alextran1502 I have about 24k photos and 2k videos + 10k assests from external library. I have been using Immich for almost a year (I think :D), about two months ago I noticed some assets were not uploaded, so I uninstalled the app, installed it again and reran the upload job (which fixed the missing assets). |
@LinhyCZ thanks for the info. How many Immich's albums and albums on the local device do you have? |
@alextran1502 I only clicked on the Recent option, I don't have any albums created.. |
@alextran1502 I have tried working with the app a bit more, uninstalled it and installed it back again and it is somewhat working, but the reactions are very slow.. sometimes it takes about 30 seconds until the app registers i clicked on something or renders something.. |
@LinhyCZ We are working toward a better sync operation, which will make the app more responsive when first opening. By the way, what is your phone model? |
@alextran1502 Might make it better, but this is not just on a first opening. For me the app is very sluggish the whole time I use it. My phone is an old Huawei Mate 10 Pro. |
I have 63k photos and I'm experiencing the same app hang/crash issue. Background sync works but if I open the app, it will crash shortly. Opening in webui will works fine for me |
Hi, not sure this is supposed to be Android specific, just noting that I experience the same with 55k images on a new iPhone. The app freezes regularly after opening. |
@alextran1502 Hi, I previously post in https://github.com/immich-app/immich/issues/11113#issuecomment-2384273824
I find something interessting this morning, app don't crash and is very smooth if I follow this step:
it work until i force app to close in android menu |
@Matou25 what is the stats of your account? How many assets, how many albums? |
@alextran1502 |
Have the same issue with about 33k images. Have to force reboot entire phone to escape it. Android galaxy s20. |
I have the same issues with about 50k images. Galaxy s20 fe |
@ThomasConrad @slagiewski Can you guys try not selecting any album for backup and open the app, so that it loads the remote only assets and see if it is still crashing |
Hi @alextran1502, |
We are working on a better sync mechanism, which hopefully solves this issue #13699 |
The bug
The android app freezes shortly after launching, every time. Perhaps I have too big of a library.. web works fine.
The app logs don't show anything useful.
I have tested the demo server, and it works fine.
Library is ~70k photos.
Another user on my server has ~10k photos - works without issue.
Have had an external library but removed since, don't think it's a duplicate of #8148 but is very similar.
How can I best figure out what's wrong?
The OS that Immich Server is running on
Ubuntu 22 lts
Version of Immich Server
1.105.1
Version of Immich Mobile App
1.105.1
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Additional information
The top user is not working, bottom one has no problems
The text was updated successfully, but these errors were encountered: