Re: Error: Missing Huffman code table entry
"dan1" <[email protected]> Tue, 11 Jul 2006 18:50:57 +0200
| Newsgroups | gmane.comp.video.graphicsmagick.bugs |
|---|---|
| Message-ID | <01c701c6a50a$2ec02c40$1d00a8c0@apocalypse> |
> On Tue, 11 Jul 2006, dan1 wrote: > >> Hello. >> >> I am seeing sometimes a bug in the conversion of a file, which generates >> a 'Missing Huffman code table entry' error message. If we open up the >> generated file, only a part of it will be there. > > For the previous bug report where GM was producing this message, the files > were produced by some other commercial software. The user isolated the > problem to an improper (mix of two versions) installation of that other > software. > >> Here is the conversion command that I enter: >> >> convert -quality 100 001-011.tif output_file.jpg > > I have run GraphicsMagick under valgrind (memory checker) with this > command and no errors were detected. I am unable to produce the defective > JPEG file. Regardless, a patch similar to the following might offer some > benefit to your ImageMagick: > > Index: jpeg.c > =================================================================== > RCS file: /GraphicsMagick/GraphicsMagick/coders/jpeg.c,v > retrieving revision 1.218.2.2 > diff -u -r1.218.2.2 jpeg.c > --- jpeg.c 10 Mar 2005 05:00:16 -0000 1.218.2.2 > +++ jpeg.c 11 Jul 2006 15:58:02 -0000 > @@ -1427,6 +1427,8 @@ > /* > Initialize JPEG parameters. > */ > + (void) memset(&jpeg_info,0,sizeof(jpeg_info)); > + (void) memset(&jpeg_error,0,sizeof(jpeg_error)); > jpeg_info.client_data=(void *) image; > jpeg_info.err=jpeg_std_error(&jpeg_error); > jpeg_info.err->emit_message=(void (*)(j_common_ptr,int)) > JPEGWarningHandler; > Hello, Bob. Thanks for trying, and for the code. It must be reproducable. Have you tried the same version and retrying for at least 20 times? It could be interesting if someone else could try to reproduce this error on his system, preferable with ImageMagick V6.0.7.1-14 butI think that this happens with all versions. Thanks, Daniel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642