Nightly PCBNEW : Menu has a lot of problems to appear

Bug #1831333 reported by Michele Giorato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Committed
High
Unassigned

Bug Description

....

the file menu has a lot of problems to appear, sometimes it appears after a 'coffee break' , sometimes it has scroll widgets, sometimes it crashes everything ...

By now this anomalous behavior of the various main drop-downs menu is occurring on the whole kicad suite, is it possible that I only find it?

Tags: pcbnew
Revision history for this message
Michele Giorato (mr-miky64) wrote :
Revision history for this message
Michael Kavanagh (michaelkavanagh) wrote :

Please copy the full version information from About KiCad -> Copy Version Info.

Changed in kicad:
status: New → Incomplete
Revision history for this message
Nick Østergaard (nickoe) wrote :

Do you see any gtk asserts if you run it from the commandline when this happens?

Revision history for this message
Jeff Young (jeyjey) wrote :

@Michele, is this a build you made yourself? Someone else (Dino perhaps?) was experiencing similar issues and it turned out to be some build dependency that was off.

@Devs, anyone else remember particulars? Does this look like it might be related?

Revision history for this message
Nick Østergaard (nickoe) wrote :

I see similar issues with the menus. I also saw that exact issue where it shows as in his screenshots (normal width of the menu, but empty and with top and bottom scroll thingies).

Right now the issue I am trying to track down is where the menu sizing is all wrong and I see gtk asserts.

(eeschema:12363): Gtk-CRITICAL **: 23:23:59.098: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

See attached screenshot.

It is especially the View menu (and maybe Place) that is problematic. If I hover to some other menus it suddenly starts to become good, meaning icons and menu text appear properly.

Git bisect tells me this started in:
commit ef5c69167a493683c81d44cf752fc141dcf174de
Date: Mon May 13 21:42:40 2019 +0100

    Start moving some LibEdit and SchEdit menubar menus to actions.

    Also includes a bunch of bug fixes that got intermingled.

...

Changed in kicad:
status: Incomplete → Confirmed
importance: Undecided → High
milestone: none → 6.0.0-rc1
Revision history for this message
Jeff Young (jeyjey) wrote :

Hmm... sounds like a GTK-specific issue (or at least a non-OSX issue).

Anyone seeing it on MSW?

Revision history for this message
Michele Giorato (mr-miky64) wrote :

@jeyjey

I also tried the nightly windows version and it doesn't present the problems with the menus mentioned above.
I don't know if it is exactly the same as the Fedora nightly but at most it deviates from 1 day.

As for the version I use is the one taken from Copr, I don't compile it even if in the past I did it.

Application: LibEdit
Version: 6.0.0-unknown-r15909-4842c735, debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.64.0 OpenSSL/1.1.1b zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.20.2 (+libidn2/2.0.5) libssh/0.8.7/openssl/zlib nghttp2/1.38.0
Platform: Linux 5.1.5-300.fc30.x86_64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.69.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.64.0
    Compiler: GCC 9.1.1 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
Michele Giorato (mr-miky64) wrote :

@Nick I haven't tried from the command line, but I can do it ...

Revision history for this message
Michele Giorato (mr-miky64) wrote :

@Nick

you described exactly what happens to me too.
Inexplicably, if the application doesn't crash first, after a while the menus look fine ...
It seems that at the first appearance there is no idea about the size of the drop-down menu and then acting on the scroll widget in any way it can calculate it.

Revision history for this message
Michele Giorato (mr-miky64) wrote :
Download full text (19.1 KiB)

@nick

I started pcbnew directly and ONLY flew over the main menu with the mouse pointer ....

[michele@fx-8350-fc29 ~]$ pcbnew
13:11:59: Debug: Adding duplicate image handler for 'PNG file'
13:11:59: Debug: Adding duplicate image handler for 'JPEG file'
13:11:59: Debug: Adding duplicate image handler for 'TIFF file'
13:11:59: Debug: Adding duplicate image handler for 'GIF file'
13:11:59: Debug: Adding duplicate image handler for 'PNM file'
13:11:59: Debug: Adding duplicate image handler for 'PCX file'
13:11:59: Debug: Adding duplicate image handler for 'IFF file'
13:11:59: Debug: Adding duplicate image handler for 'Windows icon file'
13:11:59: Debug: Adding duplicate image handler for 'Windows cursor file'
13:11:59: Debug: Adding duplicate image handler for 'Windows animated cursor file'
13:11:59: Debug: Adding duplicate image handler for 'TGA file'
13:11:59: Debug: Adding duplicate image handler for 'XPM file'

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5995): Gtk-CRITICAL **: 13:12:03.400: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0'...

Revision history for this message
Jeff Young (jeyjey) wrote :

I'm about to push some changes which will instantiate a default menu for each menu when it is built. I don't have GTK, so I have no idea if it will fix these menu issues, but it's worth a try....

Revision history for this message
Jeff Young (jeyjey) wrote :

Changes in....

Revision history for this message
Nick Østergaard (nickoe) wrote :

It looks like the changes in 45a9544726fd6858a03ee4914ea60e0e3db7591a do fixe the wonky menu issue and the 3d-viewer starts properly via alt+3.

Changed in kicad:
status: Confirmed → Fix Committed
Revision history for this message
Michele Giorato (mr-miky64) wrote :

now it seems to work without problems, the menus appear immediately, correct and without errors

Revision history for this message
Michele Giorato (mr-miky64) wrote :

Speaking too soon, there are problems with submenus but I think it's just a matter of fixing how it was done in the main menus

(pcbnew:5810): Gtk-CRITICAL **: 00:50:21.455: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5810): Gtk-CRITICAL **: 00:50:21.455: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5810): Gtk-CRITICAL **: 00:50:21.455: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5810): Gtk-CRITICAL **: 00:50:21.804: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5810): Gtk-CRITICAL **: 00:50:21.804: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5810): Gtk-CRITICAL **: 00:50:21.805: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5810): Gtk-CRITICAL **: 00:50:21.805: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5810): Gtk-CRITICAL **: 00:50:21.805: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5810): Gtk-CRITICAL **: 00:50:21.805: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:5810): Gtk-CRITICAL **: 00:50:21.805: gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

Application: Pcbnew
Version: 6.0.0-unknown-r15960-cbea5149, debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.64.0 OpenSSL/1.1.1b zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.20.2 (+libidn2/2.0.5) libssh/0.8.7/openssl/zlib nghttp2/1.38.0
Platform: Linux 5.1.5-300.fc30.x86_64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.69.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.64.0
    Compiler: GCC 9.1.1 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

tags: added: pcbnew
summary: - Nightly PCBNEW : Library editor SaveAs not working
+ Nightly PCBNEW : Menu has a lot of problems to appear
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.