-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Mobile App Issues: Crashing on video playback and Media refresh issue post deletion from mobile #14845
Comments
Just realized something. The App crashes even if I swipe into a video from an image. |
How did you remove the media from the phone? is it through the file explorer or the native photos app? |
Yeh. Used the file explorer .. X-plore to be precise |
That is probably why the app does not get notified why files are deleted |
Just wondering. Is there a better way to refresh the cache other than signing out and signing back in? The first issue is a bit more concerning for me. We have a lot of videos and app crashing makes the app basically unusable. I have a feeling this issue is not recent and has been an issue since the version with the rendering issue. |
@schizovivek it was not designed with that action in mind so we will have to look at the implementation on how to clear the cache that way |
The caching isn't the biggest concern honestly. For the app crashing on the video is there something I can provide that could help debug the issue? |
@schizovivek Yes, the video as well as your video transcoding settings |
Haven't changed any of the default settings. Note: Video: |
Hmm, settings looks fine, do you see any button to reset to default on the bottom of the transcoding settings section? FWIW, I uploaded the video to my instance and it was playing fine as a remote asset on both Pixel 8 and Samsung S23 Does it crash on the APK you installed? And which method did you use to install the latest version, is it from the Play Store? |
Just did the following
These are the logs I see in my immich docker server
|
Looks like they're older logs. Don't see anything in the most recent logs
|
How did you install Immich on your instance? |
docker compose .env file # THESE TWO VARIABLES COME FROM ANOTHER ENV FILE
HOST_USER=<my user>
HOST_GROUP=<same as above>
# 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/pool/personal/memories
EXTERNAL_LIBRARY=/mnt/pool/personal/memories_non_immich
# The location where your database files are stored
DB_DATA_LOCATION=/home/<my user>/.config/dockerapps/immich/db
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=Europe/London
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=v1.123.0
# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=<my pwd>
# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=db
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=redis
MODEL_CACHE=/home/<my user>/.config/dockerapps/immich/model-cache
# Config variable
#IMMICH_CONFIG_FILE=immich.json compose.yaml #
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#
name: immich
services:
server:
# container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
# - ${EXTERNAL_LIBRARY}:${EXTERNAL_LIBRARY}:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
environment:
user: ${HOST_USER}:${HOST_GROUP}
ports:
- 9006:2283
depends_on:
- redis
- db
restart: unless-stopped
healthcheck:
disable: false
ml:
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- ${MODEL_CACHE}:/cache
env_file:
- .env
environment:
user: ${HOST_USER}:${HOST_GROUP}
restart: unless-stopped
healthcheck:
disable: false
redis:
image: docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8
environment:
user: ${HOST_USER}:${HOST_GROUP}
healthcheck:
test: redis-cli ping || exit 1
restart: unless-stopped
db:
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
# env_file:
# - .env
environment:
user: ${HOST_USER}:${HOST_GROUP}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align
--command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')";
echo "checksum failure count is $$Chksum";
[ "$$Chksum" = '0' ] || exit 1
interval: 5m
start_interval: 30s
start_period: 5m
command: >-
postgres
-c shared_preload_libraries=vectors.so
-c 'search_path="$$user", public, vectors'
-c logging_collector=on
-c max_wal_size=2GB
-c shared_buffers=512MB
-c wal_compression=on |
Do you mind trying to create a test instance with the stock docker-compose and .env file, then try uploading the video and see if it works? If it is, then some custom setup in your instance might have been causing the issue. |
Think I've found the issue. It seems to be happening since i'm using a local certificate for https (caddy). I just connected to my server using http and it worked my https server: https://immich.machine-name.local How I found out. I just tried to pull the adb logs using I hope the below is useful and my assumptions are correct :-D
|
I have the 'Allow self-signed SSL certificates' checkbox enabled in my app. Without which I cannot login using https |
I have the exact video and live photo playback issue. I am also using self signed cert. |
Phew.. Glad i'm not the only one. |
I confirm exact same issue when using a self-signed certificate. Issue disappears when using HTTP or a public SSL certificate. On Samsung S21. I was not able to log the problem but the app just closes immediately. Issue is easy to replicate, use a self signed certificate, allow self signed but do not provide a certificate file (didn't test providing one) |
Here is my app log from Nothing Phone 1:
Hope that helps somehow! |
The bug
So there are two issues I'm currently observing. Have two phones; S22+ and LG v30. The issues are persistent on both phones.
What I'm currently doing is backing up the pics from our phones into immich. Once I do that I move the backed up files into another folder on my NAS thereby deleting it from the phone.
First Issue:
App crashes on playing a video not on the phone.
If I play any video that's no longer on the phone the app just straight up crashes. No error no nothing. Just closes.
Second Issue:
Thumbnails don't refresh for media moved out of phone.
Once I've moved all the media out of the phone (post backup) the app just shows blurred out images for all the media that's been deleted. On clicking the actual image doesn't seem to load.
The only way I found to resolve this was to sign out and sign back in. That's the only time the data seems to refresh on the app. I tried a pull down to refresh and that did nothing.
The OS that Immich Server is running on
Ubuntu 23.04
Version of Immich Server
v1.123.0
Version of Immich Mobile App
v1.123.0 build.172
Platform with the issue
Your docker-compose.yml content
Doesn't seem related
Your .env content
Doesn't seem related
Reproduction steps
Relevant log output
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: