3dmodel display doesn't work

Bug #1682812 reported by bkb
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Unassigned

Bug Description

Hi,
I don't see anything (stl os wrl files) in the Select 3d Model window.
The Footprint Properties -> 3D Settings window shows only the footprint but not the model
pcbnew-> 3D viewer shows only the board without any model.
3D search path configuration window got an error message even if the path is set and it is correct:
3D search path list is empty; continue to write empty file?
This is what happens:
https://www.youtube.com/watch?v=cAGMkKCXlVg

Best wishes:
Dan
----------------------------VERSION INFO -------------------
Application: kicad
Version: no-vcs-found-c4ea542~58~ubuntu16.04.1, release build
Libraries: wxWidgets 3.0.2
           libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.8.0-46-generic x86_64, 64 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.58.0
Curl: 7.47.0
KiCad - Compiler: GCC 5.4.0 with C++ ABI 1009
        Settings: USE_WX_GRAPHICS_CONTEXT=OFF
                  USE_WX_OVERLAY=OFF
                  KICAD_SCRIPTING=ON
                  KICAD_SCRIPTING_MODULES=ON
                  KICAD_SCRIPTING_WXPYTHON=ON
                  KICAD_SCRIPTING_ACTION_MENU=ON
                  BUILD_GITHUB_PLUGIN=ON
                  KICAD_USE_OCE=ON

bkb (bkb-b)
description: updated
description: updated
bkb (bkb-b)
description: updated
Revision history for this message
Nick Østergaard (nickoe) wrote :

Is it from the js-reynaud ppa?

Revision history for this message
bkb (bkb-b) wrote : Re: [Bug 1682812] Re: 3dmodel display doesn't work

Yes, it is daily build from
http://ppa.launchpad.net/js-reynaud/ppa-kicad/ubuntu
Latest version 201704132035+c4ea542~58~ubuntu16.04.1

On 2017-04-14 17:05, Nick Østergaard wrote:
> Is it from the js-reynaud ppa?
>

Revision history for this message
Eldar Khayrullin (eldar) wrote :

Same bug.

Application: kicad
Version: no-vcs-found-c4ea542~58~ubuntu17.04.1, release build
Libraries: wxWidgets 3.0.2
           libcurl/7.52.1 OpenSSL/1.0.2g zlib/1.2.11 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) librtmp/2.3
Platform: Linux 4.10.0-19-generic x86_64, 64 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.62.0
Curl: 7.52.1
KiCad - Compiler: GCC 6.3.0 with C++ ABI 1010
        Settings: USE_WX_GRAPHICS_CONTEXT=OFF
                  USE_WX_OVERLAY=OFF
                  KICAD_SCRIPTING=ON
                  KICAD_SCRIPTING_MODULES=ON
                  KICAD_SCRIPTING_WXPYTHON=ON
                  KICAD_SCRIPTING_ACTION_MENU=ON
                  BUILD_GITHUB_PLUGIN=ON
                  KICAD_USE_OCE=ON

Changed in kicad:
status: New → Confirmed
Revision history for this message
bkb (bkb-b) wrote :

The bug in still there in upgraded version: no-vcs-found-b321eff~58~ubuntu16.04.1, release build

Application: kicad
Version: no-vcs-found-b321eff~58~ubuntu16.04.1, release build
Libraries: wxWidgets 3.0.2
           libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.8.0-46-generic x86_64, 64 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.58.0
Curl: 7.47.0
KiCad - Compiler: GCC 5.4.0 with C++ ABI 1009
        Settings: USE_WX_GRAPHICS_CONTEXT=OFF
                  USE_WX_OVERLAY=OFF
                  KICAD_SCRIPTING=ON
                  KICAD_SCRIPTING_MODULES=ON
                  KICAD_SCRIPTING_WXPYTHON=ON
                  KICAD_SCRIPTING_ACTION_MENU=ON
                  BUILD_GITHUB_PLUGIN=ON
                  KICAD_USE_OCE=ON

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

Hmm, it works for me, but I also see this assert:

ASSERT INFO:
./src/common/mimecmn.cpp(634): assert "!ext.empty()" failed in GetFileTypeFromExtension(): extension can't be empty

BACKTRACE:
[1] wxMimeTypesManager::GetFileTypeFromExtension(wxString const&)
[2] wxFileIconsTable::GetIconID(wxString const&, wxString const&)
[3] wxGenericDirCtrl::PopulateNode(wxTreeItemId)
[4] wxGenericDirCtrl::OnExpandItem(wxTreeEvent&)
[5] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[6] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[7] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[8] wxEvtHandler::TryHereOnly(wxEvent&)
[9] wxEvtHandler::ProcessEventLocally(wxEvent&)
[10] wxEvtHandler::ProcessEvent(wxEvent&)
[11] wxWindowBase::TryAfter(wxEvent&)
[12] wxScrollHelperEvtHandler::ProcessEvent(wxEvent&)
[13] wxGenericTreeCtrl::Expand(wxTreeItemId const&)
[14] wxGenericTreeCtrl::OnMouse(wxMouseEvent&)
[15] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[16] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[17] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[18] wxEvtHandler::TryHereOnly(wxEvent&)
[19] wxEvtHandler::ProcessEventLocally(wxEvent&)
[20] wxEvtHandler::ProcessEvent(wxEvent&)
[21] wxScrollHelperEvtHandler::ProcessEvent(wxEvent&)
[22] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[23] g_closure_invoke
[24] g_signal_emit_valist
[25] g_signal_emit
[26] gtk_propagate_event
[27] gtk_main_do_event
[28] g_main_context_dispatch
[29] g_main_loop_run
[30] gtk_main
[31] wxGUIEventLoop::DoRun()
[32] wxEventLoopBase::Run()
[33] wxDialog::ShowModal()
[34] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[35] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[36] wxEvtHandler::SearchDynamicEventTable(wxEvent&)
[37] wxEvtHandler::TryHereOnly(wxEvent&)
[38] wxEvtHandler::ProcessEventLocally(wxEvent&)
[39] wxEvtHandler::ProcessEvent(wxEvent&)
[40] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[41] g_closure_invoke
[42] g_signal_emit_valist
[43] g_signal_emit
[44] g_closure_invoke
[45] g_signal_emit_valist
[46] g_signal_emit
[47] g_closure_invoke
[48] g_signal_emit_valist
[49] g_signal_emit
[50] gtk_propagate_event
[51] gtk_main_do_event
[52] g_main_context_dispatch
[53] g_main_loop_run
[54] gtk_main
[55] wxGUIEventLoop::DoRun()
[56] wxEventLoopBase::Run()
[57] wxDialog::ShowModal()
[58] make_fcontext

b321efffaf6d932cd4607be28c1dbd0ab68f0169

Revision history for this message
bkb (bkb-b) wrote :

In Kicad stable version the 3d viewer shows the components. In the daily build version it doesn't. So it does not come from setup issue.

Revision history for this message
Cirilo Bernardo (cirilo-bernardo) wrote :
Revision history for this message
Nick Østergaard (nickoe) wrote :

@Cirilo, this does not seem to work for me, no models are rendered, so I guess the plugins are not loaded. I suspect that it is because I use make DESTDIR=/tmp/kicad install which will prefix all install paths with DESTDIR. This is a very easy way to test different kicad builds simultaniously. I would like to not loose this ability. So my libs will be installed to:

/tmp/kicad2/usr/local/lib64/kicad/plugins/3d/libs3d_plugin_vrml.so
/tmp/kicad2/usr/local/lib64/kicad/plugins/3d/libs3d_plugin_idf.so
/tmp/kicad2/usr/local/lib64/libkicad_3dsg.so

I attempted this on a clean build dir to make sure there were nothing bac cached.

Revision history for this message
bkb (bkb-b) wrote : Re: [Kicad-developers] 3dmodel display doesn't work - 7083 release build works
Download full text (37.1 KiB)

Hi, I've made a test build and installation and now the version:
(2016-08-20 BZR 7083)-product, release build is working as expected. In
Select 3d Model window I can select and view vrml, x3d, idf, idf brd
file types.
Also I have all components in 3d Viewer.

I used
https://github.com/lachlanA/kicad-install/blob/master/kicad-install.sh
./kicad-install.sh --setup-update-build-install -t
/home/me/KICAD/kicad_src -n /usr/ -D -L -r TESTING -x 8
# no Docs / no Libraries

This is the version of kicad and the output of the install script. I
hope it helps.
Dan

Application: kicad
Version: (2016-08-20 BZR 7083)-product, release build
Libraries: wxWidgets 3.0.2
            libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32
librtmp/2.3
Platform: Linux 4.8.0-46-generic x86_64, 64 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.58.0
Curl: 7.47.0
KiCad - Compiler: GCC 5.4.0 with C++ ABI 1009
         Settings: USE_WX_GRAPHICS_CONTEXT=OFF
                   USE_WX_OVERLAY=OFF
                   KICAD_SCRIPTING=OFF
                   KICAD_SCRIPTING_MODULES=OFF
                   KICAD_SCRIPTING_WXPYTHON=OFF
                   USE_FP_LIB_TABLE=HARD_CODED_ON
                   BUILD_GITHUB_PLUGIN=ON

#----------------------------------------------------------------------------------------------------

-- Install configuration: "Release"
-- Installing: /usr/share/doc/kicad/INSTALL.txt
-- Installing: /usr/share/doc/kicad/scripts
-- Installing: /usr/share/doc/kicad/scripts/bom-in-python
-- Installing:
/usr/share/doc/kicad/scripts/bom-in-python/round_value_robin.py
-- Installing:
/usr/share/doc/kicad/scripts/bom-in-python/kicad_netlist_reader.py
-- Installing: /usr/share/doc/kicad/scripts/bom-in-python/round_robin.py
-- Installing:
/usr/share/doc/kicad/scripts/bom-in-python/bom_csv_sorted_by_ref.py
-- Installing:
/usr/share/doc/kicad/scripts/bom-in-python/bom_csv_grouped_by_value_with_fp.py
-- Installing:
/usr/share/doc/kicad/scripts/bom-in-python/bom_html_with_advanced_grouping.py
-- Installing:
/usr/share/doc/kicad/scripts/bom-in-python/bom_sorted_by_ref.py
-- Installing: /usr/share/doc/kicad/scripts/bom-in-python/README-bom.txt
-- Installing:
/usr/share/doc/kicad/scripts/bom-in-python/bom_csv_grouped_by_value.py
-- Installing:
/usr/share/doc/kicad/scripts/bom-in-python/bom_html_by_value.py
-- Installing:
/usr/share/doc/kicad/scripts/bom-in-python/bom_html_grouped_by_value.py
-- Installing: /usr/share/doc/kicad/scripts/lib_convert.py
-- Installing: /usr/share/doc/kicad/scripts/test_kicad_plugin.py
-- Installing: /usr/share/doc/kicad/scripts/test_plugin.py
-- Installing: /usr/share/doc/kicad/scripts/library-repos-install.bat
-- Installing: /usr/share/doc/kicad/scripts/library-repos-install.sh
-- Installing: /usr/share/doc/kicad/scripts/mk_mime_icons.py
-- Up-to-date: /usr/share/icons
-- Up-to-date: /usr/share/icons/hicolor
-- Up-to-date: /usr/share/icons/hicolor/16x16
-- Up-to-date: /usr/share/icons/hicolor/16x16/apps
-- Installing: /usr/share/icons/hicolor/16x16/apps/kicad.png
-- Installing: /usr/share/icons/hicolor/16x16/apps/pcbcalculator.png
-- Installing: /usr/share/icons/hi...

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

OK, ignore my comment in #8. It seems to works fine now. I think I forgot to adjust the LD_LIBRAR_PATH accordingly.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1682812] Re: 3dmodel display doesn't work

So the patch works correctly?

On 4/17/2017 11:13 AM, Nick Østergaard wrote:
> OK, ignore my comment in #8. It seems to works fine now. I think I
> forgot to adjust the LD_LIBRAR_PATH accordingly.
>

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

@Wayne, yes, the pathc is good.

Revision history for this message
Cirilo Bernardo (cirilo-bernardo) wrote : Re: [Kicad-developers] 3dmodel display doesn't work - 7083 release build works
Download full text (37.1 KiB)

This is expected since the plugin directory is "lib/kicad/.." which
is what wxWidgets always reports on Linux. If a multiarch directory
was used such as lib/x86_64-linux-gnu/kicad/... as in the first case
then it would not work. I posted a patch but people will need to test it.

- Cirilo

On Mon, Apr 17, 2017 at 12:51 PM, Botond Kiss <email address hidden> wrote:
> Hi, I've made a test build and installation and now the version: (2016-08-20
> BZR 7083)-product, release build is working as expected. In Select 3d Model
> window I can select and view vrml, x3d, idf, idf brd file types.
> Also I have all components in 3d Viewer.
>
> I used
> https://github.com/lachlanA/kicad-install/blob/master/kicad-install.sh
> ./kicad-install.sh --setup-update-build-install -t /home/me/KICAD/kicad_src
> -n /usr/ -D -L -r TESTING -x 8
> # no Docs / no Libraries
>
> This is the version of kicad and the output of the install script. I hope it
> helps.
> Dan
>
> Application: kicad
> Version: (2016-08-20 BZR 7083)-product, release build
> Libraries: wxWidgets 3.0.2
> libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
> Platform: Linux 4.8.0-46-generic x86_64, 64 bit, Little endian, wxGTK
> - Build Info -
> wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
> Boost: 1.58.0
> Curl: 7.47.0
> KiCad - Compiler: GCC 5.4.0 with C++ ABI 1009
> Settings: USE_WX_GRAPHICS_CONTEXT=OFF
> USE_WX_OVERLAY=OFF
> KICAD_SCRIPTING=OFF
> KICAD_SCRIPTING_MODULES=OFF
> KICAD_SCRIPTING_WXPYTHON=OFF
> USE_FP_LIB_TABLE=HARD_CODED_ON
> BUILD_GITHUB_PLUGIN=ON
>
> #----------------------------------------------------------------------------------------------------
>
>
> -- Install configuration: "Release"
> -- Installing: /usr/share/doc/kicad/INSTALL.txt
> -- Installing: /usr/share/doc/kicad/scripts
> -- Installing: /usr/share/doc/kicad/scripts/bom-in-python
> -- Installing:
> /usr/share/doc/kicad/scripts/bom-in-python/round_value_robin.py
> -- Installing:
> /usr/share/doc/kicad/scripts/bom-in-python/kicad_netlist_reader.py
> -- Installing: /usr/share/doc/kicad/scripts/bom-in-python/round_robin.py
> -- Installing:
> /usr/share/doc/kicad/scripts/bom-in-python/bom_csv_sorted_by_ref.py
> -- Installing:
> /usr/share/doc/kicad/scripts/bom-in-python/bom_csv_grouped_by_value_with_fp.py
> -- Installing:
> /usr/share/doc/kicad/scripts/bom-in-python/bom_html_with_advanced_grouping.py
> -- Installing:
> /usr/share/doc/kicad/scripts/bom-in-python/bom_sorted_by_ref.py
> -- Installing: /usr/share/doc/kicad/scripts/bom-in-python/README-bom.txt
> -- Installing:
> /usr/share/doc/kicad/scripts/bom-in-python/bom_csv_grouped_by_value.py
> -- Installing:
> /usr/share/doc/kicad/scripts/bom-in-python/bom_html_by_value.py
> -- Installing:
> /usr/share/doc/kicad/scripts/bom-in-python/bom_html_grouped_by_value.py
> -- Installing: /usr/share/doc/kicad/scripts/lib_convert.py
> -- Installing: /usr/share/doc/kicad/scripts/test_kicad_plugin.py
> -- Installing: /usr/share/doc/kicad/scripts/test_plugin.py
> -- Installing: /usr/share/doc/kicad/scripts/library-repos-install.bat
> -- Insta...

Revision history for this message
Uku Püttsepp (pythzepf) wrote :

What worked for me was a directory link suggested at the Kicad Info forums by user "madrigal":

ln -s /usr/lib/x86_64-linux-gnu/kicad /usr/lib/kicad

Thread: https://forum.kicad.info/t/3d-viewer-not-showing-3d-models-after-update-to-nightly/6153/7

Using Lenovo, T410:
Application: kicad
Version: no-vcs-found-1a75d99~58~ubuntu16.04.1, release build
Libraries: wxWidgets 3.0.2
           libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.4.0-72-generic x86_64, 64 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.58.0
Curl: 7.47.0
KiCad - Compiler: GCC 5.4.0 with C++ ABI 1009
        Settings: USE_WX_GRAPHICS_CONTEXT=OFF
                  USE_WX_OVERLAY=OFF
                  KICAD_SCRIPTING=ON
                  KICAD_SCRIPTING_MODULES=ON
                  KICAD_SCRIPTING_WXPYTHON=ON
                  KICAD_SCRIPTING_ACTION_MENU=ON
                  BUILD_GITHUB_PLUGIN=ON
                  KICAD_USE_OCE=ON

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

Symlinking is not the solution, Cirilos patch is the solution.

Revision history for this message
bkb (bkb-b) wrote : Re: [Bug 1682812] Re: 3dmodel display doesn't work

Thank you Cirilo!

Your patch fixed this issue.
After upgrading to version no-vcs-found-01f5a12~58~ubuntu16.04.1 it is
working fine on ubuntu 16.04.

Dan

Application: kicad
Version: no-vcs-found-01f5a12~58~ubuntu16.04.1, release build
Libraries: wxWidgets 3.0.2
            libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.8.0-46-generic x86_64, 64 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.58.0
Curl: 7.47.0
KiCad - Compiler: GCC 5.4.0 with C++ ABI 1009
         Settings: USE_WX_GRAPHICS_CONTEXT=OFF
                   USE_WX_OVERLAY=OFF
                   KICAD_SCRIPTING=ON
                   KICAD_SCRIPTING_MODULES=ON
                   KICAD_SCRIPTING_WXPYTHON=ON
                   KICAD_SCRIPTING_ACTION_MENU=ON
                   BUILD_GITHUB_PLUGIN=ON
                   KICAD_USE_OCE=ON

On 2017-04-18 10:17, Nick Ønstergaard wrote:
> Symlinking is not the solution, Cirilos patch is the solution.
>

--

Revision history for this message
bkb (bkb-b) wrote :

Thank you Cirilo!

Your patch fixed this issue.
After upgrading to version no-vcs-found-01f5a12~58~ubuntu16.04.1 Kicad 3dViewer is working fine on ubuntu 16.04.

Dan

Application: kicad
Version: no-vcs-found-01f5a12~58~ubuntu16.04.1, release build
Libraries: wxWidgets 3.0.2
           libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.8.0-46-generic x86_64, 64 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.58.0
Curl: 7.47.0
KiCad - Compiler: GCC 5.4.0 with C++ ABI 1009
        Settings: USE_WX_GRAPHICS_CONTEXT=OFF
                  USE_WX_OVERLAY=OFF
                  KICAD_SCRIPTING=ON
                  KICAD_SCRIPTING_MODULES=ON
                  KICAD_SCRIPTING_WXPYTHON=ON
                  KICAD_SCRIPTING_ACTION_MENU=ON
                  BUILD_GITHUB_PLUGIN=ON
                  KICAD_USE_OCE=ON

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