Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Alpha on September 20, 2016, 02:08:12 am

Title: wx30 repaint tabs
Post by: Alpha on September 20, 2016, 02:08:12 am
I am attempting to get C::B running under Ubuntu 16.04.  It is mostly functional, except that opening/closing several files causes tabs and toolbars to stop repainting.  Is this known wx30 behaviour, or is something wrong on my system?
Title: Re: wx30 repaint tabs
Post by: oBFusCATed on September 20, 2016, 09:40:16 am
My guess is something broken in ubuntu, because I'm using wx30 based build and don't see this behaviour.
Title: Re: wx30 repaint tabs
Post by: teto on September 20, 2016, 01:45:50 pm
I had the same problem with Ubuntu, not only tabs but even the panels would not get redrawn.
Title: Re: wx30 repaint tabs
Post by: oBFusCATed on September 20, 2016, 09:25:59 pm
What is the version of wxgtk you're using? Is it gtk2 or gtk3 based?
Title: Re: wx30 repaint tabs
Post by: Alpha on September 21, 2016, 02:24:54 am
The system provided library, which (assuming I am reading this correctly) is gtk2 based.

Results of CTRL-ALT-middle click:

wxWidgets Library (wxGTK port)
Version 3.0.2 (Unicode: wchar_t, debug level: 1),
Runtime version of toolkit used is 2.24.
Compile-time GTK+ version is 2.24.30.
Title: Re: wx30 repaint tabs
Post by: oBFusCATed on September 21, 2016, 07:38:58 pm
What theme are you using? Have you tried to use some other window manager?
Can you show screen shots?

Code
ldd /usr/bin/codeblocks  | grep wx
Is one of the best ways to check what is the version of wx. But I guess it is wx3-gtk2. So the problem is somewhere else.
Title: Re: wx30 repaint tabs
Post by: oBFusCATed on September 21, 2016, 07:40:14 pm
For the record this is my info:
Code
wxWidgets Library (wxGTK port)
Version 3.0.2 (Unicode: wchar_t, debug level: 1),
compiled at Jun 19 2016 19:25:19

Runtime version of toolkit used is 2.24.
Compile-time GTK+ version is 2.24.30.

Copyright (c) 1995-2013 wxWidgets team
Title: Re: wx30 repaint tabs
Post by: Alpha on September 22, 2016, 06:53:02 am
Code
ldd /usr/bin/codeblocks  | grep wx
Is one of the best ways to check what is the version of wx. But I guess it is wx3-gtk2. So the problem is somewhere else.
Confirmed wx3-gtk2:
Code
libwx_gtk2u_core-3.0.so.0 => /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0 (0x00007f6c7b42c000)

What theme are you using? Have you tried to use some other window manager?
Can you show screen shots?
Ubuntu's default theme and window manager (Unity 7).  I have not tested another window manager on this machine.

Normal.
(http://i.imgur.com/4uWaPRT.png)

Open new file.  Note that hovering over the close button no longer highlights it, as the tabs are not drawing.
(http://i.imgur.com/NhCv6p1.png)

Click back to editormanager.cpp tab.  The file updates, and the window title bar updates, but the tabs do not.
(http://i.imgur.com/xvGXBBK.png)

After moving toolbars and resizing sections.
(http://i.imgur.com/KiHqHow.png)
Title: Re: wx30 repaint tabs
Post by: Alpha on September 22, 2016, 06:56:56 am
Note that moving toolbars, switching tabs, and resizing all work fine before the bug is triggered by opening/closing a file.  (Also, opening/closing does not always trigger this, but it does trigger almost every time.)
Title: Re: wx30 repaint tabs
Post by: oBFusCATed on September 22, 2016, 11:16:42 am
I don't see this on my machine (gentoo linux+enlightenment) :(
Title: Re: wx30 repaint tabs
Post by: Alpha on September 22, 2016, 06:13:19 pm
Just tried enlightenment; same problem occurs... it seems to be a deeper problem than the window manager.
Title: Re: wx30 repaint tabs
Post by: oBFusCATed on September 22, 2016, 09:41:39 pm
Does this same thing happen with the auidemo or any other gtk2 based program?
Title: Re: wx30 repaint tabs
Post by: Alpha on September 22, 2016, 10:06:32 pm
The sample auidemo works fine.
Title: Re: wx30 repaint tabs
Post by: teto on September 22, 2016, 10:31:17 pm
In my case I had the same problems with the wxwidgets 3 demos so it seemed to be a wxwidget problem. (i3wm)
Title: Re: wx30 repaint tabs
Post by: Jenna on September 23, 2016, 06:06:40 am
Or a problem of the graphics driver.
Which one do you use ?
Title: Re: wx30 repaint tabs
Post by: teto on September 23, 2016, 11:07:31 am
The problem existed on 2 different computers (very different Hardware) and it happens only with wxwidget so I don't think it's the graphic driver.

Title: Re: wx30 repaint tabs
Post by: Alpha on September 25, 2016, 07:58:35 pm
I am using the Mesa/Gallium/nouveau stack for graphics.

I will try dropping a bunch of repaint commands over the code, to see if I can get something working.
Title: Re: wx30 repaint tabs
Post by: oBFusCATed on September 26, 2016, 12:42:34 am
I am using the Mesa/Gallium/nouveau stack for graphics.
I'd try the nvidia driver, just to be sure it is not driver related.
Title: Re: wx30 repaint tabs
Post by: Alpha on October 02, 2016, 04:30:52 pm
Switched to nvidia binaries; no change.  ... My added Refresh() and Update() calls so far have not changed anything.  Maybe it is a bug in Ubuntu's wx30 build.  However, I would think that would also show up in the auidemo.  My search continues.
Title: Re: wx30 repaint tabs
Post by: oBFusCATed on October 02, 2016, 05:56:01 pm
You can always try wx-master to see if this is something they fixed after 3.0.x has been released.
Title: Re: wx30 repaint tabs
Post by: Alpha on December 24, 2016, 09:49:42 pm
Success!  My testing with wx3.1.0 has revealed no problems so far.