Menu

#917 Tabs is not redrawn after click on them

Undefined
open
nobody
gtk3 (12)
Bug_Report
2020-04-05
2020-02-08
No

After opening a panel (e.g. F2) or build a project, I have been observed un(re)drawn tabs (including whatches window in the debug mode).

Platform: Gentoo Linux x86_64, codeblocks is current from repo.

See attached screenshots.

2 Attachments

Discussion

  • Dmitrij Volin

    Dmitrij Volin - 2020-02-09

    Build: Feb 7 2020, 07:25:25-wx3.0.4-gcc 9.2.0 (Linux, unicode) - 64 bit; SVN 11957

     

    Last edit: Dmitrij Volin 2020-02-09
  • Teodor Petrov

    Teodor Petrov - 2020-02-09

    What are the steps to reproduce this? Is this happening in a reliable way?

     
    • Dmitrij Volin

      Dmitrij Volin - 2020-02-09

      Thanks for the your reply !

      here is videos of it: https://www.youtube.com/watch?v=P_kDn6yB1L4

      I have just opening the CB, click on an panel/window and I got unredrawn tabs ((
      But if I do resizing the editor or move splitter - then it is redrawing.

       
  • Teodor Petrov

    Teodor Petrov - 2020-02-09

    What WM/DE are you using? What happens if you compile the wxwidget auidemo sample? Would it work correctly there?

     
  • Teodor Petrov

    Teodor Petrov - 2020-02-09

    Also what is the output of eselect wxwidgets list or wx-config --list ?

     
  • Dmitrij Volin

    Dmitrij Volin - 2020-02-09

    What WM/DE are you using?

    I have installed KDE-5.64.0

    Also what is the output of eselect wxwidgets list or wx-config --list ?

    $ wx-config --list
    Default config is gtk3-unicode-3.0-gtk3
    Default config will be used for output

    Alternate matches:
    gtk2-unicode-3.0

    What happens if you compile the wxwidget auidemo sample? Would it work correctly there?

    How can I do it ?

     
  • Dmitrij Volin

    Dmitrij Volin - 2020-02-09

    What is auidemo sample? How can I install it ?

     
  • Teodor Petrov

    Teodor Petrov - 2020-02-09

    What happens if you eselect the gtk2 version of wxGTK? Would the problem go away? (you'll have to rebuild Code::Blocks for the change to take effect).

    The auidemo is available from samples/auidemo folder of the wxWidgets source code. I'm not sure if there is a way to compile and install wxWidgets samples with the wxGTK ebuild...

     
  • Dmitrij Volin

    Dmitrij Volin - 2020-02-09

    I no not know why, but I got crashed compiled with gtk-2 (I have chosen with eselect for gtk2), but there linked with gtk-3:

    Program received signal SIGFPE, Arithmetic exception.
    0x00007ffff6693f65 in wxCSConv::DoCreate() const () from /usr/lib64/libwx_baseu-3.0.so.0
    (gdb) bt
    $0 0x00007ffff6693f65 in wxCSConv::DoCreate() const () at /usr/lib64/libwx_baseu-3.0.so.0
    $1 0x00007ffff6695f10 in wxCSConv::wxCSConv(wxFontEncoding) () at /usr/lib64/libwx_baseu-3.0.so.0
    $2 0x00007ffff6695f89 in wxGet_wxConvLocalPtr() () at /usr/lib64/libwx_baseu-3.0.so.0
    $3 0x00007ffff445a6db in () at /usr/lib64/libwx_baseu-3.0-gtk3.so.0
    $4 0x00007ffff7fe432a in () at /lib64/ld-linux-x86-64.so.2
    $5 0x00007ffff7fe4429 in () at /lib64/ld-linux-x86-64.so.2
    $6 0x00007ffff7fd60ca in () at /lib64/ld-linux-x86-64.so.2

     
  • Dmitrij Volin

    Dmitrij Volin - 2020-02-09

    I need to sleep now. Tomorow I will try compile again...

    PS:
    Teodor, please, guide me how to make new syntax highlight.
    I want to make its for GNU Assembler, and send patch to here.

     
  • Teodor Petrov

    Teodor Petrov - 2020-02-09

    I guess the eselect does nothing the piece of code which selects the gtk3 variant is probably in the ebuild. You'll probably have to change it.

     
  • Dmitrij Volin

    Dmitrij Volin - 2020-02-10

    While I have compiled the CB with gtk2-unicode-3.0, I got error:
    (Scintilla messages here ...): gdk/gdk.h no such file.

    Sadly, I have no time for deep dig into CB for fix the unredrawing widgets ((
    but by runaway watch sources of the CB I guess: there are many
    skip events for prevent flickering, perhaps problem in that...

    And there are not optimized redrawing when blinking cursor:
    redrawing all editor widget instead of redrawnig only that area where
    is cursor (I have seen flickering when many text on page)

     

    Last edit: Dmitrij Volin 2020-02-10
  • Dmitrij Volin

    Dmitrij Volin - 2020-02-10

    And I have no in the portage wxGTK version of 2:

    /usr/portage/x11-libs/wxGTK $ ls wx*
    wxGTK-3.0.3.ebuild wxGTK-3.0.4.ebuild wxGTK-3.0.4-r2.ebuild wxGTK-3.0.4-r301.ebuild
    wxGTK-3.0.3-r300.ebuild wxGTK-3.0.4-r1.ebuild wxGTK-3.0.4-r300.ebuild wxGTK-3.0.4-r302.ebuild

     
  • Teodor Petrov

    Teodor Petrov - 2020-02-10

    wxGTK 3.0 is available in two separate slots - gtk2 and gtk3

    # eix wxGTK
    [I] x11-libs/wxGTK
         Available versions:
         (3.0)  3.0.4-r2
         (3.0-gtk3) 3.0.4-r302
    

    From this it is clear that r3xx are the gtk3 releases.
    C::B from master builds just fine with gtk2... I've not tried the gentoo provided ebuild though...

     
  • Dmitrij Volin

    Dmitrij Volin - 2020-02-10

    Thanks for the explaning !

    And thanks a lot for the your time spended on my issues !

    I will try emerge the wx-gtk2 (wxGTK) from sources for recompile the CB, for now its packages from binary repo..

     

    Last edit: Dmitrij Volin 2020-02-10
  • Dmitrij Volin

    Dmitrij Volin - 2020-02-11

    through the portage I did not get properly linked the CB
    with gtk2:

    $ wx-config --list
    Default config is gtk2-unicode-3.0
    Default config will be used for output
    Alternate matches:
    gtk3-unicode-3.0-gtk3

    $ ldd /usr/bin/codeblocks | grep wx
    libwx_gtk3u_aui-3.0-gtk3.so.0 => /usr/lib64/libwx_gtk3u_aui-3.0-gtk3.so.0 (0x00007f72b555b000)
    libwx_gtk3u_propgrid-3.0-gtk3.so.0 => /usr/lib64/libwx_gtk3u_propgrid-3.0-gtk3.so.0 (0x00007f72b5462000)
    libwx_gtk3u_richtext-3.0-gtk3.so.0 => /usr/lib64/libwx_gtk3u_richtext-3.0-gtk3.so.0 (0x00007f72b5269000)
    libwx_gtk3u_xrc-3.0-gtk3.so.0 => /usr/lib64/libwx_gtk3u_xrc-3.0-gtk3.so.0 (0x00007f72b5164000)
    libwx_gtk3u_html-3.0-gtk3.so.0 => /usr/lib64/libwx_gtk3u_html-3.0-gtk3.so.0 (0x00007f72b5086000)
    libwx_gtk3u_qa-3.0-gtk3.so.0 => /usr/lib64/libwx_gtk3u_qa-3.0-gtk3.so.0 (0x00007f72b5054000)
    libwx_gtk3u_adv-3.0-gtk3.so.0 => /usr/lib64/libwx_gtk3u_adv-3.0-gtk3.so.0 (0x00007f72b4e6c000)
    libwx_gtk3u_core-3.0-gtk3.so.0 => /usr/lib64/libwx_gtk3u_core-3.0-gtk3.so.0 (0x00007f72b47ff000)
    libwx_baseu_xml-3.0-gtk3.so.0 => /usr/lib64/libwx_baseu_xml-3.0-gtk3.so.0 (0x00007f72b47ec000)
    libwx_baseu_net-3.0-gtk3.so.0 => /usr/lib64/libwx_baseu_net-3.0-gtk3.so.0 (0x00007f72b47a3000)
    libwx_baseu-3.0-gtk3.so.0 => /usr/lib64/libwx_baseu-3.0-gtk3.so.0 (0x00007f72b44e4000)

    ((
    
     
  • Dmitrij Volin

    Dmitrij Volin - 2020-02-11

    OK, I have found the solution: after install livecd into virualbox, install then codeblocks and its worked fine ! I will reinstall system !

    Sorry for noise ((

     
  • Dmitrij Volin

    Dmitrij Volin - 2020-02-12

    I have found switch from gtk3 to gtk2:

    $ sudo eselect wxwidgets set 1 (before see output of: $ sudo eselect wxwidgets list )

    and change var WX_GTK_VER in ebuild from equal "3.0-gtk3" to "3.0".

    ebuild is attached.

     
  • Teodor Petrov

    Teodor Petrov - 2020-04-05
    • labels: --> gtk3
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.