John Levon wrote:

>On Wed, Nov 28, 2001 at 11:38:18PM +1100, Ben Stanley wrote:
>
>>Now I open my thesis, and while the previews are rendering, I open the 
>>preferences dialog, change a setting (the temp dir), click save, and get
>>
>><blah blah>
>>MainLoopUser Event(33,w=0x7000096 s=14834) ClientMessage
>>MainLoopUser Event(7,w=0x700017c s=15098) EnterNotify Mode Normal
>>In EventCallback [events.c 34] Unknown window=0x700017c
>>
>
>now I /can't/ reproduce it. How annoying.
>
>Can you add :
>
>    410                 lyxerr << "Canvas ID " << fl_get_canvas_id(figinset_canvas) 
><< endl;
>    411                 fl_set_preemptive_callback(fl_get_canvas_id(figinset_canvas), 
>GhostscriptMsg, 0);
>
>the lyxerr line into insets/figinset.C ?
>
Yes, I added it (and double checked)

>
>
>Check that the canvas id and the ClientMessage window are the same.
>
We must be barking up the wrong tree - I didn't see it.

I started lyx with

lyx -shared -sync

then loaded my thesis and while figures were rendering I toggled the tmp 
dir option in the prefs dlg, and clicked Save.

kaboom.

(see also extra test after output)
Here's the output

MainLoop Event(6,w=0xb400166 s=15345) MotionNotify Mode Hint
MainLoop Event(4,w=0xb400166 s=15468) ButtonPress
MainLoop Event(5,w=0xb400166 s=15495) ButtonRelease button: 1
In MapColor [flcolor.c 739] Changing reserved color
In MapColor [flcolor.c 739] Changing reserved color
In fl_mapcolor [flcolor.c 780] mapping 0 (0,0,0)
In MapColor [flcolor.c 739] Changing reserved color
In fl_mapcolor [flcolor.c 780] mapping 258 (0,0,0)
In fl_mapcolor [flcolor.c 780] mapping 258 (0,0,0)
In Canvas [canvas.c 397] FL_DRAW
In Canvas [canvas.c 397] FL_DRAW
In drw_text_beside [xtext.c 472] align request is inside
In Canvas [canvas.c 397] FL_DRAW
Eaten Event(7,w=0xb40017c s=17301) EnterNotify Mode Normal
Eaten Event(8,w=0xb40017c s=18069) LeaveNotify Mode Normal
Eaten Event(18,w=0xb40017c s=19945) UnmapNotify
Eaten Event(17,w=0xb40017c s=19947) DestroyNotify
CanvasIntecept Event(17,w=0xb40017d s=19947) DestroyNotify
Eaten Event(6,w=0xb400166 s=17287) MotionNotify Mode Hint
Eaten Event(8,w=0xb400166 s=17301) LeaveNotify Mode Normal
Eaten Event(8,w=0xb400166 s=18069) LeaveNotify Mode Normal
Eaten Event(18,w=0xb400166 s=19980) UnmapNotify
Eaten Event(17,w=0xb400166 s=19982) DestroyNotify
CanvasIntecept Event(17,w=0xb400167 s=19982) DestroyNotify
MainLoopUser Event(33,w=0xb400096 s=15596) ClientMessage
MainLoopUser Event(33,w=0xb400096 s=15769) ClientMessage
MainLoopUser Event(7,w=0xb40017e s=17301) EnterNotify Mode Normal
In EventCallback [events.c 34] Unknown window=0xb40017e
Ignored Event(7,w=0xb40017e s=17301) EnterNotify Mode Normal
PutbackEvent Event(7,w=0xb40017e s=17301) EnterNotify Mode Normal
LyX: This shouldn't happen...
lyx: Attempting to save document 
/home/ben/Documents/PhD_Thesis/Document/main.lyx as...
  /home/ben/Documents/PhD_Thesis/Document/main.lyx.emergency
  Save seems successful. Phew.
BadWindow (invalid Window parameter)
Aborted (core dumped)
ben [15:54:23] 
/share/install/linux/extras/lyx/lyx-BRANCH_1_1_6/lyx-devel-JL/src $ X 
Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Resource id in failed request:  0xb400096
  Serial number of failed request:  42
ben [15:54:23] 
/share/install/linux/extras/lyx/lyx-BRANCH_1_1_6/lyx-devel-JL/src $




And another stack trace

(gdb) where
#0  0x4104d651 in __kill () from /lib/libc.so.6
#1  0x4104d3cd in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2  0x4104ea38 in abort () at ../sysdeps/i386/bits/string.h:230
#3  0x082548b7 in lyx::abort () at abort.C:9
#4  0x080ed3a5 in LyX_XErrHandler (display=0x833bb60, xeev=0xbffff2e8)
    at lyx_gui.C:95
#5  0x400fbd87 in _XError () from /usr/X11R6/lib/libX11.so.6
#6  0x400fa3f3 in _XReply () from /usr/X11R6/lib/libX11.so.6
#7  0x400f0a3e in XQueryPointer () from /usr/X11R6/lib/libX11.so.6
#8  0x40068156 in fl_get_win_mouse () from /usr/X11R6/lib/libforms.so.0.88
#9  0x40032227 in fl_compress_motion () from /usr/X11R6/lib/libforms.so.0.88
#10 0x40032273 in fl_compress_event () from /usr/X11R6/lib/libforms.so.0.88
#11 0x4004037e in get_next_event () from /usr/X11R6/lib/libforms.so.0.88
#12 0x4003f1fc in do_interaction_step () from 
/usr/X11R6/lib/libforms.so.0.88
#13 0x4003fb49 in fl_treat_interaction_events ()
   from /usr/X11R6/lib/libforms.so.0.88
#14 0x4003fb84 in fl_check_forms () from /usr/X11R6/lib/libforms.so.0.88
#15 0x081f68c4 in GUIRunTime::runTime () at GUIRunTime.C:79
#16 0x080eee68 in LyXGUI::runTime (this=0x8334f58) at lyx_gui.C:419
#17 0x080f0ff3 in LyX::LyX (this=0xbffff690, argc=0xbffff6d0, 
argv=0xbffff734)
    at ../src/lyx_main.C:168
#18 0x08138529 in main (argc=1, argv=0xbffff734) at ../src/main.C:40
#19 0x4103b0ee in __libc_start_main (main=0x8138390 <main>, argc=3,
    ubp_av=0xbffff734, init=0x804f2a0 <_init>, fini=0x82c3738 <_fini>,
    rtld_fini=0x4100cf28 <_dl_fini>, stack_end=0xbffff72c)
    at ../sysdeps/generic/libc-start.c:129
(gdb)


I also tried the same procedure as above except I waited until after the 
previews were all rendered before opening the preferences dialog. No crash.

Ben.


Reply via email to