kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #23371
Re: 3D refactor
Ok, I have attached the gdb backtrace if it is of any helpt.
It is very reproduceable for me, but of course, it is "just" an assert for now.
2016-02-24 18:51 GMT+01:00 Mário Luzeiro <mrluzeiro@xxxxx>:
> Hi NickOe,
> Thanks for trying the branch!
>
> Cirilo is managing that branching. He is "cherry picking" things from my working branch on the renders to get a smooth transition between our branches and trunk
> I guess that is because that cbbox.cpp comes from the new branches and maybe it indicated that something is wrong originally in the stable trunk or something was not proper integrated with that new cbbox.
> It is however a minor issue, since this new cbbox lib have more checks and expect the things more strictly... so maybe it is not an issue at all.
>
> The backtrace does not help since it does not show any function that is using the cbbox :/
> I think if you run it with gdb it will give more precise info if you get the backtrace.
>
> Mario
>
> ________________________________________
> From: Kicad-developers [kicad-developers-bounces+mrluzeiro=ua.pt@xxxxxxxxxxxxxxxxxxx] on behalf of Nick Østergaard [oe.nick@xxxxxxxxx]
> Sent: 24 February 2016 17:36
> To: Cirilo Bernardo
> Cc: KiCad Developers
> Subject: Re: [Kicad-developers] 3D refactor
>
> Hi Cirilo and Mario,
>
> I just built the 3d_initial_merge branch revno 6528, but I see some
> annoying asserts when running the 3d viewer, not the previewer in the
> 3d properties dialog:
>
> ASSERT INFO:
> /somepath/3d_initial_merge/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cbbox.cpp(114):
> assert "aBBox.IsInitialized()" failed in Union().
>
> BACKTRACE:
> [1] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&,
> wxEvent&) const
> [2] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase
> const&, wxEvtHandler*, wxEvent&)
> [3] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
> [4] wxEvtHandler::TryHereOnly(wxEvent&)
> [5] wxEvtHandler::ProcessEventLocally(wxEvent&)
> [6] wxEvtHandler::ProcessEvent(wxEvent&)
> [7] wxEvtHandler::SafelyProcessEvent(wxEvent&)
> [8] wxGLCanvas::OnInternalIdle()
> [9] wxWindowBase::SendIdleEvents(wxIdleEvent&)
> [10] wxWindowBase::SendIdleEvents(wxIdleEvent&)
> [11] wxFrame::SendIdleEvents(wxIdleEvent&)
> [12] wxWindowBase::SendIdleEvents(wxIdleEvent&)
> [13] wxFrame::SendIdleEvents(wxIdleEvent&)
> [14] wxAppBase::ProcessIdle()
> [15] wxApp::DoIdle()
> [16] g_main_context_dispatch
> [17] g_main_loop_run
> [18] gtk_main
> [19] wxGUIEventLoop::DoRun()
> [20] wxEventLoopBase::Run()
> [21] wxAppConsoleBase::MainLoop()
> [22] APP_SINGLE_TOP::OnRun()
> /somepath/3d_initial_merge/common/single_top.cpp:173
> [23] wxEntry(int&, wchar_t**)
> [24] main /somepath/3d_initial_merge/common/single_top.cpp:210
> [25] __libc_start_main
> [26] _start
(gdb) bt
#0 0x00007ffff4025c39 in raise () from /usr/lib/libpthread.so.0
#1 0x00007ffff6c6bd10 in wxGUIAppTraits::ShowAssertDialog(wxString const&) () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#2 0x00007ffff63503d2 in ?? () from /usr/lib/libwx_baseu-3.0.so.0
#3 0x00007ffff6353757 in wxAppConsoleBase::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*) ()
from /usr/lib/libwx_baseu-3.0.so.0
#4 0x00007ffff6c2a090 in wxApp::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*) ()
from /usr/lib/libwx_gtk2u_core-3.0.so.0
#5 0x00007ffff6353a62 in ?? () from /usr/lib/libwx_baseu-3.0.so.0
#6 0x00007ffff634e27a in wxOnAssert(char const*, int, char const*, char const*, char const*) () from /usr/lib/libwx_baseu-3.0.so.0
#7 0x00007fffe509c913 in CBBOX::Union (this=0x7fffffffc9b0, aBBox=...)
at /somepath/3d_initial_merge/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cbbox.cpp:114
#8 0x00007fffe50ae94d in EDA_3D_CANVAS::calcBBox (this=0x2213de0) at /somepath/3d_initial_merge/3d-viewer/3d_draw.cpp:946
#9 0x00007fffe50ae3e8 in EDA_3D_CANVAS::CreateDrawGL_List (this=0x2213de0, aErrorMessages=0x7fffffffcdf0, aActivity=0x7fffffffcdd0)
at /somepath/3d_initial_merge/3d-viewer/3d_draw.cpp:879
#10 0x00007fffe50aca7e in EDA_3D_CANVAS::Redraw (this=0x2213de0) at /somepath/3d_initial_merge/3d-viewer/3d_draw.cpp:416
#11 0x00007fffe50a9e0a in EDA_3D_CANVAS::OnPaint (this=0x2213de0, event=...) at /somepath/3d_initial_merge/3d-viewer/3d_canvas.cpp:526
#12 0x00007ffff634c43e in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () from /usr/lib/libwx_baseu-3.0.so.0
#13 0x00007ffff64d2a77 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#14 0x00007ffff64d2b6b in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-3.0.so.0
#15 0x00007ffff64d2f28 in wxEvtHandler::TryHereOnly(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#16 0x00007ffff64d2fb3 in wxEvtHandler::ProcessEventLocally(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#17 0x00007ffff64d3015 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#18 0x00007ffff64d2d77 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#19 0x00007ffff7bd4398 in wxGLCanvas::OnInternalIdle() () from /usr/lib/libwx_gtk2u_gl-3.0.so.0
#20 0x00007ffff6e5d389 in wxWindowBase::SendIdleEvents(wxIdleEvent&) () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#21 0x00007ffff6e5d3d8 in wxWindowBase::SendIdleEvents(wxIdleEvent&) () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#22 0x00007ffff6cd363f in wxFrame::SendIdleEvents(wxIdleEvent&) () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#23 0x00007ffff6e5d3d8 in wxWindowBase::SendIdleEvents(wxIdleEvent&) () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#24 0x00007ffff6cd363f in wxFrame::SendIdleEvents(wxIdleEvent&) () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#25 0x00007ffff6d1a37d in wxAppBase::ProcessIdle() () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#26 0x00007ffff6c25cfe in wxApp::DoIdle() () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#27 0x00007ffff6c25de3 in ?? () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#28 0x00007ffff2363c7a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#29 0x00007ffff2364020 in ?? () from /usr/lib/libglib-2.0.so.0
#30 0x00007ffff2364342 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#31 0x00007ffff375e787 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#32 0x00007ffff6c46165 in wxGUIEventLoop::DoRun() () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#33 0x00007ffff638e223 in wxEventLoopBase::Run() () from /usr/lib/libwx_baseu-3.0.so.0
#34 0x00007ffff6353306 in wxAppConsoleBase::MainLoop() () from /usr/lib/libwx_baseu-3.0.so.0
#35 0x000000000042045f in APP_SINGLE_TOP::OnRun (this=0x758c40) at /somepath/3d_initial_merge/common/single_top.cpp:173
#36 0x00007ffff63e01e0 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-3.0.so.0
#37 0x000000000041c962 in main (argc=1, argv=0x7fffffffda18) at /somepath/3d_initial_merge/common/single_top.cpp:210
References