> 2025/12/13 18:18、Koji Yokota <[email protected]>のメール:
>> 2025/12/12 21:15、Koji Yokota <[email protected]>のメール:
>> The crash seems to be caused by the sender of a signal that has disappeared 
>> when doActivate() tries to do
>>      QObjectPrivate::get(sender)->blockSig
>> (object.cpp:4139)
> 
> I see, lyx binary itself dies too early, but what can be done for this?

When quitting LyX with an opened file, buffer disappears unexpectedly while 
GuiApplication::dispatch(LFUN_LYX_QUIT) goes from
        UndoGroupHelper ugh(buffer);            (GuiApplication.cpp:1586)
to
        dispatch(cmd, dr);                              
(GuiApplication.cpp:1587).
Therefore, when this function tries to return d->dispatch_result_, it doesn’t 
exist.

The constructor of UndoGroupHelper calls UndoGroupHelper::resetBuffer(Buffer * 
buf). When
        d->buffers_.insert(buf);
is executed, d->buffers_ does not exist (I think it was alive in the “if” 
sentence one line before). After this line, this UndoGroupHelper class itself 
and buf disappears.

In a normal quit case, d->buffers_.insert() normally finishes.

I wonder what causes this problem. Is there any other processes that touches 
the buffer? Or simply buffer crashes?

Koji
-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to