On Tue, Jan 29, 2002 at 10:42:00AM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Michael" == Michael Schmitt <[EMAIL PROTECTED]> writes: > > Michael> By the way: I have noticed that a very efficient way to crash > Michael> LyX is to create a new buffer, enter a few words, select > Michael> (i.e. highlight) some of the words, and close the buffer. LyX > Michael> does not crash all the time but quite often. I hope this not > Michael> yet another hallucination. > > Could it be related to the new XSelection stuff?
Yes it is. Though I'm not sure it's the /new/ code's fault as such : #6 LyXText::Selection::set (this=0xa8) at lyxtext.h:255 #7 0x80eb1fa in LyXText::selectionAsString (this=0x0, buffer=0x0, label=false) at text2.C:1025 #8 0x8058dbe in BufferView::Pimpl::selectionRequested (this=0x83a9810) at BufferView_pimpl.C:743 #9 0x81fee82 in SigC::ObjectSlot0_<void, BufferView::Pimpl>::callback (d=0x83aaf94) at ../sigc++/object_slot.h:56 #10 0x81fed69 in SigC::Callback0<void>::call (this=0x83aaf94) at ../../../sigc++/slot.h:260 #11 0x81fe015 in SigC::Signal0<void, SigC::Marshal<void> >::emit (this=0x83a986c) at ../../../sigc++/basic_signal.h:194 #12 0x80785cb in WorkArea::event_cb (this=0x83a983c, xev=0x83339c0) at WorkArea.C:582 At a guess, what is happening here is that somewhere X is requesting the primary selection contents as the window is being destroyed. At least I assume that's where selectionRequested() is coming from. JMarc, what's the best fix do you think ? add if (available()) to selectionRequested() ? thanks john p.s. I'm amazed I didn't come across this the whole time I was running with this patch ;) -- "In no sense is [in]stability a reason to move to a new version. It's never a reason." - Bill Gates