Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

abkrim's avatar
Level 13

Issue with Spati/MediaLibrary with queues

Scenario

  • Laravel 12
  • Horizon Queues
  • Spatie/MediaLibrary
  • alphjsmit/laravel-filament-media-library
  • Laravel Herd
  • PHP 8.3

If upload without queue (mode sync) work fine.

If change to redis get error.

[2025-03-13 12:09:37] local.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 24576 bytes) {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 24576 bytes) at /Users/abkrim/Sites/aicha/vendor/spatie/image/src/Drivers/Gd/GdDriver.php:90)

Questions

  • PHP has 521M memory_max
  • Message show "Allowed memory size of 134217728 " = 128M ????

Deseperate.

0 likes
2 replies
abkrim's avatar
Level 13

Issue only affect to gd library. ImageMagic work fine.

visionova's avatar

I have the same problem without Herd and without Horizon Queues

Please or to participate in this conversation.