Le 19/01/2026 à 11:51, José Matos a écrit :
On Thu, 2026-01-08 at 15:46 +0000, José Matos wrote:
On Thu, 2026-01-08 at 12:44 +0100, Pavel Sanda wrote:
Jose, we did put one more debug message to have a sense what pos & sl vars
are
doing.
Can you try to reproduce your crash one more time whether we will get more
sense
what is going on?

Pavel

I will keep testing and report here as I found them. :-)

I got another assert, I am running this inside gdb:

Paragraph.cpp (1957): pos: 11 size: 7

The backtrace is available in the attachment.

I copied and pasted a chunk of text, that involves several paragraphs, and
boom...

Best regards,



The relevant part (IMO) is below. The assertion triggers because pos is larger than the size of the paragraph.

#6 0x0000000000526fdc in lyx::Paragraph::getFontSettings (this=this@entry=0x77bb610, bparams=..., pos=pos@entry=11) at /home/jamatos/lyx/lyx-25x/src/Paragraph.cpp:1958 #7 0x00000000005271a4 in lyx::Paragraph::getFont (this=this@entry=0x77bb610, bparams=..., pos=pos@entry=11, outerfont=...) at /home/jamatos/lyx/lyx-25x/src/Paragraph.cpp:2040 #8 0x0000000000478dbd in lyx::Cursor::getFont (this=0x6a215a8) at /home/jamatos/lyx/lyx-25x/src/Cursor.cpp:2438 #9 0x00000000008dcefc in lyx::frontend::GuiInputMethod::toggleInputMethodAcceptance (this=0x6a22890) at /home/jamatos/lyx/lyx-25x/src/frontends/qt/GuiInputMethod.cpp:134

It seems that d->cur_ is not correct in GuiInputMethod::toggleInputMethodAcceptance().The large cur/paste is probably to blame.

What I do not really understand, is why the input method object hold a pointer to a cursor instead of a buffer view.

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

Reply via email to