Vitalije
On Thu, May 7, 2020 at 2:42 PM vitalije <[email protected]> wrote:
> In last few days I've been working on tests to be sure that all commands
> in new prototype are working correctly and that no crash will ever occur. I
> am pretty sure now that the implementation is correct and there are no
> remaining bugs in the prototype.
>
I added set_hoist to the list of methods randomly called and was able to
get a crash. For me it was a hard-crash with core dump which makes it
harder to find out the scenario causing the crash. It wasn't too hard
though and the steps are simple:
1. hoist any node which has a previous sibling
2. move node right
3. crash:
Traceback (most recent call last):
File "leo/extensions/myleoqt.py", line 333, in select_item
v = newitem.data(0, 1024)
AttributeError: 'NoneType' object has no attribute 'data'
Fatal Python error: Aborted
Current thread 0x00007fad45034740 (most recent call first):
File "leo/extensions/myleoqt.py", line 1227 in move_just_treeitem
File "leo/extensions/myleoqt.py", line 1213 in move_treeitem
File "leo/extensions/myleoqt.py", line 430 in domove
File "leo/extensions/myleoqt.py", line 449 in make_undoable_move
File "leo/extensions/myleoqt.py", line 557 in move_node_right
File "leo/extensions/myleoqt.py", line 1594 in main
File "leo/extensions/myleoqt.py", line 1597 in <module>
Aborted (core dumped)
BTW, in order to get the bottom part of the stack trace I added this:
import faulthandler; faulthandler.enable()
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/CAO5X8CypsUyVwsNXAVxbNzMFi4XsVMP5vZ2-mr8DHo-RLtyW1Q%40mail.gmail.com.