Thank you, Marcus. I didn’t reproduce for tst1.lyx but I did for tst5.lyx. The 
backtrace seems to be different from your previous report, so they can be 
pointing to different causes.

Since QtCreator crashes with LyX, I couldn't do a precise debug but LyX’s 
standard output with option ‘-dbg any’ is as follows:

> frontends/qt/GuiApplication.cpp (2451): action first set to [paste]
> frontends/qt/GuiApplication.cpp (2460): action now set to [paste]
> frontends/qt/GuiApplication.cpp (2472):  Key [action=paste][Control-Y]
> Undo.cpp (589): +++++++ Creating new group 25 for buffer 0x9fa27c570
> frontends/qt/GuiApplication.cpp (1759): cmd:  action: 13 [paste]  arg: '' x: 
> 0 y: 0
> BufferView.cpp (1471): BufferView::dispatch: cmd:  action: 13 [paste]  arg: 
> '' x: 0 y: 0
> Buffer.cpp (2968): Buffer::dispatch: cmd:  action: 13 [paste]  arg: '' x: 0 
> y: 0
> Cursor.cpp (786): Cursor::dispatch: cmd:  action: 13 [paste]  arg: '' x: 0 y: > 0
> 
>  cursor:                                | anchor:
>  inset: 0x9f9f8ef80 idx: 0 par: 3 pos: 12 | inset: 0x9f9f8ef80 idx: 0 par: 3 
> pos: 12
>  inset: 0x9fa1b66c0 idx: 0 par: 0 pos: 0 | inset: 0x9fa1b66c0 idx: 0 par: 0 
> pos: 0
>  inset: 0x9f4dc84b0 idx: 0 par: 0 pos: 0 | inset: 0x9f4dc84b0 idx: 0 par: 0 
> pos: 1
>  selection: 1 boundary: 0
> 
> Cursor.cpp (817): Cursor::dispatch: cmd:  action: 13 [paste]  arg: '' x: 0 y: > 0
> 
>  cursor:                                | anchor:
>  inset: 0x9f9f8ef80 idx: 0 par: 3 pos: 12 | inset: 0x9f9f8ef80 idx: 0 par: 3 
> pos: 12
>  inset: 0x9fa1b66c0 idx: 0 par: 0 pos: 0 | inset: 0x9fa1b66c0 idx: 0 par: 0 
> pos: 0
>  inset: 0x9f4dc84b0 idx: 0 par: 0 pos: 0 | inset: 0x9f4dc84b0 idx: 0 par: 0 
> pos: 1
>  selection: 1 boundary: 0
> 
> Unassigned buffer_ member in Inset::dispatch()
> LyX Code: 86 name: mathscript
> Undo.cpp (354): Create undo element of group 25
> frontends/qt/GuiWorkArea.cpp (2086): updateTabTexts() iteration start
> frontends/qt/GuiWorkArea.cpp (2103): it = /Users/koji/Downloads/tst5.lyx => 
> tst5
> frontends/qt/GuiWorkArea.cpp (2110): segment ended
> Undo.cpp (330): Undo coalescing: skip entry
> CutAndPaste.cpp (1204): saveSelection: '\nec{\HM}'
> frontends/qt/GuiClipboard.cpp (66): Getting Clipboard
> insets/Inset.cpp (220): Inset: 0x9f4dc84b0 LyX Code: 86 name: mathscript
> support/lassert.cpp (57): ASSERTION false VIOLATED IN 
> /Users/koji/repos/lyx/src/insets/Inset.cpp:222
> (  1) 1   LyX                                 0x0000000100b12234 
> _ZN3lyx21doAssertWithCallstackEb : 1   LyX                                 
> 0x0000000100b12234 _ZN3lyx21doAssertWithCallstackEb + 40
> (  2) 2   LyX                                 0x0000000100b127d4 
> _ZN3lyx8doAssertEPKcS1_l : 2   LyX                                 
> 0x0000000100b127d4 _ZN3lyx8doAssertEPKcS1_l + 176
> (  3) 3   LyX                                 0x000000010055f264 
> _ZN3lyx5Inset6bufferEv : 3   LyX                                 
> 0x000000010055f264 _ZN3lyx5Inset6bufferEv + 540
> (  4) 4   LyX                                 0x00000001004bf874 
> _ZN3lyx13InsetMathNest10doDispatchERNS_6CursorERNS_11FuncRequestE : 4   LyX   
>                               0x00000001004bf874 
> _ZN3lyx13InsetMathNest10doDispatchERNS_6CursorERNS_11FuncRequestE + 608
> (  5) 5   LyX                                 0x0000000100564320 
> _ZN3lyx5Inset8dispatchERNS_6CursorERNS_11FuncRequestE : 5   LyX               
>                   0x0000000100564320 
> _ZN3lyx5Inset8dispatchERNS_6CursorERNS_11FuncRequestE + 388
> (  6) 6   LyX                                 0x00000001001973f8 
> _ZN3lyx6Cursor8dispatchERKNS_11FuncRequestE : 6   LyX                         
>         0x00000001001973f8 _ZN3lyx6Cursor8dispatchERKNS_11FuncRequestE + 1716
> (  7) 7   LyX                                 0x00000001009fda8c 
> _ZN3lyx8frontend7GuiView20dispatchToBufferViewERKNS_11FuncRequestERNS_14DispatchResultE
>  : 7   LyX                                 0x00000001009fda8c 
> _ZN3lyx8frontend7GuiView20dispatchToBufferViewERKNS_11FuncRequestERNS_14DispatchResultE
>  + 572
> (  8) 8   LyX                                 0x0000000100a03ae4 
> _ZN3lyx8frontend7GuiView8dispatchERKNS_11FuncRequestERNS_14DispatchResultE : 
> 8   LyX                                 0x0000000100a03ae4 
> _ZN3lyx8frontend7GuiView8dispatchERKNS_11FuncRequestERNS_14DispatchResultE + 
> 24268
> (  9) 9   LyX                                 0x000000010073e0d8 
> _ZN3lyx8frontend14GuiApplication8dispatchERKNS_11FuncRequestERNS_14DispatchResultE
>  : 9   LyX                                 0x000000010073e0d8 
> _ZN3lyx8frontend14GuiApplication8dispatchERKNS_11FuncRequestERNS_14DispatchResultE
>  + 15268
> ( 10) 10  LyX                                 0x0000000100738cc0 
> _ZN3lyx8frontend14GuiApplication8dispatchERKNS_11FuncRequestE : 10  LyX       
>                           0x0000000100738cc0 
> _ZN3lyx8frontend14GuiApplication8dispatchERKNS_11FuncRequestE + 536
> ( 11) 11  LyX                                 0x0000000100284f24 
> _ZN3lyx8dispatchERKNS_11FuncRequestE : 11  LyX                                
>  0x0000000100284f24 _ZN3lyx8dispatchERKNS_11FuncRequestE + 76
> ( 12) 12  LyX                                 0x000000010073e890 
> _ZN3lyx8frontend14GuiApplication18processFuncRequestERKNS_11FuncRequestE : 12 
>  LyX                                 0x000000010073e890 
> _ZN3lyx8frontend14GuiApplication18processFuncRequestERKNS_11FuncRequestE + 28
> ( 13) 13  LyX                                 0x00000001007406dc 
> _ZN3lyx8frontend14GuiApplication13processKeySymERKNS_9KeySymbolEj : 13  LyX   
>                               0x00000001007406dc 
> _ZN3lyx8frontend14GuiApplication13processKeySymERKNS_9KeySymbolEj + 4132
> ( 14) 14  LyX                                 0x0000000100a25b88 
> _ZN3lyx8frontend11GuiWorkArea13processKeySymERKNS_9KeySymbolEj : 14  LyX      
>                            0x0000000100a25b88 
> _ZN3lyx8frontend11GuiWorkArea13processKeySymERKNS_9KeySymbolEj + 156
> ( 15) 15  LyX                                 0x0000000100a2f9e0 
> _ZN3lyx8frontend11GuiWorkArea18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv
>  : 15  LyX                                 0x0000000100a2f9e0 
> _ZN3lyx8frontend11GuiWorkArea18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv
>  + 364
> ( 16) 16  QtCore                              0x0000000103e98ba0 
> _ZN11QMetaObject8activateEP7QObjectPKS_iPPv : 16  QtCore                      
>         0x0000000103e98ba0 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3992
> ( 17) 17  LyX                                 0x0000000100a30844 
> _ZN11QMetaObject8activateIvJN3lyx9KeySymbolEjEEEvP7QObjectPKS_iPT_DpRKT0_ : 
> 17  LyX                                 0x0000000100a30844 
> _ZN11QMetaObject8activateIvJN3lyx9KeySymbolEjEEEvP7QObjectPKS_iPT_DpRKT0_ + 96
> ( 18) 18  LyX                                 0x0000000100a285b4 
> _ZN3lyx8frontend15CompressorProxy6signalERKNS_9KeySymbolEj : 18  LyX          
>                        0x0000000100a285b4 
> _ZN3lyx8frontend15CompressorProxy6signalERKNS_9KeySymbolEj + 56
> ( 19) 19  LyX                                 0x0000000100a284ec 
> _ZN3lyx8frontend15CompressorProxy4slotERKNS_9KeySymbolEjb : 19  LyX           
>                       0x0000000100a284ec 
> _ZN3lyx8frontend15CompressorProxy4slotERKNS_9KeySymbolEjb + 72
> ( 20) 20  LyX                                 0x0000000100a304d8 
> _ZN3lyx8frontend15CompressorProxy18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv
>  : 20  LyX                                 0x0000000100a304d8 
> _ZN3lyx8frontend15CompressorProxy18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv
>  + 168
> ( 21) 21  QtCore                              0x0000000103e90b50 
> _ZN7QObject5eventEP6QEvent : 21  QtCore                              
> 0x0000000103e90b50 _ZN7QObject5eventEP6QEvent + 672
> ( 22) 22  QtWidgets                           0x0000000102c49570 
> _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent : 22  QtWidgets     
>                       0x0000000102c49570 
> _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 332
> ( 23) 23  QtWidgets                           0x0000000102c4a548 
> _ZN12QApplication6notifyEP7QObjectP6QEvent : 23  QtWidgets                    
>        0x0000000102c4a548 _ZN12QApplication6notifyEP7QObjectP6QEvent + 516
> ( 24) 24  LyX                                 0x0000000100744b40 
> _ZN3lyx8frontend14GuiApplication6notifyEP7QObjectP6QEvent : 24  LyX           
>                       0x0000000100744b40 
> _ZN3lyx8frontend14GuiApplication6notifyEP7QObjectP6QEvent + 48
> ( 25) 25  QtCore                              0x0000000103e4787c 
> _ZN16QCoreApplication9sendEventEP7QObjectP6QEvent : 25  QtCore                
>               0x0000000103e4787c 
> _ZN16QCoreApplication9sendEventEP7QObjectP6QEvent + 172
> ( 26) 26  QtCore                              0x0000000103e480fc 
> _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData : 26  
> QtCore                              0x0000000103e480fc 
> _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData + 524
> ( 27) 27  libqcocoa.dylib                     0x0000000103c3c2f8 
> qt_plugin_instance : 27  libqcocoa.dylib                     
> 0x0000000103c3c2f8 qt_plugin_instance + 61656
> ( 28) 28  libqcocoa.dylib                     0x0000000103c3d598 
> qt_plugin_instance : 28  libqcocoa.dylib                     
> 0x0000000103c3d598 qt_plugin_instance + 66424
> ( 29) 29  CoreFoundation                      0x0000000181407ad8 
> __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ : 29  
> CoreFoundation                      0x0000000181407ad8 
> __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
> ( 30) 30  CoreFoundation                      0x0000000181407a6c 
> __CFRunLoopDoSource0 : 30  CoreFoundation                      
> 0x0000000181407a6c __CFRunLoopDoSource0 + 172
> ( 31) 31  CoreFoundation                      0x00000001814077d8 
> __CFRunLoopDoSources0 : 31  CoreFoundation                      
> 0x00000001814077d8 __CFRunLoopDoSources0 + 232
> ( 32) 32  CoreFoundation                      0x0000000181406468 
> __CFRunLoopRun : 32  CoreFoundation                      0x0000000181406468 
> __CFRunLoopRun + 820
> ( 33) 33  CoreFoundation                      0x00000001814c4898 
> _CFRunLoopRunSpecificWithOptions : 33  CoreFoundation                      
> 0x00000001814c4898 _CFRunLoopRunSpecificWithOptions + 532
> ( 34) 34  HIToolbox                           0x000000018de03730 
> RunCurrentEventLoopInMode : 34  HIToolbox                           
> 0x000000018de03730 RunCurrentEventLoopInMode + 316
> ( 35) 35  HIToolbox                           0x000000018de069d0 
> ReceiveNextEventCommon : 35  HIToolbox                           
> 0x000000018de069d0 ReceiveNextEventCommon + 488
> ( 36) 36  HIToolbox                           0x000000018df901f4 
> _BlockUntilNextEventMatchingListInMode : 36  HIToolbox                        
>    0x000000018df901f4 _BlockUntilNextEventMatchingListInMode + 48
> ( 37) 37  AppKit                              0x0000000185cde25c 
> _DPSBlockUntilNextEventMatchingListInMode : 37  AppKit                        
>       0x0000000185cde25c _DPSBlockUntilNextEventMatchingListInMode + 236
> ( 38) 38  AppKit                              0x00000001857f4edc 
> _DPSNextEvent : 38  AppKit                              0x00000001857f4edc 
> _DPSNextEvent + 588
> ( 39) 39  AppKit                              0x0000000186247958 
> -[NSApplication: 39  AppKit                              0x0000000186247958 
> -[NSApplication(NSEventRouting) 
> _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
> ( 40) 40  AppKit                              0x0000000186247664 
> -[NSApplication: 40  AppKit                              0x0000000186247664 
> -[NSApplication(NSEventRouting) 
> nextEventMatchingMask:untilDate:inMode:dequeue:] + 72
> ( 41) 41  AppKit                              0x00000001857ed720 
> -[NSApplication run] : 41  AppKit                              
> 0x00000001857ed720 -[NSApplication run] + 368
> ( 42) 42  libqcocoa.dylib                     0x0000000103c3ae1c 
> qt_plugin_instance : 42  libqcocoa.dylib                     
> 0x0000000103c3ae1c qt_plugin_instance + 56316
> ( 43) 43  QtCore                              0x0000000103e50f40 
> _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE : 43  QtCore            
>                   0x0000000103e50f40 
> _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 588
> ( 44) 44  QtCore                              0x0000000103e4758c 
> _ZN16QCoreApplication4execEv : 44  QtCore                              
> 0x0000000103e4758c _ZN16QCoreApplication4execEv + 228
> ( 45) 45  LyX                                 0x0000000100743398 
> _ZN3lyx8frontend14GuiApplication4execEv : 45  LyX                             
>     0x0000000100743398 _ZN3lyx8frontend14GuiApplication4execEv + 56
> ( 46) 46  LyX                                 0x0000000100280324 
> _ZN3lyx3LyX4execERiPPc : 46  LyX                                 
> 0x0000000100280324 _ZN3lyx3LyX4execERiPPc + 1440
> ( 47) 47  LyX                                 0x000000010040843c main : 47  
> LyX                                 0x000000010040843c main + 100
> ( 48) 48  dyld                                0x0000000180fa9d54 start : 48  
> dyld                                0x0000000180fa9d54 start + 7184
> Buffer.cpp (1691):   /Users/koji/Downloads/tst5.lyx.emergency
> BufferParams.cpp (332): Checking whether document is in a system dir... no
> mathed/InsetMathScript.cpp (515): suppressing {} when writing
> support/FileName.cpp (623): Checksumming "/Users/koji/Downloads/tst5.lyx" 
> 314389489 lasted 0 ms.
> frontends/qt/GuiWorkArea.cpp (2086): updateTabTexts() iteration start
> frontends/qt/GuiWorkArea.cpp (2103): it = /Users/koji/Downloads/tst5.lyx => 
> tst5
> frontends/qt/GuiWorkArea.cpp (2110): segment ended
> Server.cpp (789): LyXComm: Closing connection
> Server.cpp (792): LyXComm: server is disabled, nothing to do
> ServerSocket.cpp (88): lyx: Server socket quitting

Koji

> 2025/11/02 18:40、[email protected]のメール:
> 
> Hi Koji
> 
> I experienced a past & copy crash which was repeatable. While I am not sure 
> whether this crash has anything to do anything with the crash involving the 
> exponential, it does involve a subscript which seems to cause the crash.  I 
> have attached two MWE and two crash reports.  
> 
> The recipe for the crash is as follows:  
> 
> tst1.lyx: Select the first math inset the “a" with the surrounding brackets 
> (macro \nec) and copy it into the clip board. Then select the “b" with the 
> surrounding brackets and paste. I immediately get a crash.
> 
> tst5.lyx: Same procedure, but a, b, x, y are now different
> 
> tst5.lyx is closer to my original text, tst1.
> 
> The  code in the lyx file for the first inset is
> 
> \begin_inset Formula $\nec a_{x}$
> \end_inset
> 
> This is valid and correct latex code, but the subscript seems to be attached 
> to “a" rather than to the surrounding brackets. The slightly more complex 
> file tst5.lyx does not miss any braces. For instance, the first math inset 
> reads
> 
> \begin_inset Formula $\nec{\HMp p}_{\mathscr{F}}$
> \end_inset
> 
> This looks okay and unambiguous to me, but I still get the crash. The file 
> tst1.lyx was produced by simplifying my example. I don’t know how the braces 
> were removed in that file. 
> 
> I also restarted my computer and the crash persists.
> 
> 
> Best regards, Marcus
> 
> 
> 
> <tst1.lyx><tst1.pdf><tst5.lyx><tst5.pdf>

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

Reply via email to