Thread Subject: Bad data returned by HARDCOPY. Not calling IMWRITE

Subject: Bad data returned by HARDCOPY. Not calling IMWRITE

From: Van Lancker Eric

Date: 20 Feb, 2006 11:04:52

Message: 1 of 4

Hi,

In a batch processing using the command
print(gcf,'-r126','-djpeg75',[Pn Fn]);
I have sometimes (1 time upon 1000) the following error

Error using ==> print
Error using ==> graphics\private\render
Bad data returned by HARDCOPY. Not calling IMWRITE.

Hardcopy is a built-in function.
I can't reproduce the error...and cannot find the bug !!

Thanks in advance.
Eric

Subject: Bad data returned by HARDCOPY. Not calling IMWRITE

From: Igal

Date: 8 Nov, 2009 10:36:02

Message: 2 of 4

Van Lancker Eric <eric.vanlancker@iav.ch> wrote in message <43f99441$1_3@news.bluewin.ch>...
> Hi,
>
> In a batch processing using the command
> print(gcf,'-r126','-djpeg75',[Pn Fn]);
> I have sometimes (1 time upon 1000) the following error
>
> Error using ==> print
> Error using ==> graphics\private\render
> Bad data returned by HARDCOPY. Not calling IMWRITE.
>
> Hardcopy is a built-in function.
> I can't reproduce the error...and cannot find the bug !!
>
> Thanks in advance.
> Eric

Hi Eric,
I Got another case of similar problem. Did yo ufind an answer?
Regards.

Subject: Bad data returned by HARDCOPY. Not calling IMWRITE

From: Isabel Andreu-Burillo

Date: 18 Nov, 2009 00:50:20

Message: 3 of 4

"Igal " <igal@systematics.co.il> wrote in message <hd66ui$i6e$1@fred.mathworks.com>...
> Van Lancker Eric <eric.vanlancker@iav.ch> wrote in message <43f99441$1_3@news.bluewin.ch>...
> > Hi,
> >
> > In a batch processing using the command
> > print(gcf,'-r126','-djpeg75',[Pn Fn]);
> > I have sometimes (1 time upon 1000) the following error
> >
> > Error using ==> print
> > Error using ==> graphics\private\render
> > Bad data returned by HARDCOPY. Not calling IMWRITE.
> >
> > Hardcopy is a built-in function.
> > I can't reproduce the error...and cannot find the bug !!
> >
> > Thanks in advance.
> > Eric
>
> Hi Eric,
> I Got another case of similar problem. Did yo ufind an answer?
> Regards.

Hello,

I randomly get this message and have the same problems that you describe.
Do you know a solution to this, or a way around it?

Thank you,

Isabel

Subject: Bad data returned by HARDCOPY. Not calling IMWRITE

From: Sergio Varona Moya

Date: 21 Dec, 2011 18:28:08

Message: 4 of 4

"Isabel" wrote in message <hdvgcc$qfb$1@fred.mathworks.com>...
> "Igal " <igal@systematics.co.il> wrote in message <hd66ui$i6e$1@fred.mathworks.com>...
> > Van Lancker Eric <eric.vanlancker@iav.ch> wrote in message <43f99441$1_3@news.bluewin.ch>...
> > > Hi,
> > >
> > > In a batch processing using the command
> > > print(gcf,'-r126','-djpeg75',[Pn Fn]);
> > > I have sometimes (1 time upon 1000) the following error
> > >
> > > Error using ==> print
> > > Error using ==> graphics\private\render
> > > Bad data returned by HARDCOPY. Not calling IMWRITE.
> > >
> > > Hardcopy is a built-in function.
> > > I can't reproduce the error...and cannot find the bug !!
> > >
> > > Thanks in advance.
> > > Eric
> >
> > Hi Eric,
> > I Got another case of similar problem. Did yo ufind an answer?
> > Regards.
>
> Hello,
>
> I randomly get this message and have the same problems that you describe.
> Do you know a solution to this, or a way around it?
>
> Thank you,
>
> Isabel

Hi,

this error is likely due to memory shortage. I began getting it after introducing a line that loaded a large matrix into memory. Clearing the corresponding variable before printing the figures put an end to the problem.

Greetings

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com