Skip to content

[Bug]: cron.php crashes with memory exception in GenerateBlurhashMetadata.php because of large images #52063

Open
@mahibi

Description

@mahibi

⚠️ This issue respects the following points: ⚠️

Bug description

Very large images (e.g. scientific images) occupy a lot of memory while being processed and can lead to cron.php crashes because of a memory exception in GenerateBlurhashMetadata.php:

PHP Fatal error: Allowed memory size of 4294967296 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/owncloud/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php on line 137

Steps to reproduce

.

Expected behavior

no crash

Nextcloud Server version

29

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Labels

Type

No type

Projects

Status

🧭 Planning evaluation (don't pick)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions