Assertion in master (IM related?)

Koji Yokota yokota6 at gmail.com
Mon May 5 14:59:08 UTC 2025


> 2025/05/05 0:46、Jürgen Spitzmüller <jspitzm_at_gmail_com_yphj9d45rxxt2a_bbbw1347 at icloud.com>のメール:
> 
> I get pretty reproducible assertions in master when
> 
> * opening a new document with AMS book
> * setting main language to Hebrew
> * insert a theorem
> * wait a bit/compile/do something
> 

I tested on Mac 15.4.1 with Qt 5.15.18 but I couldn’t reproduce. Looking at the backtrace, InputMethodEvent is somehow triggered with boundary=true.

> Backtrace:
> 
> #8  0x0000000000c01152 in
> lyx::frontend::GuiInputMethod::initializeCaretCoords
>    (this=this at entry=0x2e99e90, cur_row_idx=1, boundary=true) at
> GuiInputMethod.cpp:961
> #9  0x0000000000c046e7 in lyx::frontend::GuiInputMethod::processPreedit
> (this=0x2e99e90, ev=0x7fffffffcc70)
>    at GuiInputMethod.cpp:207

Here, initializeCaretCoords() is called with boundary=true, so one possibility is that the calculated coordinates go out of range as horizontal direction is swapped. But first of all, boundary should be false if cursor is at the initial position (even if it is on the right-most side).

I’m going to investigate it a little bit further.

Koji


More information about the lyx-devel mailing list