SL Baur <steve(a)xemacs.org> writes:
I get a ton of GIF errors referencing the URL:
http://www.sinica.edu.tw/ftms-bin/ftmsw3
(7) (error/warning) Error in process sentinel: (image-conversion-error First image in GIF
file is not full size [gif :data GIF87a...
Hand loading the only GIF I see on that page does not yield the same
warnings.
there are two GIFs -- the problem is the background one:
http://www.sinica.edu.tw/~tdbproj/handy/upaper.gif
glyphs-eimage.c contains:
/* Note: We just use the first image in the file and ignore the rest.
We check here that that image covers the full "screen" size.
I don't know whether that's always the case.
-dkindred(a)cs.cmu.edu */
if (unwind.giffile->SavedImages[0].ImageDesc.Height != height
|| unwind.giffile->SavedImages[0].ImageDesc.Width != width
|| unwind.giffile->SavedImages[0].ImageDesc.Left != 0
|| unwind.giffile->SavedImages[0].ImageDesc.Top != 0)
signal_image_error ("First image in GIF file is not full size",
instantiator);
for this image we get:
(gdb) p unwind.giffile->SavedImages[0].ImageDesc
$6 = {Left = 0, Top = 0, Width = 96, Height = 96, Interlace = 0, ColorMap = 0x0}
(gdb) p *unwind.giffile
$7 = {SWidth = 640, SHeight = 480, SColorResolution = 8,
SBackGroundColor = 0, SColorMap = 0x8774160, ImageCount = 1,
Image = {Left = 0, Top = 0, Width = 96, Height = 96, Interlace =
0, ColorMap = 0x0}, SavedImages = 0x87c52d8, Private = 0x87bee98,
GifIO = 0x8793210}
maybe we should just ignore the 'screen size' stuff and take the size
from the first image? That seems to be what xv and netscape do, at
least they have no problems and show a 96x96 image.
BTW do we really want to dump all the binary junk in the warning
buffer?
In my first try I also got a funny core dump in the process, but I
couldn't reproduce it later on and haven't checked more
closely. Apparently the modeline contained illegal (in the MULE
sense) junk and balloon-help-motion-hook (the function in frame#20
below) tried to map-extents over it...
Running a MULE build is certainly more interesting than a normal
version. :-)
Gunnar
Fatal error: assertion failed, file /local/srcdisk/gunnar/src/XEmacs/xemacs/src/insdel.c,
line 364, VALID_CHARPTR_P (ptr)
Fatal error (6).
Lisp backtrace follows:
map-extents(#<compiled-function (e ignored) "...(2)" [e] 1> Fatal error:
assertion failed, file /local/srcdisk/gunnar/src/XEmacs/xemacs/src/insdel.c, line 364,
VALID_CHARPTR_P (ptr)
[2]+ IOT trap/Abort (core dumped) /home/evermann/src/XEmacs/mule/src/xemacs
#0 0x403c6405 in __kill ()
#1 0x40393055 in raise (sig=136599168)
#2 0x8129964 in bytecount_to_charcount (ptr=0x8ecfe4e "£\b\n ", len=37)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/insdel.c:364
#3 0x80c80c0 in string_char_length (s=0x8d44684) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/lisp.h:1121
#4 0x814c22d in print_string (obj=148129412, printcharfun=138121120, escapeflag=1)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/print.c:953
#5 0x814c9ab in print_internal (obj=148129412, printcharfun=138121120, escapeflag=1)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/print.c:1227
#6 0x814b231 in Fprin1 (object=148129412, stream=138121120)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/print.c:508
#7 0x8096a98 in Fbacktrace (stream=138121120, detailed=138008936)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/eval.c:4868
#8 0x808a8cf in fatal_error_signal (sig=6) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/emacs.c:252
#9 0xbfffed24 in ?? ()
#10 0x40393055 in raise (sig=136599168)
#11 0x8129964 in bytecount_to_charcount (ptr=0x8ecfe4e "£\b\n ", len=37)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/insdel.c:364
#12 0x80c80c0 in string_char_length (s=0x8d44684) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/lisp.h:1121
#13 0x812b7c9 in get_string_range_char (string=148129412, from=1, to=1,
from_out=0xbfffee64, to_out=0xbfffee60,
flags=3) at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/insdel.c:1352
#14 0x812b903 in get_string_range_byte (string=148129412, from=1, to=1,
from_out=0xbfffeeec, to_out=0xbfffeee8,
flags=3) at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/insdel.c:1391
#15 0x812bae5 in get_buffer_or_string_range_byte (object=148129412, from=1, to=1,
from_out=0xbfffeeec,
to_out=0xbfffeee8, flags=3) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/insdel.c:1438
#16 0x80e8d2c in Fmap_extents (function=142000648, object=148129412, from=1, to=1,
maparg=138008908,
flags=138008908, property=140724204, value=138008908)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/extents.c:4049
#17 0x809379a in Ffuncall (nargs=8, args=0xbfffefa4) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/eval.c:3189
#18 0x8063395 in execute_optimized_program (
program=0x87eeed4 "\b¬\003Á\207\n«\006Ã\n!ª\002p\034\n«\006Å\n!ª\003Æ
\036\a\n«\006È\n!ª\002`\036\t\n\004Ê\n!\211\036\013\017ÌÍÎÏ\f\"\016\013\211Ð\211Ñ&\a\036\022\n\004Ó\n!\211\036\024\nÕ\016\024Ñ\"\003\016\024\036\024\016\t\aÖ\016\t\fÑ#\036\027\n\004Ø\n!\211\036\031\tÚ\016\031!\003\016\031\036\031\016\022®\013\016\024®\a\016\027®\003\016\031\036\e\016\034\036\035\016\e¬(\016\036\205>\001\016\a\016\036a?\2055\001Ð\026\037\016\035«\tà\016\035!\210Ð\026\034á
\205!\001â \202\034\001ã\016\a!\036$å\016$·A\036%æ\016$·"..., stack_depth=9,
constants_data=0x8666208) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/bytecode.c:754
#19 0x8062e9a in funcall_compiled_function (fun=142000676, nargs=1, args=0xbffff1bc)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/bytecode.c:527
#20 0x809388b in Ffuncall (nargs=2, args=0xbffff1b8) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/eval.c:3221
#21 0x8094668 in run_hook_with_args_in_buffer (buf=0x8de2aa8, nargs=2, args=0xbffff1b8,
cond=RUN_HOOKS_TO_COMPLETION) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/eval.c:3671
#22 0x80946be in run_hook_with_args (nargs=2, args=0xbffff1b8,
cond=RUN_HOOKS_TO_COMPLETION)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/eval.c:3684
#23 0x8094356 in Frun_hook_with_args (nargs=2, args=0xbffff1b8)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/eval.c:3560
#24 0x8093836 in Ffuncall (nargs=3, args=0xbffff1b4) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/eval.c:3206
#25 0x8063395 in execute_optimized_program (program=0x87eeeb4
"ÀÁ\n\"\207\200\006\tñ\001", stack_depth=3,
constants_data=0x869fb50) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/bytecode.c:754
#26 0x8062e9a in funcall_compiled_function (fun=142000536, nargs=1, args=0xbffff2dc)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/bytecode.c:527
#27 0x809388b in Ffuncall (nargs=2, args=0xbffff2d8) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/eval.c:3221
#28 0x809498e in call1 (fn=140924928, arg0=148491944) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/eval.c:3834
#29 0x80dd6bf in execute_internal_event (event=148491944)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/event-stream.c:2952
#30 0x80e0420 in Fdispatch_event (event=148491944)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/event-stream.c:4689
#31 0x8070bbb in Fcommand_loop_1 () at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/cmdloop.c:578
#32 0x8070989 in command_loop_1 (dummy=138008908) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/cmdloop.c:493
#33 0x809021a in condition_case_1 (handlers=138009020, bfun=0x8070968
<command_loop_1>, barg=138008908,
hfun=0x807023c <cmd_error>, harg=138008908) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/eval.c:1640
#34 0x8070341 in command_loop_3 () at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/cmdloop.c:255
#35 0x8070364 in command_loop_2 (dummy=138008908) at
/local/srcdisk/gunnar/src/XEmacs/xemacs/src/cmdloop.c:266
#36 0x808fe49 in internal_catch (tag=138083952, func=0x807035c <command_loop_2>,
arg=138008908, threw=0x0)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/eval.c:1315
#37 0x8070578 in initial_command_loop (load_me=138008908)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/cmdloop.c:304
#38 0x808bb52 in xemacs_21_2_b12_i586_pc_linux (argc=1, argv=0xbffff530, envp=0xbffff538,
restart=0)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/emacs.c:1736
#39 0x808c6d7 in main (argc=1, argv=0xbffff530, envp=0xbffff538)
at /local/srcdisk/gunnar/src/XEmacs/xemacs/src/emacs.c:2165
#40 0x80507de in _start ()
--
Gunnar Evermann
Speech, Vision & Robotics Group
Engineering Department
Cambridge University