[R] Memory problem with jpeg() and wide jpegs

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Dec 20 15:23:23 CET 2004

michael watson (IAH-C) wrote:

> Hi
> I have been creating very, very long jpeg images for the last two weeks
> using jpeg().  All of a sudden, and I mean that, it's stopped working -
> I've not changed a thing!  The error message I get is:
>>jpeg("out.jpg",width=50000,height=480, quality=100)
> Error in devga(paste("jpeg:", quality, ":", filename, sep = ""), width,
> : 
>         unable to start device devga
> In addition: Warning message: 
> Unable to allocate bitmap 
> I have plenty of disk space in the place I want to create the jpeg, and
> if I reduce it from "width=50000" to "width=5000", then it works no
> problem, which suggests it is a memory problem.  If I close R and
> re-open R the problem does not go away.  And as I said above, I have
> been using this code for weeks with no problem, then I change nothing,
> and start getting this error message.

I don't believe it has worked. Such a huge one does not work for me even 
on a rather big machine.
If it had worked: On the same platform, OS, R version?
I think you have to contribute a patch in order to get such a huge jpeg.

Uwe Ligges

> I'm running R 2.0.1 on Windows XP.  I'm going to restart Windows and see
> if that helps, but if re-starting windows does help, is there an
> explanation as to where all the memory R used to be able to get at
> disappeared to in the current session?
> Cheers
> Mick
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

More information about the R-help mailing list