A. Am Freitag, den 22.10.2010, 22:34 +0200 schrieb Vincent van
        Ravesteijn:
> > Incidentally, in testing all this, I had LyX crash on me twice. I
> > don't have time now to get a backtrace, but let me know if you want me
> > to post one later.
> >
> > BH
> >
> 
> I think the culprit might be in this code:
> 
> void GuiApplication::processKeySym(KeySymbol const & keysym, KeyModifier 
> state)
> {
>       LYXERR(Debug::KEY, "KeySym is " << keysym.getSymbolName());
> 
>       // Do nothing if we have nothing (JMarc)
>       if (!keysym.isOK()) {
>               LYXERR(Debug::KEY, "Empty kbd action (probably composing)");
>               current_view_->restartCursor();
>               return;
>       }
>       [..]
> }
> 
> So, if you don't have any window open and when you send a key
> combination to LyX which is not OK, LyX will crash on current_view_.
> 
> Vincent

I've also seen crashes in processKeySym:

- Open LyX
- Load a file
- Menu->Document->Outline
- create several new documents by simply pressinc Crtl-N for several
seconds
- then close all by pressing Ctrl-W
- crash

(I've not checked with your latest changes)

Peter


Reply via email to