Open felixschndr opened 2 weeks ago
Edit: It was not a problem with the EXIF metadata of the file. I used an online tool to remove it and the bug still occured. It seems to be a problem with the size or resolution. The original image has a resolution of 4000x3000. After I cropped it a little (to 3795x2065) the bug does not appear any more
Please share your docker-compose file.
Can this be replicated on an installation using our sample postgres docker-compose?
You've said this can be replicated on the demo, what are the exact steps for that?
This is the demo instance:
Please share your docker-compose file.
services:
mealie:
image: ghcr.io/mealie-recipes/mealie
container_name: mealie_app
ports:
- 12000:9000
deploy:
resources:
limits:
memory: 400M
volumes:
- ./data/mealie:/app/data/
environment:
ALLOW_SIGNUP: "false"
PUID: ${ENV_PUID}
PGID: ${ENV_PGID}
TZ: ${TIMEZONE}
API_DOCS: "false"
MAX_WORKERS: 1
WEB_CONCURRENCY: 1
DB_ENGINE: postgres
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_SERVER: mealie_database
POSTGRES_PORT: 5432
POSTGRES_DB: ${POSTGRES_DB}
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
SMTP_FROM_NAME: ${SMTP_FROM_NAME}
SMTP_AUTH_STRATEGY: ${SMTP_AUTH_STRATEGY}
SMTP_FROM_EMAIL: ${SMTP_FROM_EMAIL}
SMTP_USER: ${SMTP_USER}
SMTP_PASSWORD: ${SMTP_PASSWORD}
restart: always
depends_on:
- database
database:
container_name: mealie_database
image: postgres:15
volumes:
- ./data/postgres/postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
restart: always
healthcheck:
test: pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB
interval: 5s
timeout: 5s
retries: 5
You've said this can be replicated on the demo, what are the exact steps for that?
I just tried this on my personal mealie instance. The steps are as follows
This is with the newest available docker version (Version v1.10.2
, Build e344f3f1e6672d673f6e0899a5cef28aa8beb2f0.
I just tried it again in the demo instance and was not able to reproduce it. However I am pretty sure I was able to reproduce it in the demo instance in the past.
I made you a screen recording (maybe it helps). You can find it here
@felixschndr can you post your compose file with code formatting.
It
Should
Look
Something like this
It's not really readable in its current state.
One initial suggestion, try increasing the memory limit, at least to 1000
can you post your compose file with code formatting.
Yes, of course. I tried doing a summary but that messed up the formatting. I changed the original post.
try increasing the memory limit, at least to 1000
That fixed the issue. Thanks. However I am wondering about two things
MemoryError
https://docs.python.org/3/library/exceptions.html#MemoryErrorI checked the memory usage of the container. In idle it needs about 380 MB. While adding the image it needs 550 MB (170MB more for an 7 MB image). After adding the image the container needs 430 MB
First Check
What is the issue you are experiencing?
If I upload an image to a recipe Mealie instantly crashes.
This only seems to happen with images from my camera. Uploading an Android screenshot works without any issues. I guess there is some metadata in the images from my camera or the resolution brings Mealie to a halt.
Steps to Reproduce
Please provide relevant logs
These are the only logs (level set to
DEBUG
):Mealie Version
Version: v1.10.1 (happend with 1.8.1 as well) Build: d639d168fa7c39ffb802d46ba05e4ec4de33faf9
Deployment
Docker (Linux)
Additional Deployment Details
No response