Skip to content

Memory allocation error when import large image #1697

Closed
@4444man

Description

@4444man

Hydrus version

v614

Qt major version

Qt 6

Operating system

Windows 11

Install method

Extract

Install and OS comments

No response

Bug description and reproduction

The issue occurred when importing a high-resolution AVIF file. It seems to have exceeded the memory limit, but I couldn't find any relevant settings.

Log output

v615, win32, frozen
RuntimeError
Memory allocation error: Security limit exceeded: Allocating 785502735 bytes exceeds the security limit of 536870912 bytes
Traceback (most recent call last):
  File "hydrus\core\files\images\HydrusImageNormalisation.py", line 124, in DequantizePILImage
  File "hydrus\core\files\images\HydrusImageNormalisation.py", line 178, in NormaliseICCProfilePILImageToSRGB
  File "PIL\ImageCms.py", line 493, in profileToProfile
  File "PIL\ImageCms.py", line 358, in apply
  File "PIL\Image.py", line 1609, in getim
  File "pillow_heif\as_plugin.py", line 61, in load
  File "pillow_heif\heif.py", line 63, in data
  File "pillow_heif\heif.py", line 114, in load
RuntimeError: Memory allocation error: Security limit exceeded: Allocating 785502735 bytes exceeds the security limit of 536870912 bytes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions