I wouldn't mind learning what is the cause for this, but I'm reworking
parts of this code to fit the ImageTransformer addition so things might
change.

In the partial traceback it looks like the crash is in the XPM call,
thus there are only two possible problems, either I'm using the XPM call
incorrectly, or your XPM library doesn't work properly (old one?).

My current code base is in a transition stage and so I cannot test it
myself right now.

* Angus Leeming <[EMAIL PROTECTED]> [010822 12:30]:
> Michael, can you run purify on this problem and see if you can reproduce it?
> 
> Angus
> 
> ----------------------------------------------------------
> If I try to input a .png file (for example) using the new graphics dialog, I 
> crash lyx. I have the appropriate converter defined (and this all was working 
> fine not so long ago). I have even tried setting the "do not display" option. 
> All to no avail; pressing the "Ok" button crashes lyx.
> 
> diffing the emergency save and the original file:
> +
> +\begin_inset Graphics FormatVersion 1
> +filename ../ASME/images/T_exp_setup.png
> + display none
> + widthResize default width 0
> + heightResize default height 0
> + rotateOrigin default
> + rotateAngle 0
> +
> +\end_inset
> +
> +
> +\layout Standard
> +
> 
> Thereafter, if I try to restart lyx and choose to load the emergency save, 
> lyx appears to hang, consuming all the cpu
> 
> This is current cvs lyx with xforms 0.89.1. I suppose, therefore, that it may 
> be an xforms bug but I draw your atttention to the fact that it USED to work 
> fine. 
> 
> The original crash produces the following backtrace (sorry, I compiled 
> without debugging)
> ...with gdb
> (gdb) where
> #0  0x20 in ?? ()
> #1  0x3ffbffca738 in xpmParseData () from /usr/local/lib/libforms.so.0.89
> Error accessing memory address 0x18: Invalid argument.
> 
> ...with dbx
> (dbx) where
>    0 (unknown)() [0x3ffbffca734]
>    1 (unknown)() [0x3ffbffcae10]
>    2 xpmParseDataAndCreate(0x14025ee50, 0x1402724c0, 0x1402724f0, 0x21, 
> 0x3ffbffcb020) [0x3ffbffcee98]
>    3 XpmReadFileToImage(0x11ffff048, 0x100000000, 0x12014efd8, 0x3fffffbbb70, 
> 0x3fffffbbb78) [0x3ffbffc7aec]
>    4 XpmReadFileToPixmap(0x140263f48, 0x1, 0x140263f48, 0x0, 0x0) 
> [0x3ffbffc6d40]
>    5 
> 
>runImageLoader__14ImageLoaderXPMXRCQ13std60basic_string__TcQ13std15char_traits__TcQ13std13allocator__Tv(0x0,
> 
> 0x11fffefb8, 0x0, 0x20, 0x100000000) [0x120384160]
>    6 
> 
>loadImage__11ImageLoaderXRCQ13std60basic_string__TcQ13std15char_traits__TcQ13std13allocator__Tv(0x100000000,
> 
> 0x14006a5e8, 0x120382c60, 0x140263f30, 0x12010d0f0) [0x120384668]
>    7 loadImage__17GraphicsCacheItemXv(0x31, 0x1400b0fd8, 0x0, 0x14004c2e0, 
> 0x140263f48) [0x120382c5c]
>    8 imageConverted__17GraphicsCacheItemXjb(0x0, 0x140278b60, 0x0, 
> 0x140263f30, 0x1) [0x120382674]
>    9 
> 
>convertImage__17GraphicsCacheItemXRCQ13std60basic_string__TcQ13std15char_traits__TcQ13std13allocator__Tv(0x140272360,
> 
> 0x140263f00, 0x1400b57e0, 0x3fffffba500, 0x140272300) [0x120382b10]
>   10 
> 
>__ct__17GraphicsCacheItemXRCQ13std60basic_string__TcQ13std15char_traits__TcQ13std13allocator__Tv(0x140263070,
> 
> 0x140263f30, 0x1400b57c0, 0x1400b57c0, 0x140263070) [0x12038244c]
> More (n if no)?
>   11 
> 
>addFile__13GraphicsCacheXRCQ13std60basic_string__TcQ13std15char_traits__TcQ13std13allocator__Tv(0x12035e0c0,
> 
> 0x140263000, 0x1400b0fd8, 0x1, 0x120343214) [0x1203835a4]
>   12 updateInset__C13InsetGraphicsXv(0x12034306c, 0x140263070, 0x0, 
> 0x14027b920, 0x1400b4ce0) [0x12035e124]
>   13 setParams__13InsetGraphicsXRC19InsetGraphicsParams(0x1400b4ce0, 
> 0x140109c20, 0x1203ceb98, 0x140263000, 0x140264520) [0x12035e34c]
>   14 applyParamsToInset__15ControlGraphicsXv(0x140264520, 0x140263070, 
> 0x12019c058, 0x140109c20, 0x140263000) [0x1203ceb94]
>   15 
> apply__51ControlInset__T13InsetGraphics19InsetGraphicsParamsXv(0x1400b57e0, 
> 0x1, 0x0, 0x0, 0x0) [0x12019c054]
>   16 OKButton__14ControlButtonsXv(0x0, 0x0, 0x0, 0x0, 0x120386ab8) 
> [0x1203ae1d8]
>   17 C_FormBaseOKCB(0x0, 0x0, 0x120386ab8, 0x12010e590, 0x3ffbff3e87c) 
> [0x120386ab4]
>   18 fl_object_qread(0x120386ab8, 0x12010e590, 0x3ffbff3e87c, 0x0, 
> 0x3ffbff538a8) [0x3ffbff3e878]
>   19 fl_check_forms(0x3ffbff3e87c, 0x0, 0x3ffbff538a8, 0x0, 0x12039f70c) 
> [0x3ffbff538a4]
>   20 runTime__10GUIRunTimeXv(0x140193be0, 0x0, 0x140193c40, 
> 0x3a01742200000000, 0x1401851a0) [0x12039f708]
>   21 runTime__6LyXGUIXv(0x140193c40, 0x3a01742200000000, 0x1401851a0, 
> 0x1400b0f00, 0x120283310) [0x12027f95c]
>   22 __ct__3LyXXPiPPc(0x140065820, 0x3ffc00802a0, 0x12026c11c, 0x140027148, 
> 0x11ffff6c8) [0x12028330c]
> More (n if no)?
>   23 main(0x0, 0x80084600, 0x1400e84a0, 0x11ffff748, 0x100000001) 
> [0x1202ad9ac]
> (dbx)

-- 
Baruch Even
http://baruch.ev-en.org/

Reply via email to