Skip to content

Win11 Memory leak #3

@brozkeff

Description

@brozkeff

Even setting to the max 16GB profile does not seem to work and entire 40GB RAM memory is quickly depleted and OOM condition happens when Windows starts killing processes and eventually also VibeCulling and Python is killed. Win11 25H2, Python3.11, dependencies via uv, and culling through photos (JPG+DNG in same folder, saved from Google Camera mod from Motorola phone), cca 120 GB photos in the folder, 12 000 files (6000 JPG + 6000 DNG : 2026-01-11 04:25:36 - INFO - root - VibeCulling.py:5075 - 백그라운드 로딩 완료 (모드: jpg_with_raw): 6364개 이미지, 5831개 RAW 매칭 )

Automatically app starts in 32GB profile, Log after changing to 16GB max and restarting:

2026-01-11 04:25:02 - INFO - root - VibeCulling.py:809 - 사용자가 성능 프로필을 수동으로 '표준 (16GB RAM)'(으)로 변경했습니다.
2026-01-11 04:25:02 - INFO - root - VibeCulling.py:8055 - 사용자가 성능 프로필을 'balanced'로 변경했습니다. 앱을 재시작해야 적용됩니다.

Some time later warnings in log appear about high memory usage trying to clean some cache:

2026-01-11 04:32:53 - WARNING - root - VibeCulling.py:7192 - 경고: 높은 메모리 사용량 (84.3%)
2026-01-11 04:32:53 - INFO - root - VibeCulling.py:7262 - 메모리 관리: 이미지 캐시에서 14개 항목 제거
2026-01-11 04:32:53 - INFO - root - VibeCulling.py:2867 - 메모리 사용량 CAUTION 수준 (84.3%): 캐시 15% 정리 (12개 항목 제거)
2026-01-11 04:32:56 - INFO - root - VibeCulling.py:12475 - 전체 선택: 16개 이미지
2026-01-11 04:32:57 - INFO - root - VibeCulling.py:12653 - 다중 이미지 이동 시작: 16개 파일

Very quickly 95% RAM consumed,

2026-01-11 04:34:33 - WARNING - root - VibeCulling.py:7187 - 높은 메모리 사용량 감지 (97.5%): 캐시 정리 수행
2026-01-11 04:34:33 - INFO - root - VibeCulling.py:7228 - 메모리 확보: 이미지 캐시에서 22개 항목 제거
2026-01-11 04:34:34 - INFO - root - VibeCulling.py:14041 - 상태 저장 완료: C:\Programs\VibeCulling\VibeCulling-25.08.06\vibeculling_data.json

at that time after once app and other apps crashed I noticed it in task manager and closed the app before it crashed completely.

Screenshot from Win11 task manager (Czech language) attached where memory consumption is visible over time.

Image

App running via uv (uv run VibeCulling.py) from unpacked source zip of version 25.8.6

Python: cpython-3.11.14-windows-x86_64-none

Dependencies:

exifread==3.5.1
numpy==2.4.1
piexif==1.1.3
pillow==12.1.0
pillow-heif==1.1.1
psutil==7.2.1
pyside6==6.10.1
pyside6-addons==6.10.1
pyside6-essentials==6.10.1
rawpy==0.25.1
shiboken6==6.10.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions