Could not find shader uniform: SMAA_RT_METRICS

Bug #1788456 reported by Stefan Krueger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Expired
Low
Unassigned

Bug Description

version: KiCad Nightly PPA 6.0.0-rc1 (details at the end)

i found a problem while trying to get openGL back to working..

when i activate / set the Anti-Aliasing in the Preferences / Display-Options Dialog (see attached screenshot) to
Subpixel Antialiasing (High Quality)
or
Subpixel Antialiasing (Ultra Quality)
it shows a Warning message: 'Could not find shader uniform: SMAA_RT_METRICS'
all other options
No Antialiasing
Supersampling (2x)
Supersampling (4x)
are working.

i originally posted this at Bug #1781581 comments 25
https://bugs.launchpad.net/kicad/+bug/1781581#yui_3_10_3_1_1534957366163_1697

as Aurelio Lucchesi (0rel) found out / pointed out it was not directly relevant for the openGL bug.
in comment 26
https://bugs.launchpad.net/kicad/+bug/1781581#yui_3_10_3_1_1534957366163_1718
he looked into it a bit..

but later Aurelio could reproduce this behavior at his setup (comment 34
https://bugs.launchpad.net/kicad/+bug/1781581#yui_3_10_3_1_1534957366163_1735 )

so to split this up - and as the other seems fixed now - here is a bugreport just for this.

i also had a look in the documentation if there is some more information about the different options - but only found
http://docs.kicad-pcb.org/stable/en/pcbnew.html#_the_preferences_menu
that is only mentioning the dialog.

so if this is expected behavior and my setup is not able to use this Subpixel Antialiasing would it be possible to extend the warning message?! or something else to let the user know its expected with some setups?

Application: kicad
Version: 6.0.0-rc1-unknown-60a55d7~84~ubuntu18.04.1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.58.0 OpenSSL/1.1.0g zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Platform: Linux 4.15.0-33-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.65.1
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.58.0
    Compiler: GCC 7.3.0 with C++ ABI 1011

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=OFF
    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
Stefan Krueger (z-mail-i) wrote :
Revision history for this message
Seth Hillbrand (sethh) wrote :

Can you please attach the output of the command

lspci -vvnn

Changed in kicad:
status: New → Incomplete
Revision history for this message
Stefan Krueger (z-mail-i) wrote :

added the full output as file (was to long for message content)

this is - as fare as i know - the only part that has to do with graphic:

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218M [NVS 3100M] [10de:0a6c] (rev a2) (prog-if 00 [VGA controller])
        Subsystem: Dell Latitude E6510 [1028:040b]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 34
        Region 0: Memory at e2000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Region 3: Memory at e0000000 (64-bit, prefetchable) [size=32M]
        Region 5: I/O ports at 7000 [size=128]
        [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: nvidia
        Kernel modules: nvidiafb, nouveau, nvidia

please let me know if i can test something or give you other information.

Revision history for this message
Seth Hillbrand (sethh) wrote :

When we can't load the shader, we should disable the menu options

Changed in kicad:
status: Incomplete → Triaged
importance: Undecided → Medium
milestone: none → 5.1.0
importance: Medium → Low
Revision history for this message
Seth Hillbrand (sethh) wrote :

@stefan-

It would be useful to know if this also happens when using the nouveau driver.

Also, can you post your nvidia driver version?

Revision history for this message
Stefan Krueger (z-mail-i) wrote :

i would love to test the nouveau - but last time i tried switching to it i got 600x800pixel and 'software emulated rendering' or something like this... no way to switch options - so there seems to be something off with the my system in this regard...
(so no way to really test this)

i don't know whats the best way to get the driver version.
thats what i know gives some sort of info:
$ glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVS 3100M/PCIe/SSE2
OpenGL core profile version string: 3.3.0 NVIDIA 340.107
OpenGL core profile shading language version string: 3.30 NVIDIA via Cg compiler

is this fine?

the driver updated recently. (from 340.106 to now 340.107)
but i just checked and with the 'stabel install with manually preloaded fix for opengl' the same error appears.
same for the currently installed nightly:
Application: kicad
Version: 6.0.0-rc1-unknown-1685af8~84~ubuntu18.04.1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.58.0 OpenSSL/1.1.0g zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Platform: Linux 4.15.0-35-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.65.1
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.58.0
    Compiler: GCC 7.3.0 with C++ ABI 1011

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=OFF
    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
Seth Hillbrand (sethh) wrote :

@Stefan- Does this still happen for you? I know that there were some shader updates since the report.

My original suggestion of trying nouveau was a bad one. We have some issues with buffering there and VRAM buffering disabled explicitly.

Changed in kicad:
milestone: 5.1.0 → none
status: Triaged → Incomplete
Revision history for this message
Stefan Krueger (z-mail-i) wrote :

i have updated my system in the meantime to Kubuntu 18.10.

and just tried with both: (detailed Version information at the end)
--> kicad 'stable' 5.0.2
--> kicad 'nightly' 6.0.0-rc1-unknown-d1b5302~84~ubuntu18.10.1
for both the same message as originally shows up.

let me know if i can support you in any way with more information!

----------------------------------------------
Detailed Version Information:

Application: kicad
Version: 5.0.2-bee76a0~70~ubuntu18.04.1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.4) nghttp2/1.32.1 librtmp/2.3
Platform: Linux 4.18.0-13-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.65.1
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.58.0
    Compiler: GCC 7.3.0 with C++ ABI 1011

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

Application: kicad
Version: 6.0.0-rc1-unknown-d1b5302~84~ubuntu18.10.1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.4) nghttp2/1.32.1 librtmp/2.3
Platform: Linux 4.18.0-13-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.67.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.0
    Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=OFF
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    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
Seth Hillbrand (sethh) wrote :

Which nvidia driver version are you using?

Revision history for this message
Stefan Krueger (z-mail-i) wrote :

$ glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVS 3100M/PCIe/SSE2
OpenGL version string: 3.3.0 NVIDIA 340.107
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler

is this enough?

Revision history for this message
Seth Hillbrand (sethh) wrote :

@Stefan- Would you try this again with the latest nightly build? We may have addressed this issue with some new shader commits.

Revision history for this message
Stefan Krueger (z-mail-i) wrote :
Download full text (5.0 KiB)

@sethh sorry for the delay.
i have tested today with version
5.1.0-unknown-0943c17~94~ubuntu18.10.1

i have first set all configs to 'No Aliasing'
then the switch to 'modern' worked.
then i changed to 'Subpixel Antialiasing (High Quality)'
and got the same error message (i think its a new dialog):
'Could not use OpenGL, falling back to software rendering'
details:
'Could not find shader uniform: SMAA_RT_METRICS'
after closing the dialog with ok kicad freezes and the window content is not redrawn-
after a short amount of time it crashes complete. → that is new!

i started it from commandline to catch messages if there were some:

-------------------------------------------------------------------------

stefan@stefan-Latitude-E6510:~$ kicad-nightly

(kicad:26204): Gtk-CRITICAL **: 09:42:40.358: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(kicad:26204): Gtk-WARNING **: 09:42:40.361: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node border, owner GtkFrame)

(kicad:26204): Gtk-CRITICAL **: 09:42:40.361: gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed

(kicad:26204): Gtk-WARNING **: 09:42:40.361: gtk_widget_size_allocate(): attempt to allocate widget with width 0 and height -1

(kicad:26204): Gtk-WARNING **: 09:42:40.361: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node border, owner GtkFrame)

(kicad:26204): Gtk-CRITICAL **: 09:42:40.361: gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed

(kicad:26204): Gtk-WARNING **: 09:42:40.361: gtk_widget_size_allocate(): attempt to allocate widget with width 0 and height -1

(kicad:26204): Gtk-CRITICAL **: 09:42:40.362: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScale

(kicad:26204): Gtk-WARNING **: 09:42:40.362: Negative content height -3 (allocation 1, extents 2x2) while allocating gadget (node checkbutton, owner GtkCheckButton)

(kicad:26204): Gtk-WARNING **: 09:42:40.362: for_size smaller than min-size (0 < 18) while measuring gadget (node check, owner GtkCheckButton)

(kicad:26204): Gtk-CRITICAL **: 09:42:40.362: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkCheckButton

(kicad:26204): Gtk-WARNING **: 09:42:40.362: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node border, owner GtkFrame)

(kicad:26204): Gtk-CRITICAL **: 09:42:40.362: gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed

(kicad:26204): Gtk-WARNING **: 09:42:40.362: gtk_widget_size_allocate(): attempt to allocate widget with width 0 and height -1

(kicad:26204): Gtk-WARNING **: 09:42:40.362: Negative content height -3 (allocation 1, extents 2x2) while allocating gadget (node checkbutton, owner GtkCheckButton)

(kicad:26204): Gtk-WARNING **: 09:42:40.362: for_size smaller than min-size (0 < 18) while measuring gadget (node check, owner GtkCheckButton)

(kicad:26204): Gtk-CRITICAL **: 09:42:40.362: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkCheckButton

(kicad:26204): Gtk-WARNING **: 09:42:40.362: Negative content height -3 (allocation 1, extents 2x2) while allocating gadget (node check...

Read more...

Revision history for this message
Seth Hillbrand (sethh) wrote :

Thank you for the update. We'll have to think on this some more.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for KiCad because there has been no activity for 60 days.]

Changed in kicad:
status: Incomplete → Expired
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.