#22777 [NEW]: Imagick: NonconformingDrawingPrimitiveDefinition

From: Date: Wed, 19 Mar 2003 03:14:44 +0000
Subject: #22777 [NEW]: Imagick: NonconformingDrawingPrimitiveDefinition
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14425@lists.php.net to get a copy of this message
From: ceo at l-i-e dot com Operating system: Linux PHP version: 4.3.1 PHP Bug Type: PEAR related Bug description: Imagick: NonconformingDrawingPrimitiveDefinition I was drawing cities/zips onto some maps using: imagick_drawcircle imagick_drawannotation The calculation for x/y co-ordinates were yielding non-integral (float) numbers. I kept getting intermittent (fairly frequent) errors: Imagick Error: NonconformingDrawingPrimitiveDefinition By calling round() on all args first, this error message went away. I suspect something in the conversion of float to integer somewhere is failing on some numbers -- perhaps those with too many/few digits after the decimal??? :-v The "description" sometimes contained: "circle" and sometimes contained numbers such as: 477.5 356.2 213.7 458 469.4 473.9 458.7 . . . Perhaps, though, my source code was passing in PHP values that were beyond the scope of "float" -- -INF and INF, for example... Even so -- the wrappers between PHP and Imagick should, IMHO, allow just about any PHP value and auto-convert it just as PHP always does. An attempt to reduce the script down to a short sample yielded only another problem -- memory. Why would this simple image/script chew up hundreds of meg of RAM? http://ldsonline.com/imagickbug/ I tried it with both the image.jpg (beach scene) in the PHP /ext/magick/examples dir and the actual image I've been using. I can only get memory errors, as displayed at the URL above (after you wait for the server to chew up several hundred megs of RAM...) Oddly enough, in the longer, more complex script, the image works fine, once I round off all my numbers. Dog-slow, but it works... PERHAPS the real problem is attempting to draw to points outside the actual size of the image??? I'm sorry I'm flailing around here for a bug report, but it's the best I can do... -- Edit bug report at http://bugs.php.net/?id=22777&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22777&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22777&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22777&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22777&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22777&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22777&r=support Expected behavior: http://bugs.php.net/fix.php?id=22777&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22777&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22777&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22777&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22777&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22777&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22777&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22777&r=gnused

« previous php.pear.dev (#14425) next »