Android client freeze #2642

Closed
opened 2026-02-05 06:27:52 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @enboig on GitHub (Mar 21, 2024).

The bug

When opening android app, it freeze after some seconds. It rebuild time line, show some images, and then freeze.

It started after removing an external library and add most of items with CLI. Right now my library contains 33059 images and 1433 videos (258Gb).

I thought it may be because too much images no archived, so I archived most of them. Right now selecting everything from main page in Web reports 490 items, but mobile app continue freezing.

The OS that Immich Server is running on

docker

Version of Immich Server

v1.98.2

Version of Immich Mobile App

v1.98.2

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

version: "3.8"

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: [ "start.sh", "immich" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
#      - /mnt/md0/Imatges:/usr/src/app/external/Imatges
#      - ${EXTERNAL_PATH1}:/usr/src/app/external/external1:ro
    env_file:
      - .env
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
    restart: always
    labels:
      - "diun.enable=true"
      - "diun.watch_repo=true"
      - "diun.include_tags=latest"

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.yml
    #   service: hwaccel
    command: [ "start.sh", "microservices" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
 #     - ${EXTERNAL_PATH1}:/usr/src/app/external/external1:ro
    env_file:
      - .env
    depends_on:
      - redis
      - database
    restart: always
    labels:
      - "diun.enable=true"
      - "diun.watch_repo=true"
      - "diun.include_tags=latest"


  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    volumes:
#      - ./model-cache:/cache
      - /mnt/local/docker/immich/model-cache:/cache
    env_file:
      - .env
    restart: always

  redis:
    container_name: immich_redis
    image: redis:6.2-alpine@sha256:3995fe6ea6a619313e31046bd3c8643f9e70f8f2b294ff82659d409b47d06abb
    restart: always

  database:
    container_name: immich_postgres
    image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    env_file:
      - .env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
#      - ./pgdata:/var/lib/postgresql/data
      - /mnt/local/docker/immich/pgdata:/var/lib/postgresql/data
    restart: always
    labels:
      - "diun.enable=true"
      - "diun.watch_repo=true"
      - "diun.include_tags=latest"


  backup:
    container_name: immich_db_dumper
    image: prodrigestivill/postgres-backup-local
    env_file:
      - .env
    environment:
      POSTGRES_HOST: database
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      SCHEDULE: "@daily"
      BACKUP_NUM_KEEP: 7
      BACKUP_DIR: /db_dumps
    volumes:
      - ./db_dumps:/db_dumps
    depends_on:
      - database
    labels:
      - "diun.enable=true"
      - "diun.watch_repo=true"
      - "diun.include_tags=latest"
#volumes:
#  pgdata:
#  model-cache:
#  tsdata:

Your .env content

# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/md0/docker/immich/Photos
EXTERNAL_PATH1=/mnt/md0/Imatges

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secrets for postgres and typesense. You should change these to random passwords
TYPESENSE_API_KEY=some-random-text
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

REDIS_HOSTNAME=immich_redis

Reproduction steps

1. Have a big library
2. Clear cache in android app to force timeline rebuild
3. Open the app and waig

Additional information

No response

Originally created by @enboig on GitHub (Mar 21, 2024). ### The bug When opening android app, it freeze after some seconds. It rebuild time line, show some images, and then freeze. It started after removing an external library and add most of items with CLI. Right now my library contains 33059 images and 1433 videos (258Gb). I thought it may be because too much images no archived, so I archived most of them. Right now selecting everything from main page in Web reports 490 items, but mobile app continue freezing. ### The OS that Immich Server is running on docker ### Version of Immich Server v1.98.2 ### Version of Immich Mobile App v1.98.2 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML version: "3.8" name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} command: [ "start.sh", "immich" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro # - /mnt/md0/Imatges:/usr/src/app/external/Imatges # - ${EXTERNAL_PATH1}:/usr/src/app/external/external1:ro env_file: - .env ports: - 2283:3001 depends_on: - redis - database restart: always labels: - "diun.enable=true" - "diun.watch_repo=true" - "diun.include_tags=latest" immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.yml # service: hwaccel command: [ "start.sh", "microservices" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro # - ${EXTERNAL_PATH1}:/usr/src/app/external/external1:ro env_file: - .env depends_on: - redis - database restart: always labels: - "diun.enable=true" - "diun.watch_repo=true" - "diun.include_tags=latest" immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} volumes: # - ./model-cache:/cache - /mnt/local/docker/immich/model-cache:/cache env_file: - .env restart: always redis: container_name: immich_redis image: redis:6.2-alpine@sha256:3995fe6ea6a619313e31046bd3c8643f9e70f8f2b294ff82659d409b47d06abb restart: always database: container_name: immich_postgres image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0 env_file: - .env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} volumes: # - ./pgdata:/var/lib/postgresql/data - /mnt/local/docker/immich/pgdata:/var/lib/postgresql/data restart: always labels: - "diun.enable=true" - "diun.watch_repo=true" - "diun.include_tags=latest" backup: container_name: immich_db_dumper image: prodrigestivill/postgres-backup-local env_file: - .env environment: POSTGRES_HOST: database POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_USER: ${DB_USERNAME} POSTGRES_PASSWORD: ${DB_PASSWORD} SCHEDULE: "@daily" BACKUP_NUM_KEEP: 7 BACKUP_DIR: /db_dumps volumes: - ./db_dumps:/db_dumps depends_on: - database labels: - "diun.enable=true" - "diun.watch_repo=true" - "diun.include_tags=latest" #volumes: # pgdata: # model-cache: # tsdata: ``` ### Your .env content ```Shell # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables # The location where your uploaded files are stored UPLOAD_LOCATION=/mnt/md0/docker/immich/Photos EXTERNAL_PATH1=/mnt/md0/Imatges # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release # Connection secrets for postgres and typesense. You should change these to random passwords TYPESENSE_API_KEY=some-random-text DB_PASSWORD=postgres # The values below this line do not need to be changed ################################################################################### DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich REDIS_HOSTNAME=immich_redis ``` ### Reproduction steps ```bash 1. Have a big library 2. Clear cache in android app to force timeline rebuild 3. Open the app and waig ``` ### Additional information _No response_
Author
Owner

@alextran1502 commented on GitHub (Mar 21, 2024):

So things were working fine before you removing the external library?

@alextran1502 commented on GitHub (Mar 21, 2024): So things were working fine before you removing the external library?
Author
Owner

@enboig commented on GitHub (Mar 21, 2024):

Yes, they were. Finally I uninstalled the app, installed version 1.99 (and upgraded my server/docker) and tried again, and it is working. So it wasn't a server problem.

@enboig commented on GitHub (Mar 21, 2024): Yes, they were. Finally I uninstalled the app, installed version 1.99 (and upgraded my server/docker) and tried again, and it is working. So it wasn't a server problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#2642