- Posts: 132
- Thank you received: 0
Bug in ncam.py
6 years 10 months ago #153070
by fixer
Bug in ncam.py was created by fixer
Collapsing a tree with "left" key crashes NativeCAM with this error:
It only crashes when current selection is any kind of "group" feature (standard group, circular or rect array).
Code:
ERROR:/build/gtk+2.0-ABXlu1/gtk+2.0-2.24.32/modules/other/gail/gailtreeview.c:2313:idle_expand_row: code should not be reached
It only crashes when current selection is any kind of "group" feature (standard group, circular or rect array).
Please Log in to join the conversation.
6 years 10 months ago #153259
by FernV
Replied by FernV on topic Bug in ncam.py
Hi
I am testing this with Debian Stretch without any issue.
What is your distribution ?
Regards
Fern
I am testing this with Debian Stretch without any issue.
What is your distribution ?
Regards
Fern
Please Log in to join the conversation.
6 years 10 months ago #153361
by fixer
Replied by fixer on topic Bug in ncam.py
Buster, but I also tested in Stretch. The problem is there.
the line that crashes is:
Going left from here:
produces this in terminal:
the line that crashes is:
Code:
widget.collapse_row(apath)
Attachment not found
Going left from here:
Attachment not found
produces this in terminal:
Attachment not found
Please Log in to join the conversation.
6 years 10 months ago #153378
by FernV
Replied by FernV on topic Bug in ncam.py
Thanks for showing how to reproduce this...
The line that crashes the app does not need to be there since the row is NOT expanded and the first 'if' statement is not executed.
Remove it.
I corrected for a future release.
Regards
Fern
The line that crashes the app does not need to be there since the row is NOT expanded and the first 'if' statement is not executed.
Remove it.
I corrected for a future release.
Regards
Fern
Please Log in to join the conversation.
6 years 10 months ago #153421
by fixer
Replied by fixer on topic Bug in ncam.py
Great!
Thanks for looking at it!
Thanks for looking at it!
Please Log in to join the conversation.
6 years 10 months ago #153555
by FernV
Replied by FernV on topic Bug in ncam.py
I think this is even better, try it
Fern
Code:
elif keyname == "Left" :
if not widget.row_expanded(path) and len(path) > 1 :
widget.set_cursor_on_cell(path[0:len(path) - 1])
widget.collapse_row(path)
Fern
Please Log in to join the conversation.
Time to create page: 0.087 seconds
