Bug#905221: kicad: pcbnew immediately crashes after invocation without showing a GUI (failed assertion)

2018-08-06 Thread Carsten Schoenert
Hi,

On Mon, Aug 06, 2018 at 05:07:56PM -0700, Seth Hillbrand wrote:
> Hello Carsten and Werner-
> 
> I've committed a potential fix to this issue to the kicad tree (
> https://git.launchpad.net/kicad/commit/?id=edbf34c2b2965f63537e485d958f00166f01bc5a).
> However, it has only been seen to correct the similar behavior we observed
> earlier and I have been unable to recreate the current issue.
> 
> If you have a chance to apply/test this for the current issue, I'd greatly
> appreciate it.

sure, we can do this. But I'm currently have not the resources to make a
rebuild of the kicad package because I'm on vacation.  I will prepare
something for testing once I"m home again.

Regards
Carsten



Bug#905221: kicad: pcbnew immediately crashes after invocation without showing a GUI (failed assertion)

2018-08-06 Thread Seth Hillbrand
Hello Carsten and Werner-

I've committed a potential fix to this issue to the kicad tree (
https://git.launchpad.net/kicad/commit/?id=edbf34c2b2965f63537e485d958f00166f01bc5a).
However, it has only been seen to correct the similar behavior we observed
earlier and I have been unable to recreate the current issue.

If you have a chance to apply/test this for the current issue, I'd greatly
appreciate it.

Best-
Seth


Bug#905221: kicad: pcbnew immediately crashes after invocation without showing a GUI (failed assertion)

2018-08-06 Thread trollo
Hello Carsten,

Thank you very much for your efforts.
As far as I understand the situation, this is not a segfault, but an intended
abort caused by a failed assertion.

Here is the GDB log:

$ gdb pcbnew
GNU gdb (Debian 8.1-4) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from pcbnew...Reading symbols from
/usr/lib/debug/.build-id/31/c7678192d0f76abd6cdb8bfcd0d8513bfb6572.debug...done.
done.
(gdb) run
Starting program: /usr/bin/pcbnew 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
14:05:44: Debug: Checking template path '/usr/share/kicad/template' exists
14:05:53: Debug: wxColour::Set - couldn't set to colour string 'NONE'
  67 dupes of this message deleted 
14:05:53: Debug: wxColour::Set - couldn't set to colour string 'NONE'
pcbnew: /build/kicad-0u70G2/kicad-5.0.0+dfsg1/include/geometry/rtree.h:1643:
void RTree::Classify(int, int, RTree::PartitionVars*) [with DATATYPE = KIGFX::VIEW_ITEM*;
ELEMTYPE = int; int NUMDIMS = 2; ELEMTYPEREAL = float; int TMAXNODES = 8; int
TMINNODES = 4]: Zusicherung »!a_parVars->m_taken[a_index]« nicht erfüllt.

Program received signal SIGABRT, Aborted.
0xb7fd6bb5 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fd6bb5 in __kernel_vsyscall ()
#1  0xb6653112 in raise () from /lib/i386-linux-gnu/libc.so.6
#2  0xb6654531 in abort () from /lib/i386-linux-gnu/libc.so.6
#3  0xb664b1fb in ?? () from /lib/i386-linux-gnu/libc.so.6
#4  0xb664b259 in __assert_fail () from /lib/i386-linux-gnu/libc.so.6
#5  0xb3e8b701 in RTree::Classify
(this=0x325e980, a_index=0, a_group=1, a_parVars=0xbfffdab0) at
./include/geometry/rtree.h:1422
#6  0xb3e8b8c1 in RTree::PickSeeds
(this=0x325e980, a_parVars=0xbfffdab0) at ./include/geometry/rtree.h:1422
#7  0xb3e8b972 in RTree::ChoosePartition (this=0x325e980, a_parVars=0xbfffdab0, a_minFill=4) at
./include/geometry/rtree.h:1585
#8  0xb3e8bdb3 in RTree::SplitNode
(this=0x325e980, a_node=0x325e990, a_branch=0xbfffdc98, a_newNode=0xbfffdd14)
at ./include/geometry/rtree.h:1087
#9  0xb3e8bf7f in RTree::AddBranch
(this=0x325e980, a_branch=0xbfffdc98, a_node=0x325e990, a_newNode=0xbfffdd14)
at ./include/geometry/rtree.h:1237
#10 0xb3e8c0e9 in RTree::InsertRectRec
(this=0x325e980, a_rect=0xbfffddbc, a_id=@0xbfffdda8: 0x3557e50,
a_node=0x325e990, a_newNode=0xbfffdd14, a_level=0)
at ./include/geometry/rtree.h:1113
#11 0xb3e8c408 in RTree::InsertRect
(this=0x325e980, a_rect=0xbfffddbc, a_id=@0xbfffdda8: 0x3557e50,
a_root=0x325e984, a_level=0) at ./include/geometry/rtree.h:1170
#12 0xb3e860a0 in RTree::Insert
(a_dataId=@0xbfffdda8: 0x3557e50, a_max=, a_min=, this=0x325e980) at ./include/geometry/rtree.h:644
#13 KIGFX::VIEW_RTREE::Insert (aItem=, this=0x325e980) at
./include/view/view_rtree.h:55
#14 KIGFX::VIEW::Add (this=0x1dc8ac0, aItem=,
aDrawPriority=) at ./common/view/view.cpp:355
#15 0xb3cb8f2f in KIGFX::PCB_VIEW::Add(KIGFX::VIEW_ITEM*, int) () at
./pcbnew/pcb_view.cpp:60
#16 0xb38f4f8a in GRID_HELPER::GRID_HELPER(PCB_BASE_FRAME*) () at
./pcbnew/tools/grid_helper.cpp:61
#17 0xb3cf088f in PNS::TOOL_BASE::Reset(TOOL_BASE::RESET_REASON) () at
./include/tool/tool_base.h:188
#18 0xb3cffaae in LENGTH_TUNER_TOOL::Reset (this=0x3543730,
aReason=TOOL_BASE::RUN) at ./pcbnew/router/length_tuner_tool.cpp:125
#19 0xb3ea208f in TOOL_MANAGER::ResetTools (this=0x32eb380,
aReason=TOOL_BASE::RUN) at ./common/tool/tool_manager.cpp:431
#20 0xb3ea2723 in TOOL_MANAGER::InitTools() () at
./common/tool/tool_manager.cpp:465
#21 0xb386478b in PCB_EDIT_FRAME::setupTools() () at
./pcbnew/pcb_edit_frame.cpp:616
#22 0xb38660c7 in PCB_EDIT_FRAME::PCB_EDIT_FRAME(KIWAY*, wxWindow*) () at
./pcbnew/pcb_edit_frame.cpp:457
#23 0xb3516e5b in PCB::IFACE::CreateWindow (this=0xb47f7520 ,
aParent=0x0, aClassId=5, aKiway=0x4b5060 , aCtlBits=1) at
./pcbnew/pcbnew.cpp:113
#24 0x00436257 in KIWAY::Player(FRAME_T, bool, wxTopLevelWindow*) () at
./common/kiway.cpp:329
#25 0x00429882 in PGM_SINGLE_TOP::OnPgmInit() () at ./common/single_top.cpp:322
#26 0x0042cb1e in APP_SINGLE_TOP::OnInit (this=0x4b9430) at
./common/single_top.cpp:128
#27 0xb7513186 in wxEntry(int&, wchar_t**) () from
/usr/lib/i386-linux-gnu/libwx_baseu-3.0.so.0
#28 0xb7513f93 in wxEntry(int&, char**) () from

Bug#905221: kicad: pcbnew immediately crashes after invocation without showing a GUI (failed assertion)

2018-08-04 Thread Carsten Schoenert
Hello Werner,

On Wed, Aug 01, 2018 at 05:11:40PM +0200, Werner Frey wrote:
... 
> pcbnew aborts immediately after invocation on my i386 Debian Buster 
> installation.
> The kicad package was freshly installed for the first time.
> There were no changes to the default configuration of the package.
> When I started pcbnew the very first time a hint window pops up, saying that 
> I am
> using pcbnew the first time using the new search method for footprints. After 
> I
> confirmed the popup by clicking the OK button, the messages below appeared and
> pcbnew aborted. On later invocations the popup window doesn't appear and 
> pcbnew
> aborts immediatly showing the messages below.
> 
> As this behaviour also kills eeschema without any warning  when searching for 
> footprints
> from within eeschema the complete kicad package is unusable for me.

mhh, I don't use i386 based hardware normaly, on amd64 KiCad is working
well so far.
O.k., this is an upstream issue and need to be addressed there. Can you
please make a GDB log of a segfault? You need to install kicad-dbgsym
for this.

https://wiki.debian.org/HowToGetABacktrace

Once we have a GDB log we can open a issue within the upstream bug
tracker.

Regards
Carsten



Bug#905221: kicad: pcbnew immediately crashes after invocation without showing a GUI (failed assertion)

2018-08-01 Thread Werner Frey
Package: kicad
Version: 5.0.0+dfsg1-1
Severity: important
Tags: upstream

Dear Maintainer,

pcbnew aborts immediately after invocation on my i386 Debian Buster 
installation.
The kicad package was freshly installed for the first time.
There were no changes to the default configuration of the package.
When I started pcbnew the very first time a hint window pops up, saying that I 
am
using pcbnew the first time using the new search method for footprints. After I
confirmed the popup by clicking the OK button, the messages below appeared and
pcbnew aborted. On later invocations the popup window doesn't appear and pcbnew
aborts immediatly showing the messages below.

As this behaviour also kills eeschema without any warning  when searching for 
footprints
from within eeschema the complete kicad package is unusable for me.

-
$ pcbnew
16:43:53: Debug: Checking template path '/usr/share/kicad/template' exists
16:43:53: Debug: wxColour::Set - couldn't set to colour string 'NONE'
   ... message repeated 70 times
16:43:53: Debug: wxColour::Set - couldn't set to colour string 'NONE'
pcbnew: /build/kicad-0u70G2/kicad-5.0.0+dfsg1/include/geometry/rtree.h:1643: 
void RTree::Classify(int, int, RTree::PartitionVars*) [with DATATYPE = KIGFX::VIEW_ITEM*; 
ELEMTYPE = int; int NUMDIMS = 2; ELEMTYPEREAL = float; int TMAXNODES = 8; int 
TMINNODES = 4]: Zusicherung !a_parVars->m_taken[a_index] nicht erfllt.
Abgebrochen
-

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 4.9.116.phobos (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), 
LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages kicad depends on:
ii  libc6   2.27-5
ii  libcairo2   1.15.10-3
ii  libcurl47.60.0-2
ii  libgcc1 1:8.1.0-12
ii  libglew2.0  2.0.0-6
ii  libglu1-mesa [libglu1]  9.0.0-2.1
ii  libglx0 1.0.0+git20180308-3
ii  libgomp18.1.0-12
ii  libopengl0  1.0.0+git20180308-3
ii  libpixman-1-0   0.34.0-2
ii  libpython2.72.7.15-3
ii  libssl1.1   1.1.0h-4
ii  libstdc++6  8.1.0-12
ii  libwxbase3.0-0v53.0.4+dfsg-4
ii  libwxgtk3.0-0v5 3.0.4+dfsg-4
ii  python  2.7.15-3
ii  python-wxgtk3.0 3.0.2.0+dfsg-8

Versions of packages kicad recommends:
ii  kicad-demos  5.0.0+dfsg1-1
ii  kicad-libraries  5.0.0+dfsg1-1
pn  xsltproc 

Versions of packages kicad suggests:
ii  extra-xdg-menus   1.0-4
ii  kicad-doc-en  5.0.0+dfsg1-1
pn  kicad-packages3d  

-- no debconf information