Bug in ncam.py

More
22 Dec 2019 20:24 #153070 by fixer
Bug in ncam.py was created by fixer
Collapsing a tree with "left" key crashes NativeCAM with this error:
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 or Create an account to join the conversation.

More
27 Dec 2019 11:04 #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

Please Log in or Create an account to join the conversation.

More
28 Dec 2019 09:55 - 28 Dec 2019 09:56 #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:
widget.collapse_row(apath)


Going left from here:


produces this in terminal:
Attachments:
Last edit: 28 Dec 2019 09:56 by fixer.

Please Log in or Create an account to join the conversation.

More
28 Dec 2019 22:11 #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

Please Log in or Create an account to join the conversation.

More
29 Dec 2019 08:31 #153421 by fixer
Replied by fixer on topic Bug in ncam.py
Great!
Thanks for looking at it!

Please Log in or Create an account to join the conversation.

More
30 Dec 2019 17:16 #153555 by FernV
Replied by FernV on topic Bug in ncam.py
I think this is even better, try it
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
The following user(s) said Thank You: fixer

Please Log in or Create an account to join the conversation.

Time to create page: 0.121 seconds
Powered by Kunena Forum