|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75021 Calling 'newPseudoImage' with empty 'caption:' make the fpm process hanging
Submitted: 2017-08-02 08:41 UTC Modified: 2018-12-09 04:22 UTC
From: roman at eyeopen dot nl Assigned:
Status: No Feedback Package: imagick (PECL)
PHP Version: 7.1.7 OS: Ubuntu 16.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-08-02 08:41 UTC] roman at eyeopen dot nl
The same code snippet (see below) works properly in Ubuntu 14.04, which has Imagick 6.7 installed in it.

Test script:
$plateWidth = 142;
$plateHeight = 40;
$platePositionX = 434;
$platePositionY = 171;
$fontColor = '#43B19C';
$transparentColor = '#00000000';

$text = '';

$plate = new Imagick();
$plate->newImage($plateWidth, $plateHeight, new ImagickPixel($transparentColor));
$plate->setBackgroundColor(new ImagickPixel($transparentColor));
$plate->newPseudoImage($plateWidth, $plateHeight, "caption:{$text}");

Expected result:
The empty plate image is rendered.
If the format "caption:" with empty text is not allowed, a clear error message should be shown to the user (developer).

Actual result:
The php-fpm/apache process hangs, takes longer than 30+2 seconds and eventually crashes because of execution timeout.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-11-29 03:26 UTC]
-Status: Open +Status: Feedback
 [2018-11-29 03:26 UTC]
Apologies for the slow response.

I'm unable to replicate this issue. I strongly suspect it will be something peculiar to your setup.

If you're able to reproduce the issue with a docker container (or vagrant) box I might be able to investigate, otherwise I can't help.
 [2018-12-09 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 22 13:01:29 2024 UTC