Assertion failed when moving a large block

Bug #1650959 reported by henrik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Expired
Undecided
Unassigned

Bug Description

Moving a large block of components (>100) and traces in OpenGL canvas triggers an assertion failure:

common/base_struct.cpp(115): assert "false" failed in Clone(): Clone not implemented in derived class NETINFO_ITEM. Bad programmer!

I couldn't duplicate the bug when doing the same selection again after restarting pcbnew. Before it I had updated the PCB from schematic few times, routed some traces and moved some components.

Pressing continue on the message window triggers the following assertion:

Backtrace:

#0 0x00007ffff59b9428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff59bb02a in __GI_abort () at abort.c:89
#2 0x00007ffff59b1bd7 in __assert_fail_base (fmt=<optimised out>, assertion=assertion@entry=0x7fffb7684ec8 "!!aCopy == ( ( aType & CHT_TYPE ) == CHT_MODIFY )",
    file=file@entry=0x7fffb7684df0 "common/commit.cpp", line=line@entry=141,
    function=function@entry=0x7fffb7684fc0 <COMMIT::makeEntry(EDA_ITEM*, CHANGE_TYPE, EDA_ITEM*)::__PRETTY_FUNCTION__> "virtual void COMMIT::makeEntry(EDA_ITEM*, CHANGE_TYPE, EDA_ITEM*)") at assert.c:92
#3 0x00007ffff59b1c82 in __GI___assert_fail (assertion=0x7fffb7684ec8 "!!aCopy == ( ( aType & CHT_TYPE ) == CHT_MODIFY )", file=0x7fffb7684df0 "common/commit.cpp", line=141,
    function=0x7fffb7684fc0 <COMMIT::makeEntry(EDA_ITEM*, CHANGE_TYPE, EDA_ITEM*)::__PRETTY_FUNCTION__> "virtual void COMMIT::makeEntry(EDA_ITEM*, CHANGE_TYPE, EDA_ITEM*)") at assert.c:101
#4 0x00007fffb7324b8b in COMMIT::makeEntry (this=0x8225900, aItem=0xa6753f0, aType=CHT_MODIFY, aCopy=0x0) at common/commit.cpp:141
#5 0x00007fffb7324849 in COMMIT::Stage (this=0x8225900, aItem=0xa6753f0, aChangeType=CHT_MODIFY) at common/commit.cpp:70
#6 0x00007fffb6aef69a in COMMIT::Modify (this=0x8225900, aItem=0xa6753f0) at include/commit.h:105
#7 0x00007fffb6d94a03 in EDIT_TOOL::Main (this=0x877dae0, aEvent=...) at pcbnew/tools/edit_tool.cpp:217
#8 0x00007fffb6d99f6e in std::_Mem_fn_base<int (EDIT_TOOL::*)(TOOL_EVENT const&), true>::operator()<TOOL_EVENT const&, void> (this=0x7ef6fc0, __object=0x877dae0) at /usr/include/c++/5/functional:600
#9 0x00007fffb6d99dc0 in std::_Bind<std::_Mem_fn<int (EDIT_TOOL::*)(TOOL_EVENT const&)> (EDIT_TOOL*, std::_Placeholder<1>)>::__call<int, TOOL_EVENT const&, 0ul, 1ul>(std::tuple<TOOL_EVENT const&>&&, std::_Index_tuple<0ul, 1ul>) (this=0x7ef6fc0, __args=<unknown type in /usr/local/bin/_pcbnew.kiface, CU 0x2e33ca7, DIE 0x2eb9ee6>) at /usr/include/c++/5/functional:1074
#10 0x00007fffb6d99972 in std::_Bind<std::_Mem_fn<int (EDIT_TOOL::*)(TOOL_EVENT const&)> (EDIT_TOOL*, std::_Placeholder<1>)>::operator()<TOOL_EVENT const&, int>(TOOL_EVENT const&) (this=0x7ef6fc0)
    at /usr/include/c++/5/functional:1133
#11 0x00007fffb6d995c9 in std::_Function_handler<int (TOOL_EVENT const&), std::_Bind<std::_Mem_fn<int (EDIT_TOOL::*)(TOOL_EVENT const&)> (EDIT_TOOL*, std::_Placeholder<1>)> >::_M_invoke(std::_Any_data const&, TOOL_EVENT const&) (__functor=..., __args#0=...) at /usr/include/c++/5/functional:1857
#12 0x00007fffb73a2fb7 in std::function<int (TOOL_EVENT const&)>::operator()(TOOL_EVENT const&) const (this=0x6dc8098, __args#0=...) at /usr/include/c++/5/functional:2267
#13 0x00007fffb73a0403 in COROUTINE<int, TOOL_EVENT const&>::callerStub (aData=140736244436496) at include/tool/coroutine.h:399
#14 0x00007fffd49f4d21 in make_fcontext () from /usr/lib/x86_64-linux-gnu/libboost_context.so.1.58.0

Version information:

Application: kicad
Version: (2016-12-16 revision f631ae2)-master, debug 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-47-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
                  BUILD_GITHUB_PLUGIN=ON
                  KICAD_USE_SCH_IO_MANAGER=OFF
                  KICAD_USE_OCE=OFF

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

If anyone has reproducible steps for this, please post them here. Thanks!

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