fatal libpng error

Created on 11 August 2020, over 4 years ago
Updated 30 October 2023, about 1 year ago

Problem/Motivation

This error is displayed when viewing content with some existing media image files before module activation :

Warning: imagecreatefrompng(): gd-png: fatal libpng error: cpIp: chunk data is too large in Drupal\system\Plugin\ImageToolkit\GDToolkit->load() (line 197 of core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php).

Drupal\system\Plugin\ImageToolkit\GDToolkit->load() (Line: 154)
Drupal\system\Plugin\ImageToolkit\GDToolkit->getResource() (Line: 58)
Drupal\system\Plugin\ImageToolkit\Operation\gd\Resize->execute(Array) (Line: 172)
Drupal\Core\ImageToolkit\ImageToolkitOperationBase->apply(Array) (Line: 124)
Drupal\Core\ImageToolkit\ImageToolkitBase->apply('resize', Array) (Line: 77)
Drupal\system\Plugin\ImageToolkit\Operation\gd\ScaleAndCrop->execute(Array) (Line: 172)
Drupal\Core\ImageToolkit\ImageToolkitOperationBase->apply(Array) (Line: 124)
Drupal\Core\ImageToolkit\ImageToolkitBase->apply('scale_and_crop', Array) (Line: 142)
Drupal\Core\Image\Image->apply('scale_and_crop', Array) (Line: 30)
Drupal\image\Plugin\ImageEffect\ScaleAndCropImageEffect->applyEffect(Object) (Line: 324)
Drupal\image\Entity\ImageStyle->createDerivative('private://media/image/Diane (1).png', 'private://styles/media_albums_creations/private/media/image/Diane (1).png') (Line: 166)
Drupal\image\Controller\ImageStyleDownloadController->deliver(Object, 'private', Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

It seems to be related to png files...

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.1

Component

Code

Created by

🇫🇷France thib France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇮Finland sokru

    It sounds more like an Drupal core issue. The backtrace doesn't mention exif_orientation. So I'd recommend closing this, unless there's more information about how to reproduce the issue.

  • Status changed to Closed: cannot reproduce about 1 year ago
Production build 0.71.5 2024