Skip to content

Excessive memory consumption for displaying large .psd thumbnails #2259

@Trixlight

Description

@Trixlight

Windows OS version

Windows 11 23H2

ImageGlass version

ImageGlass 8.10.9.27, ImageGlass 9.3.0.514, ImageGlass 9.4.1.15

ImageGlass release

Classic

1️⃣ Steps to reproduce

  1. A folder with any image and a very large .psd file (mine is 232mb, 20000x14000)
  2. Open the image
  3. Enable the Thumbnail Panel

2️⃣ Actual behavior

IG tries to load .psd thumbnail, memory usage spikes to ~6gb, and after ~10 seconds, the PC freezes completely. Temporary files of 4.17 GB are created in the "temp" folder, which are not deleted and eventually fill up the disk.
On version 8, memory consumption increase to ~2gb, disk also fills up. After a longer time, the PC also freezes.

3️⃣ Expected behavior

Shouldn't the "Use embedded thumbnail for RAW formats" option prevent such situations? Or is the embedded thumbnail so large? Also, shouldn't there be restrictions on the thumbnail size to avoid such situations?

4️⃣ Screenshots / Video / Sample image file

.psd (Google Drive)
.psd (Yandex Disk)

5️⃣ Additional context

Strangely, this problem started to occur to me quite recently. And I'm not sure what changed in my PC's environment before and after this started happening.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions