#42062 [Opn->Asn]: imagegrabscreen() returns corrupted GD resource

From: Date: Sun, 22 Jul 2007 14:27:59 +0000
Subject: #42062 [Opn->Asn]: imagegrabscreen() returns corrupted GD resource
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-115301@lists.php.net to get a copy of this message
ID: 42062 Updated by: pajoye@php.net Reported By: fumble1 at web dot de -Status: Open +Status: Assigned Bug Type: GD related Operating System: Windows XP PHP Version: 5.2.3 Assigned To: pajoye New Comment: > Do I have to open a new "ticket" This one is enough. Not sure if it comes from gd or the php stream. The black image is not a bug. Previous Comments: ------------------------------------------------------------------------ [2007-07-22 14:16:55] fumble1 at web dot de pajoye> "Where do you run PHP, in IIS/Apache?" Apache, right. pajoye> "To solve this, goto the computers services find your service, goto properties, select logon and check the box that allows the service to interact with the desktop." That worked, thank you. Do I have to open a new "ticket" on > "that "file-can’t-be-deleted-'cause-it’s-used-by-another-process" thingy [...] caused by the imageoutput-functions failing on memory_limit" or will that do? ------------------------------------------------------------------------ [2007-07-22 13:42:26] pajoye@php.net "That got me an all-black PNG the size of my screen, just to note that." Where do you run PHP, in IIS/Apache? The blank screen is often due to apache or what ever php is running in not having permission to interact with the desktop. To solve this, goto the computers services find your service, goto properties, select logon and check the box that allows the service to interact with the desktop. ------------------------------------------------------------------------ [2007-07-22 12:59:56] fumble1 at web dot de Guess I was on the wrong track... that "file-can’t-be-deleted-'cause-it’s-used-by-another-process" thingy is caused by the imageoutput-functions failing on memory_limit. Sorry for accusing imagegrabscreen(). pajoye> "Increase your memory limit." That got me an all-black PNG the size of my screen, just to note that. ------------------------------------------------------------------------ [2007-07-21 19:25:09] pajoye@php.net Thanks to Derick, I miss the "can't be deleted" part. ------------------------------------------------------------------------ [2007-07-21 19:06:30] pajoye@php.net "Fatal error: Allowed memory size of 8388608 bytes exhausted" Increase your memory limit. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/42062 -- Edit this bug report at http://bugs.php.net/?id=42062&edit=1

« previous php.bugs (#115301) next »