spector at stat.berkeley.edu
2006-Sep-06 16:02 UTC
[Rd] JPEG struct mismatch on Intel Macs (PR#9209)
Full_Name: Phil Spector Version: 2.3.1 OS: Mac OS X (Tiger) Submission from: (NULL) (128.32.135.22) Trying to close a jpeg() device on an Intel Mac causes the following:> jpeg('out.jpg') > plot(1:10) > dev.off()JPEG parameter struct mismatch: library thinks size is 372, caller expects 376 null device 1>An empty jpg file is produced in 'out.jpg' - - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley
spector at stat.berkeley.edu writes:> Full_Name: Phil Spector > Version: 2.3.1 > OS: Mac OS X (Tiger) > Submission from: (NULL) (128.32.135.22) > > > Trying to close a jpeg() device on an Intel Mac causes the following: > > > jpeg('out.jpg') > > plot(1:10) > > dev.off() > JPEG parameter struct mismatch: library thinks size is 372, caller expects 376 > null device > 1 > > > > > An empty jpg file is produced in 'out.jpg'AFAICT, this wouldn't be a bug in R. Your version of R appears to have been built with one version of the jpeg libraries and you have another version installed. Unless we have a compiler issue and one part is padding out to a multiple of 8 bytes. -- O__ ---- Peter Dalgaard ?ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
simon.urbanek at r-project.org
2006-Sep-06 17:16 UTC
[Rd] JPEG struct mismatch on Intel Macs (PR#9209)
On Sep 6, 2006, at 12:34 PM, Peter Dalgaard wrote:> spector at stat.berkeley.edu writes: > >> Full_Name: Phil Spector >> Version: 2.3.1 >> OS: Mac OS X (Tiger) >> Submission from: (NULL) (128.32.135.22) >> >> >> Trying to close a jpeg() device on an Intel Mac causes the following: >> >>> jpeg('out.jpg') >>> plot(1:10) >>> dev.off() >> JPEG parameter struct mismatch: library thinks size is 372, caller >> expects 376 >> null device >> 1 >>> >> >> >> An empty jpg file is produced in 'out.jpg' > > AFAICT, this wouldn't be a bug in R. Your version of R appears to > have been built with one version of the jpeg libraries and you have > another version installed. Unless we have a compiler issue and one > part is padding out to a multiple of 8 bytes. >Although it's not a bug in R, it is a problem with the Mac binary which uses static libjpeg. I have re-compiled libjpeg for Intel Mac so tonight's nightly build should be ok. Thanks, Simon