3d Viewer exports wrong OpenGL canvas

Bug #1819536 reported by Seth Hillbrand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Low
Seth Hillbrand

Bug Description

When using 3d Viewer, export as JPG or export as PNG will export the last OpenGL canvas that has refreshed.

To reproduce:
1) Open a demo project (e.g. PIC Programmer)
2) Open eeschema
3) Open pcbnew
4) Open 3d-viewer
5) Switch to eeschema (Alt-Tab) and zoom in one step
6) Alt-Tab back to 3d-viewer
7) Without changing anything in 3d-viewer, choose File->Export Current View as JPG

This will export an image of the schematic rather than the 3d-viewer

If you rotate the 3d view and/or zoom in, then export the 3d image will be exported

Application: kicad
Version: (5.1.0-6-g5685ec525), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.64.0 OpenSSL/1.1.1a zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
Platform: Linux 4.19.0-2-amd64 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.67.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.64.0
    Compiler: GCC 8.3.0 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
Wayne Stambaugh (stambaughw) wrote :

I cannot duplicate this on windows. This appears to be another linux specific bug.

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

OK, good to know. Curious though. Maybe Windows does an additional GL refresh when activating the 3d viewer

Changed in kicad:
assignee: nobody → Seth Hillbrand (sethh)
importance: Undecided → Low
milestone: none → 5.1.1
status: New → Triaged
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 707e7b4b65a729320da53d13926a590a49938a00
https://git.launchpad.net/kicad/patch/?id=707e7b4b65a729320da53d13926a590a49938a00

Changed in kicad:
status: Triaged → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
Changed in kicad:
status: Fix Released → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
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.