PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » File_DICOM » Bug #223

emalloc(): Unable to allocate 1599034186 bytes

Details

Submitted2003-11-10 20:07 UTC
Fromjustinb at amcdgroup dot com
Assignedxnoguer
StatusClosed
PackageFile_DICOM
PHP Version4.3.3
OSRedhatLinux 8.0 (fully updated)
Roadmaps(Not assigned)

Comments

[2003-11-10 20:07 UTC] justinb at amcdgroup dot com

Description:
------------
I was trying to get the headers of Phillips MRI DICOM file and

at the line:
$res = $dicom_file->parse($filename);
I get the error:
emalloc(): Unable to allocate 1599034186 bytes

I'm not sure if this matters but the file is
132K in size;
I have loaded this image with DICOM::perl and it works fine, so I think it
is a bug..

If any one needs some sample images, I would be happy to email them
too you..

Reproduce code:
---------------
$dicom_file = new File_DICOM();
$res = $dicom_file->parse($filename);

Expected result:
----------------
I should have loaded the headers into the object :)

Actual result:
--------------
FATAL ERROR: emalloc(): Unable to allocate 1599034186 bytes

[2003-11-10 22:22 UTC] xnoguer at php dot net

Could you provide a sample image? If you can, just email it to me.

[2003-11-11 17:03 UTC] xnoguer at php dot net

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.

if possible please test the cvs version with other dicom files (I don't have many files I can use for testing right now)

[2005-05-11 12:11 UTC] mike_mma at yahoo dot com

Hi!

I have the latest release of FILE_DICOM but it still get me the same error #223. I've verified if Element.php has the latest changes and it has.

here is the dicom file i've used:
http://m.distinctgroup.net/~mihai/0020.DCM

[2006-11-11 12:09 UTC] chat dot nitin at gmail dot com

Hello everyone

I need your help
i have installed File_DICOM pear package on my system but i am not able to work on it i.e. the sample program given with its documentation is not working on my system while other packages are working. Although File_DICOM package has been successfully installed on my system.

The code which i am running is as following:

[b]<?PHP
require_once('File/DICOM.php');

$dicom_file = new File_DICOM();
$res = $dicom_file->parse('brain_020.dcm');
echo $dicom;
echo $res;

// check for errors
if (PEAR::isError($res)) {
die($res->getMessage());
}

$sdf=$dicom_file->getValue('Patient ID');
echo $sdf;
echo $dicom_file->getValue(0x0010, 0x0020)."\n";
?>[/b]

[u]I Get the following output:[/u]

1ObjectObject

Plz help me solve my problem regarding this and tell me links to download few sample codes which are running and the process to go about it.

I am thanking to anybody in advance who comes and solve my query

regards
Nitin