Re: vm_allocate error

From: OKUMURA, Akira <oxon_at_icrr.u-tokyo.ac.jp>
Date: Sat, 24 Dec 2005 02:08:46 +0900


Hello Philippe,

Same problem happens with 5.08.

I have tried some PNG files.
 From my simple test, gray scale PNG is not displayed correctly. Colored files are drawn as I expected with the macro which I send in last e-mail.
I used 'convert' (image magick) and GraphicConverter.app to create PNGs.

Some of gray scale PNGs generates vm_allocate error. And some PNGs are drawn but all gray scale color is drawn as black.

The attached is ROOT splash image converted to gray scale. It causes vm_allocate error.

Please try gray scale PNGs on your machine.

Sincerely,

OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
Institute for Cosmic Ray Research, University of Tokyo 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan Phone/Fax : +81 4-7136-3153
Skype : okumura.akira

On 2005/12/22, at 6:19, Philippe Canal wrote:

> Hi,
>
> Do you still see the problem with ROOT 5.08?
>
> Cheers,
> Philippe.
>
> -----Original Message-----
> From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-
> roottalk_at_pcroot.cern.ch]
> On Behalf Of OKUMURA, Akira
> Sent: Wednesday, December 14, 2005 12:57 PM
> To: roottalk_at_cern.ch
> Subject: [ROOT] vm_allocate error
>
> Hello Mac ROOTers,
>
> The following macro does not run w/ ROOT 5.06 binary on OS X 10.4.3
> w/ gcc 4.
> (root_v5.06.00.macosx-gcc-4.0)
>
> void test()
> {
> TImage* img = TImage::Open("image00000.png");
> img->SetConstRatio(0);
> img->SetImageQuality(TAttImage::kImgBest);
> img->Draw("N");
> return;
> }
>
> It breaks with the following message.
> root [0] .x test.C
> root.exe(18835) malloc: *** vm_allocate(size=2710577152) failed
> (error code=3)
> root.exe(18835) malloc: *** error: can't allocate region
> root.exe(18835) malloc: *** set a breakpoint in szone_error to debug
>
> *** Break *** bus error
>
> However this macro runs as expectedly with ROOT 5.01 compiled from
> source on RH 7.3 with gcc 2.96. JPEGs and GIFs are displayed
> correctly on the both systems.
>
> Is there anything left to be done after setting PATHs ?
> Or someone has a solution ?
>
> Thank you in advance
>
> OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
> Institute for Cosmic Ray Research, University of Tokyo
> 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan
> Phone/Fax : +81 4-7136-3153
> Skype : okumura.akira
>
>
>
Received on Fri Dec 23 2005 - 18:09:57 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:14 MET