Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: yvesdm3000 on October 04, 2015, 12:39:07 pm

Title: Annoying error: Searching the Project tree and press down arrow
Post by: yvesdm3000 on October 04, 2015, 12:39:07 pm
It's a rather minor issue. With the SVN-version, I open up the CodeBlocks_unix workspace, I click in the Projects-tree on the root and type "config". And then I tap the down arrow, an assertion goes off saying

../src/generic/treectlg.cpp(1521): assert "IsVisible(item)" failed in GetNextVisible(): this item itself should be visible

I can still click 'continue' so it's more like an annoyance, but still a bug.

-Yves
Title: Re: Annoying error: Searching the Project tree and press down arrow
Post by: oBFusCATed on October 04, 2015, 12:42:59 pm
Can you please describe the steps with a bit more details?
What is this projects-tree?

Also can you paste the full backtrace?
Title: Re: Annoying error: Searching the Project tree and press down arrow
Post by: yvesdm3000 on October 04, 2015, 03:46:10 pm
Hi,

I essentially want to search a file that has 'config' in its name in the workspace. I do that by focussing the Management -> "Projects" tab and click anything inside it.

Then I type 'config' and CB highlights any file that has the typed text inside its name. If I then tap the 'arrow down'-key, I get this assertion.

The dialog-box for the assertion that shows up doesn't seem to show any backtrace...
I played with it a little while and maybe the assertion is false. When I do the search, it seems to scroll down a little, making the first selection no longer visible. If there is an assertion that the selected item needs to be visible when pressing the down-arrow, maybe it should be made visible first ?

Version 10515

Yves
Title: Re: Annoying error: Searching the Project tree and press down arrow
Post by: yvesdm3000 on October 04, 2015, 04:10:59 pm
Attachment shows backtrace. I can obviously set a breakpoint and make a backtrace from there, but I guess it's allready clear what happens ?

Yves
Title: Re: Annoying error: Searching the Project tree and press down arrow
Post by: oBFusCATed on October 04, 2015, 04:15:44 pm
I can reproduce this. Thank you. The screen shot is not helpful, but this doesn't matter.
Title: Re: Annoying error: Searching the Project tree and press down arrow
Post by: yvesdm3000 on October 05, 2015, 08:08:44 am
Just for info, if you select an item, then use the scrollbar to move the selection off-screen and then press the down-arrow causes the same assert go off.

I guess the assert  is simply wrong since the selection is allowed to be offscreen...

-Yves
Title: Re: Annoying error: Searching the Project tree and press down arrow
Post by: MortenMacFly on October 05, 2015, 08:44:26 am
I can reproduce this. Thank you. The screen shot is not helpful, but this doesn't matter.
I can't: Is this a Linux only thing? Works on Windows, but I don't see multiple selections. Is that (the multiple selections) just under Linux?
Title: Re: Annoying error: Searching the Project tree and press down arrow
Post by: oBFusCATed on October 05, 2015, 08:54:21 am
Yes, it is wxgtk only. It seems that in the past the keyboard handling has not been implemented, so we've done it ourselves.
And this code seems buggy. The good thing is that it works if I just remove the code.
Title: Re: Annoying error: Searching the Project tree and press down arrow
Post by: oBFusCATed on October 05, 2015, 08:00:54 pm
Fixed in svn...