emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDI+ take 3


From: Juanma Barranquero
Subject: Re: GDI+ take 3
Date: Fri, 17 Apr 2020 01:49:46 +0200


On Thu, Apr 16, 2020 at 12:04 PM Eli Zaretskii <address@hidden> wrote:

> In addition, multi-page TIFF files I tried (from
> https://www.nightprogrammer.org/development/multipage-tiff-example-download-test-image-file/)
> fail to load: GdipCreateBitmapFromFile returns status = InvalidParameter,
> for no clear reason.  Single-page TIFF images do load successfully.

These two images crash my emacs with w32-use-native-image-API = t. Single page tifs work as expected.

Thread 1 received signal SIGTRAP, Trace/breakpoint trap.
0x00007fff8e530aa3 in KERNELBASE!DebugBreak ()
   from C:\WINDOWS\System32\KernelBase.dll
(gdb) bt
#0  0x00007fff8e530aa3 in KERNELBASE!DebugBreak ()
   from C:\WINDOWS\System32\KernelBase.dll
#1  0x000000040026c72f in emacs_abort () at w32fns.c:10979
#2  0x00000004002b0d72 in decode_delay (propertyItem=0xd40000,
    propertyItem@entry=0x585b820, frame=13893632, frame@entry=0)
    at w32image.c:237
#3  0x00000004002b0dc9 in w32_frame_delay (pBitmap=pBitmap@entry=0x5d622f0,
    frame=frame@entry=0) at w32image.c:260
#4  0x00000004002b0ebc in w32_select_active_frame (pBitmap=0x5d622f0,
    frame=0, nframes=nframes@entry=0xbfcdbc, delay=delay@entry=0xbfcdc0)
    at w32image.c:301
#5  0x00000004002b160d in w32_load_image (f=f@entry=0x58439e0,
    img=img@entry=0xcdece0, spec_file=<optimized out>,
    spec_data=spec_data@entry=XIL(0)) at w32image.c:370
#6  0x00000004002c8fc7 in native_image_load (f=0x58439e0, img=0xcdece0)
    at lisp.h:1042
#7  0x00000004002cbd44 in lookup_image (f=f@entry=0x58439e0,
    spec=spec@entry=XIL(0x897aab3)) at image.c:2303
#8  0x00000004002cc505 in Fimage_metadata (spec=XIL(0x897aab3),
    frame=<optimized out>) at image.c:1122
#9  0x00000004001c7617 in funcall_subr (subr=0x4006ef8c0 <Simage_metadata>,
    numargs=numargs@entry=1, args=args@entry=0xbfd218) at eval.c:2869
#10 0x00000004001c5475 in Ffuncall (nargs=2, args=args@entry=0xbfd210)
    at lisp.h:2113
#11 0x0000000400215ca9 in exec_byte_code (bytestr=<optimized out>,
    vector=<optimized out>, maxdepth=<optimized out>,
    args_template=args_template@entry=make_fixnum(257), nargs=nargs@entry=1,
    args=<optimized out>, args@entry=0xbfd448) at bytecode.c:633
#12 0x00000004001c8fa6 in funcall_lambda (fun=XIL(0x430f775),
    nargs=nargs@entry=1, arg_vector=arg_vector@entry=0xbfd448) at lisp.h:1862
#13 0x00000004001c558f in Ffuncall (nargs=2, args=args@entry=0xbfd440)
    at eval.c:2796
#14 0x0000000400215ca9 in exec_byte_code (bytestr=<optimized out>,
    vector=<optimized out>, maxdepth=<optimized out>,
    args_template=args_template@entry=make_fixnum(0), nargs=nargs@entry=0,
    args=<optimized out>, args@entry=0xbfd6d0) at bytecode.c:633
#15 0x00000004001c8fa6 in funcall_lambda (fun=XIL(0x59a3805),
    nargs=nargs@entry=0, arg_vector=arg_vector@entry=0xbfd6d0) at lisp.h:1862
#16 0x00000004001c558f in Ffuncall (nargs=1, args=args@entry=0xbfd6c8)
    at eval.c:2796
#17 0x0000000400215ca9 in exec_byte_code (bytestr=<optimized out>,
    vector=<optimized out>, maxdepth=<optimized out>,
    args_template=args_template@entry=make_fixnum(0), nargs=nargs@entry=0,
    args=<optimized out>, args@entry=0xbfd930) at bytecode.c:633
#18 0x00000004001c8fa6 in funcall_lambda (fun=XIL(0x59a3665),
    nargs=nargs@entry=0, arg_vector=arg_vector@entry=0xbfd930) at lisp.h:1862
#19 0x00000004001c558f in Ffuncall (nargs=1, args=args@entry=0xbfd928)
    at eval.c:2796
#20 0x0000000400215ca9 in exec_byte_code (bytestr=<optimized out>,
    vector=<optimized out>, maxdepth=<optimized out>,
    args_template=args_template@entry=make_fixnum(513), nargs=nargs@entry=2,
    args=<optimized out>, args@entry=0xbfdb68) at bytecode.c:633
#21 0x00000004001c8fa6 in funcall_lambda (fun=XIL(0x40a0625),
    nargs=nargs@entry=2, arg_vector=arg_vector@entry=0xbfdb68) at lisp.h:1862
#22 0x00000004001c558f in Ffuncall (nargs=3, args=args@entry=0xbfdb60)
    at eval.c:2796
#23 0x0000000400215ca9 in exec_byte_code (bytestr=<optimized out>,
    vector=<optimized out>, maxdepth=<optimized out>,
    args_template=args_template@entry=make_fixnum(256), nargs=nargs@entry=0,
    args=<optimized out>, args@entry=0xbfdf48) at bytecode.c:633
#24 0x00000004001c8fa6 in funcall_lambda (fun=XIL(0x402cb4d),
    nargs=nargs@entry=0, arg_vector=arg_vector@entry=0xbfdf48) at lisp.h:1862
#25 0x00000004001c558f in Ffuncall (nargs=1, args=args@entry=0xbfdf40)
    at eval.c:2796
#26 0x0000000400215ca9 in exec_byte_code (bytestr=<optimized out>,
    vector=<optimized out>, maxdepth=<optimized out>,
    args_template=args_template@entry=make_fixnum(256), nargs=nargs@entry=1,
    args=<optimized out>, args@entry=0xbfe1a8) at bytecode.c:633
#27 0x00000004001c8fa6 in funcall_lambda (fun=XIL(0x40e5e95),
    nargs=nargs@entry=1, arg_vector=arg_vector@entry=0xbfe1a8) at lisp.h:1862
#28 0x00000004001c558f in Ffuncall (nargs=2, args=args@entry=0xbfe1a0)
    at eval.c:2796
#29 0x0000000400215ca9 in exec_byte_code (bytestr=<optimized out>,
    vector=<optimized out>, maxdepth=<optimized out>,
    args_template=args_template@entry=make_fixnum(1280), nargs=nargs@entry=2,
    args=<optimized out>, args@entry=0xbfe4f8) at bytecode.c:633
#30 0x00000004001c8fa6 in funcall_lambda (fun=XIL(0x40e5bad),
    nargs=nargs@entry=2, arg_vector=arg_vector@entry=0xbfe4f8) at lisp.h:1862
#31 0x00000004001c558f in Ffuncall (nargs=3, args=args@entry=0xbfe4f0)
    at eval.c:2796
#32 0x0000000400215ca9 in exec_byte_code (bytestr=<optimized out>,
    vector=<optimized out>, maxdepth=<optimized out>,
    args_template=args_template@entry=make_fixnum(1542), nargs=nargs@entry=6,
    args=<optimized out>, args@entry=0xbfe808) at bytecode.c:633
#33 0x00000004001c8fa6 in funcall_lambda (fun=XIL(0x418ab45),
    nargs=nargs@entry=6, arg_vector=arg_vector@entry=0xbfe808) at lisp.h:1862
#34 0x00000004001c558f in Ffuncall (nargs=7, args=args@entry=0xbfe800)
    at eval.c:2796
#35 0x0000000400215ca9 in exec_byte_code (bytestr=<optimized out>,
    vector=<optimized out>, maxdepth=<optimized out>,
    args_template=args_template@entry=make_fixnum(1025), nargs=nargs@entry=4,
    args=<optimized out>, args@entry=0xbfecb0) at bytecode.c:633
#36 0x00000004001c8fa6 in funcall_lambda (fun=XIL(0x3fffa7d),
    nargs=nargs@entry=4, arg_vector=arg_vector@entry=0xbfecb0) at lisp.h:1862
#37 0x00000004001c558f in Ffuncall (nargs=5, args=args@entry=0xbfeca8)
    at eval.c:2796
#38 0x0000000400215ca9 in exec_byte_code (bytestr=<optimized out>,
    vector=<optimized out>, maxdepth=<optimized out>,
    args_template=args_template@entry=make_fixnum(513), nargs=nargs@entry=2,
    args=<optimized out>, args@entry=0xbfeff0) at bytecode.c:633
#39 0x00000004001c8fa6 in funcall_lambda (fun=XIL(0x40d4e4d),
    nargs=nargs@entry=2, arg_vector=arg_vector@entry=0xbfeff0) at lisp.h:1862
#40 0x00000004001c558f in Ffuncall (nargs=nargs@entry=3,
    args=args@entry=0xbfefe8) at eval.c:2796
#41 0x00000004001bff13 in Ffuncall_interactively (nargs=3, args=0xbfefe8)
    at callint.c:254
#42 0x00000004001c75c2 in funcall_subr (
    subr=0x4006e7bc0 <Sfuncall_interactively>, numargs=numargs@entry=3,
    args=args@entry=0xbfefe8) at eval.c:2847
#43 0x00000004001c5475 in Ffuncall (nargs=nargs@entry=4,
    args=args@entry=0xbfefe0) at lisp.h:2113
#44 0x00000004001c5bc2 in Fapply (nargs=nargs@entry=3, args=0xbff120,
    args@entry=0xbff1c0) at eval.c:2424
#45 0x00000004001c09c6 in Fcall_interactively (function=XIL(0xbff2f0),
    record_flag=XIL(0x4001c5475), keys=XIL(0x40d4bc8)) at lisp.h:1042
#46 0x00000004001c7627 in funcall_subr (
    subr=0x4006e7b80 <Scall_interactively>, numargs=numargs@entry=3,
    args=args@entry=0xbff2f0) at eval.c:2872
#47 0x00000004001c5475 in Ffuncall (nargs=4, args=args@entry=0xbff2e8)
    at lisp.h:2113
#48 0x0000000400215ca9 in exec_byte_code (bytestr=<optimized out>,
    vector=<optimized out>, maxdepth=<optimized out>,
    args_template=args_template@entry=make_fixnum(1025), nargs=nargs@entry=1,
    args=<optimized out>, args@entry=0xbff568) at bytecode.c:633
#49 0x00000004001c8fa6 in funcall_lambda (fun=XIL(0x40cf625),
    nargs=nargs@entry=1, arg_vector=arg_vector@entry=0xbff568) at lisp.h:1862
#50 0x00000004001c558f in Ffuncall (nargs=nargs@entry=2,
    args=args@entry=0xbff560) at eval.c:2796
#51 0x00000004001c5742 in call1 (fn=<optimized out>,
    arg1=arg1@entry=XIL(0xfffffffc0390ba28)) at eval.c:2654
#52 0x00000004001246ec in command_loop_1 () at lisp.h:1042
#53 0x00000004001c4566 in internal_condition_case (
    bfun=bfun@entry=0x400123fbf <command_loop_1>,
    handlers=handlers@entry=XIL(0x90),
    hfun=hfun@entry=0x400118042 <cmd_error>) at eval.c:1355
#54 0x000000040010f3c0 in command_loop_2 (ignore=<optimized out>)
    at lisp.h:1042
#55 0x00000004001c449e in internal_catch (tag=<optimized out>,
    func=func@entry=0x40010f3a4 <command_loop_2>, arg=arg@entry=XIL(0))
    at eval.c:1116
#56 0x000000040011095b in command_loop () at lisp.h:1042
#57 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Lisp Backtrace:
"image-metadata" (0xbfd218)
"image-multi-frame-p" (0xbfd448)
"image-mode--setup-mode" (0xbfd6d0)
"image-mode" (0xbfd930)
"set-auto-mode-0" (0xbfdb68)
"set-auto-mode" (0xbfdf48)
"normal-mode" (0xbfe1a8)
"after-find-file" (0xbfe4f8)
"find-file-noselect-1" (0xbfe808)
"find-file-noselect" (0xbfecb0)
"find-file" (0xbfeff0)
"funcall-interactively" (0xbfefe8)
"call-interactively" (0xbff2f0)
"command-execute" (0xbff568)
(gdb) frame 3
#3  0x00000004002b0dc9 in w32_frame_delay (pBitmap=pBitmap@entry=0x5d622f0,
    frame=frame@entry=0) at w32image.c:260
260           delay = decode_delay (propertyItem, frame);
(gdb) p frame
$1 = 0
(gdb) p propertyItem[0]
$3 = {
  id = 2880154539,
  length = 2880154539,
  type = 43947,
  value = 0xfeeefeeefeeefeee
}
(gdb)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]