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

Android App Crashes when sliding on a video. #10439

Open
1 of 3 tasks
carloslockward opened this issue Jun 17, 2024 · 10 comments
Open
1 of 3 tasks

Android App Crashes when sliding on a video. #10439

carloslockward opened this issue Jun 17, 2024 · 10 comments

Comments

@carloslockward
Copy link

carloslockward commented Jun 17, 2024

The bug

Video:
https://github.com/immich-app/immich/assets/24941719/1e3bb88f-ecb0-4a1c-91b5-f0084ccc586e

As you can see in the video, Immich crashes as soon as you slide on a video.

The OS that Immich Server is running on

unraid 6.12.9

Version of Immich Server

1.106.4

Version of Immich Mobile App

1.106.3 build.143

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

1. Enter app
2. Tap on a video
3. Slide right or left

Relevant log output

No response

Additional information

No relevant logs are produced on the server. Just websocket connect and then disconnect when the crash happens.

@alextran1502
Copy link
Contributor

Hello, what is your phone model?

@alextran1502
Copy link
Contributor

Also any logs can you grab from the mobile app?

@carloslockward
Copy link
Author

carloslockward commented Jun 17, 2024

@alextran1502
Is a Samsung S22+. Nothing relevant seems to be happening in the logs.

I set the log level to FINEST, cleared the logs and then reproduced the issue.
Here are the logs produced:

2024-06-17 14:44:15.540878 | FINE     | socket_io_client:engine.Socket | flushing 1 packets in socket |
2024-06-17 14:44:15.539720 | FINE     | socket_io_client:engine.Socket | socket receive: type "ping", data "null" |
2024-06-17 14:43:51.747926 | INFO     | AssetNotifier        | Load assets: 1430ms |
2024-06-17 14:43:51.747902 | INFO     | AlbumService         | Syncing completed. Changes: false |
2024-06-17 14:43:51.747890 | FINE     | SyncService          | 0 assets to delete, 0 to update |
2024-06-17 14:43:51.747869 | FINE     | SyncService          | Syncing all local albums almost done. Collected 0 asset candidates to delete |
2024-06-17 14:43:51.747782 | FINE     | SyncService          | Local album Camera has not changed. Skipping sync. |
2024-06-17 14:43:51.709082 | INFO     | AlbumService         | 'Recents' is not selected, keeping only selected albums |
2024-06-17 14:43:51.708979 | INFO     | AlbumService         | Found 54 device albums |
2024-06-17 14:43:50.910340 | INFO     | AlbumService         | Syncing completed. Changes: false |
2024-06-17 14:43:50.910330 | FINE     | SyncService          | 0 assets to delete, 0 to update |
2024-06-17 14:43:50.910317 | FINE     | SyncService          | Syncing all local albums almost done. Collected 0 asset candidates to delete |
2024-06-17 14:43:50.910243 | FINE     | SyncService          | Local album Camera has not changed. Skipping sync. |
2024-06-17 14:43:50.713579 | FINE     | socket_io_client:engine.Socket | socket receive: type "message", data "2["on_new_release",{"isAvailable":false,"checkedAt":"2024-06-17T17:41:56.209Z","serverVersion":{"major":1,"minor":106,"patch":4},"releaseVersion":{"major":1,"minor":106,"patch":4}}]" |
2024-06-17 14:43:50.653247 | FINE     | socket_io_client:engine.Socket | socket receive: type "message", data "2["on_server_version",{"options":{},"loose":false,"includePrerelease":false,"raw":"1.106.4","major":1,"minor":106,"patch":4,"prerelease":[],"build":[],"version":"1.106.4"}]" |
2024-06-17 14:43:50.644386 | FINE     | socket_io_client:engine.Socket | socket receive: type "message", data "0{"sid":"KzrTxYgt647ZBWafAABZ"}" |
2024-06-17 14:43:50.606617 | INFO     | AlbumService         | 'Recents' is not selected, keeping only selected albums |
2024-06-17 14:43:50.596675 | INFO     | AlbumService         | Found 54 device albums |
2024-06-17 14:43:50.548669 | FINE     | socket_io_client:engine.Socket | flushing 1 packets in socket |
2024-06-17 14:43:50.548657 | FINE     | socket_io:parser.Encoder | encoded {type: 0, data: null, nsp: /} as 0 |
2024-06-17 14:43:50.548623 | FINE     | socket_io:parser.Encoder | encoding packet {type: 0, data: null, nsp: /} |
2024-06-17 14:43:50.548614 | FINE     | socket_io_client:Manager | writing packet {type: 0, data: null, nsp: /} |
2024-06-17 14:43:50.548599 | FINE     | socket_io_client:Socket | transport is open - connecting |
2024-06-17 14:43:50.548498 | FINE     | socket_io_client:Manager | cleanup |
2024-06-17 14:43:50.548490 | FINE     | socket_io_client:Manager | open |
2024-06-17 14:43:50.548478 | FINE     | socket_io_client:engine.Socket | socket open |
2024-06-17 14:43:50.548412 | FINE     | socket_io_client:engine.Socket | socket receive: type "open", data "{"sid":"oXtyEqtojXDT0yDnAABY","upgrades":[],"pingInterval":25000,"pingTimeout":20000,"maxPayload":1000000}" |
2024-06-17 14:43:50.293210 | FINE     | socket_io_client:Manager | readyState opening |
2024-06-17 14:43:50.293083 | FINE     | socket_io_client:Manager | connect attempt will timeout after 20000 |
2024-06-17 14:43:50.292884 | FINE     | socket_io_client:engine.Socket | setting transport websocket |
2024-06-17 14:43:50.291578 | FINE     | socket_io_client:engine.Socket | creating transport "websocket" |
2024-06-17 14:43:50.291366 | FINE     | socket_io_client:Manager | opening REDACTED |
2024-06-17 14:43:50.291284 | FINE     | socket_io_client:Manager | readyState closed |
2024-06-17 14:43:50.291104 | FINE     | socket_io_client     | ignoring socket cache for REDACTED |
2024-06-17 14:43:49.415561 | INFO     | ApiService           | Pinging server with response code 200 |

@alextran1502
Copy link
Contributor

Thank you, does it crash on every video or just that one specific video?

@desmond206x
Copy link

Also happens on my Pixel 7 Android 14.

Only happens while switching from one video to another for me. But every time.

screen-20240617-222215.mp4.2.mp4

@carloslockward
Copy link
Author

carloslockward commented Jun 17, 2024

@alextran1502 I can confirm it only happens when swipping from video to video. I also noticed that this only happens if the videos are on device, if the videos are only on the Immich server it seems it doesnt happen.

@kt368
Copy link

kt368 commented Jun 19, 2024

I see same bug, Pixel 7* Android 14.
When I sliding from one vide file to another (both files are in my phone locally) Immich app is crashing.
App version 1.106.4,
Server version 1.106.4.
Server run in docker at Centos stream 9.

@RealJohnGalt
Copy link

RealJohnGalt commented Jun 24, 2024

In logcat are you seeing a crash, or is it being lmkd killed? If you're scrolling past a large number of photos/videos prior you're probably running into high memory usage in the android app and it's getting killed swiping like this.

This has been a known issue for me on multiple devices as long as I can remember. Here I can easily hit 6.5-7G app memory usage before it gets killed. As a workaround I only use the app for backups and the website for browsing on android.

@desmond206x
Copy link

If you're scrolling past a large number of photos/videos prior you're probably running into high memory usage in the android app and it's getting killed swiping like this.

No. I can open the app, open the first video of two in a row and after swiping to the second video the app crashes immediately.

@RealJohnGalt
Copy link

If you're scrolling past a large number of photos/videos prior you're probably running into high memory usage in the android app and it's getting killed swiping like this.

No. I can open the app, open the first video of two in a row and after swiping to the second video the app crashes immediately.

I'd still check logcat to see if you get a crash trace or if it is killed. It is very inefficient, so killings occur easily and often.

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

No branches or pull requests

5 participants