From <http://www.lyx.org/trac/ticket/9912>:

Le 05/01/2016 10:18, LyX Ticket Tracker a écrit :
#9912: Assertion when selecting the whole document with mouse for the first time
-----------------------------+-------------------------
  Reporter:  gadmm            |       Owner:  lasgouttes
      Type:  defect           |      Status:  new
  Priority:  high             |   Milestone:  2.1.5
Component:  general          |     Version:  2.1.4
  Severity:  major            |  Resolution:
  Keywords:  assertion patch  |
-----------------------------+-------------------------
Changes (by lasgouttes):

  * cc: rgheck, skostysh (added)
  * keywords:  assertion => assertion patch
  * version:  2.2.0dev => 2.1.4
  * milestone:  2.2.0 => 2.1.5


Comment:

  This patch resets the anchor properly after resetting cursor at load time.

  Candidate to master and 2.1 branch.



Thanks. Unfortunately I just had a similar assertion in a condition unrelated to what this patch fixes:

#5  0x0000000000c8c710 in lyx::doAssert (
    expr=expr@entry=0xd09705 "anchor_.depth() >= depth()",
    file=file@entry=0xd0958a "../../src/Cursor.cpp", line=line@entry=1052)
    at ../../../src/support/lassert.cpp:53
#6 0x00000000005410ed in lyx::Cursor::normalAnchor (this=this@entry=0x41c8548)
    at ../../src/Cursor.cpp:1051
#7  0x00000000005414ba in lyx::Cursor::setSelection (this=0x41c8548)
    at ../../src/Cursor.cpp:1126
#8  0x000000000073612a in lyx::BufferView::mouseSetCursor (
    this=this@entry=0x41c8420, cur=..., select=<optimized out>)
    at ../../src/BufferView.cpp:2521
#9  0x00000000006c1503 in lyx::Text::dispatch (this=this@entry=0x25eba58,
    cur=..., cmd=...) at ../../src/Text3.cpp:1616
#10 0x00000000009aca0c in lyx::InsetText::doDispatch (
    this=this@entry=0x25eba40, cur=..., cmd=...)
    at ../../src/insets/InsetText.cpp:312
#11 0x00000000008b71ec in lyx::InsetCollapsable::doDispatch (this=0x25eba40,
    cur=..., cmd=...) at ../../src/insets/InsetCollapsable.cpp:489
#12 0x000000000095add2 in lyx::InsetNote::doDispatch (this=0x25eba40, cur=...,
    cmd=...) at ../../src/insets/InsetNote.cpp:179
#13 0x0000000000887932 in lyx::Inset::dispatch (this=0x25eba40, cur=...,
    cmd=...) at ../../src/insets/Inset.cpp:319
#14 0x000000000054433d in lyx::Cursor::dispatch (
    this=this@entry=0x7fffffffc6a0, cmd0=...) at ../../src/Cursor.cpp:432
#15 0x000000000073d89a in lyx::BufferView::mouseEventDispatch (this=0x41c8420,
    cmd0=...) at ../../src/BufferView.cpp:2224

I was selecting text and this was not a document that I had just opened nor did I just use a bookmark, so as I understand the patch would not have prevented the above. (From now on I will work on the latest master with the fix, to be sure.)

I also wanted to say that I am trying to catch a dataloss crash in master, where a blank emergency file is produced. I do not know if it is related to the issue above, but it is why I am currently working with gdb. This dataloss crash is unrelated to math macros, because there were no macros in the document at the time.


Guillaume


Reply via email to