Pcbnew crashes on drag in GAL canvas

Bug #1380620 reported by Karl Zeilhofer
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
High
Unassigned

Bug Description

I was not able to track down the exact action, when pcbnew crashes. It is not really reproduceable.
But it allways happend, when i wanted to drag vias or traces with the shortcut 'G'.
I recorded a video, which you can see here: https://youtu.be/wCsSayC-kGY

Application: kicad pcbnew
Version: (2014-08-05 BZR 5054)-product Release build
wxWidgets: Version 2.8.12 (release,Unicode,compiler with C++ ABI 1002,GCC 4.8.2,wx containers,compatible with 2.6)
Platform: Linux 3.13.0-30-generic x86_64, 64 bit, Little endian, wxGTK
Boost version: 1.54.0
         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

Related branches

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Hi Karl,

I am getting "This video is private. If the owner of this video has granted you access, please sign in."
Is is specific to a board or happens with any file?

Regards,
Orson

Revision history for this message
Karl Zeilhofer (zeilhofer) wrote :

Hi Orson,

excuese me, i set the wrong permission. I didn't want it to be pulic (it could be understood as bad news). Now it is "not listed". You should be able to view it now.

I did not try it with another board. Don't have the time now.
It seemed to me, that it only happens, when you are working rather fast - could this be?

kind regards,
Karl

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

That is no problem. Thanks for recording the video, it always eases the process of reproducing a bug.
Aside from the problem, I am wondering - why do you press 'W'? Is it the hot key responsible for the Push and Shove router activation? If so, did you remap it or was it like that since the beginning?

We need to find a way to reproduce the bug or gather some more information:
1) Could you send us the .kicad_pcb file that exposes the bug? I would simply try to follow steps shown on the video.
2) Do you build the debug version? If so, running KiCad under gdb will allow you to obtain the backtrace that is a great help in debugging.

Regards,
Orson

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

I have just noticed that you are using revision 5054. Since that time there were a few bugfixes to both OpenGL canvas and Push and Shove router, so there is a chance that the issue is already solved.

Regards,
Orson

Revision history for this message
Karl Zeilhofer (zeilhofer) wrote :

The Short cut 'W' is for adding trace.
you can see it in the video, that the corresponding toolbutton gets pressed.

I remaped some commands.
here my list of shortcuts (copied from the menu Preferences -> Hotkeys -> List current Hotkeys):
I have to admit, that the shortcuts 1,2,3,4 (switching between layers) do not work. I don't knwo why.

Hotkeys List
Help (this window)
  ?
Zoom In
  F1
Zoom Out
  F2
Zoom Redraw
  F3
Zoom Center
  F4
Zoom Auto
  Home
Switch Units
  Ctrl+U
Reset Local Coordinates
  Space
Set Grid Origin
  S
Reset Grid Origin
  Z
Undo
  Ctrl+Z
Redo
  Ctrl+Y
Mouse Left Click
  Return
Mouse Left DClick
  End
Track Display Mode
  K
Delete Track or Footprint
  Del
Delete track segment
  BkSp
Add new track
  W
Add Through Via
  V
Add Blind/Buried Via
  Alt+V
Add MicroVia
  Ctrl+V
Sel Layer and Add Through Via
  <
Sel Layer and Add Blind/Buried Via
  Alt+<
Switch Track Posture
  /
Drag track keep slope
  #
Place Item
  P
Copy Item
  C
Move Item
  M
Flip Item
  F
Rotate Item
  R
Drag Footprint
  G
Get and Move Footprint
  T
Lock/Unlock Footprint
  L
Save board
  Ctrl+S
Save board as
  Ctrl+Shift+S
Load board
  Ctrl+L
Find Item
  Ctrl+F
Edit Item
  E
Switch to Copper (B.Cu) layer
  1
Switch to Inner layer 1
  2
Switch to Inner layer 2
  3
Switch to Inner layer 3
  F7
Switch to Inner layer 4
  F8
Switch to Inner layer 5
  F9
Switch to Inner layer 6
  F10
Switch to Component (F.Cu) layer
  4
Switch to Next Layer
  +
Switch to Previous Layer
  -
Add Module
  O
Switch Track Width To Next
  F
Switch Track Width To Previous
  D
Switch Grid To Fast Grid1
  Alt+1
Switch Grid To Fast Grid2
  Alt+2
Switch Grid To Next
  `
Switch Grid To Previous
  Ctrl+`
Record Macro 0
  Ctrl+0
Call Macro 0
  0
Record Macro 1
  Ctrl+1
Call Macro 1
  J
Record Macro 2
  Ctrl+2
Call Macro 2
  J
Record Macro 3
  Ctrl+3
Call Macro 3
  J
Record Macro 4
  Ctrl+4
Call Macro 4
  J
Record Macro 5
  Ctrl+5
Call Macro 5
  5
Record Macro 6
  Ctrl+6
Call Macro 6
  6
Record Macro 7
  Ctrl+7
Call Macro 7
  7
Record Macro 8
  Ctrl+8
Call Macro 8
  8
Record Macro 9
  Ctrl+9
Call Macro 9
  9
Switch Highcontrast mode
  H
Switch to default canvas
  F9
Switch to Cairo canvas
  F12
Switch to OpenGL canvas
  F11

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

I am a bit surprised, as W in my case changes the width of a track in the Push and Shove router mode. This might be an indicator of a separate bug. Could you tell me which keyboard layout do you use?
Currently, hot keys remapping using the hot key editor does not work in GAL mode, therefore the only way to change it is to edit the source code.

Revision history for this message
Karl Zeilhofer (zeilhofer) wrote :

I'm using the german-austria keyboard-layout.
very strange. somehow this special remap did work for me. but as said before, other shortcut changes didn't work correctly.

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Hi Karl,

Did you try a newer revision of KiCad? It is really important to know if I should spend time trying to reproduce the bug or work on something else. For the time being, I assume it is fixed, unless someone else confirms it in a newer version.

Regards,
Orson

Changed in kicad:
status: New → Incomplete
Revision history for this message
ro0ter (dorin-chira) wrote :

hi everybody,

i would like to subscribe to this problem. Worse than this, kicad pcbnew actually malformed the kicad_pcb file.

how can i confirm this bug? how can i help you to reproduce it? how can i participate to fix it?

it is very annoying and I can hardly refrain myself from using bad words... besides the fact that it does not have a very well developed component library, it does screw your work from time to time... this is very bad, but I would like to help this software grow.

kindest regards,
ro0ter

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Hi ro0ter,

To fix a problem, we need to find a way to recreate it. If you have any hints how to do it, please tell us. What revision & platform do you use? Please copy the version string from Help menu and paste it here.
Is it possible to get the malformed file? I may try to recover it and at the same time look for traces that could point out the problem.

Regards,
Orson

Revision history for this message
ro0ter (dorin-chira) wrote :

Hello Orson,

Thank you kindly for your quick answer. I have removed the entire project whose pcb I have lost, that`s a 2-hours work. Anyway, as they say, each subsequent version is better and better.

Regarding the crash - I can reproduce that very easily:
OS: Win7 En x64 SP1 inside vmWare Player, 2GB ram
Kicad: build 2014-12-04 BZR 5312 with wxWidgets 3.0.0u, boost C++ (running under wow)

Steps to reproducec:
1. please load the project "some isp adapter"
2. open the pcbnew editor
3. switch to DirectX (press F11)
4. enter trace drawing mode (press x)
5. enter trace dragging (not moving) mode (press g)
6. try to drag any contour trace. ==> CRASH

I can reproduce it over and over again, Should you need assistance, I can have a debug kicad run on my machine and gather the traces.

I really want to look more into kicad, but I do not have the time yet. I will seek ways of building and debugging it. I am a software engineer in industrial automation.

Regards,
ro0ter

Revision history for this message
ro0ter (dorin-chira) wrote :

Well... this is embarrassing... I don`t know how I did it, but here it is: two posts with the same thing. It seems the first one was posted before I named the uploaded file. Sorry for this...

An administrator - please remove first duplicate post and this one as well. It seems I can`t...

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

The attached file is indeed very helpful - now I am able to reproduce the problem and investigate it further. Thank you!
Do not worry about the double posting, it simply happens from time to time.

Regards,
Orson

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
Revision history for this message
Sven D (sven-d) wrote :

The bug was automatically set to expired from Launchpad.

I can still reproduce the bug in revision 5561

Changed in kicad:
status: Expired → New
status: New → Confirmed
Revision history for this message
Benjamin Kohl (ben-819) wrote :

I am using revision 5618 and it still crash frequently when moving vias with the G key and while the Interactive Router is enabled (Open GL).

OS: Windows 7 x64

Revision history for this message
Benjamin Kohl (ben-819) wrote :

Application: kicad
Version: (2015-04-21 BZR 5618)-product Release build
wxWidgets: Version 3.0.0 (debug,wchar_t,compiler with C++ ABI 1002,GCC 4.8.2,wx containers,compatible with 2.8)
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Boost version: 1.54.0
         USE_WX_GRAPHICS_CONTEXT=OFF
         USE_WX_OVERLAY=OFF
         KICAD_SCRIPTING=ON
         KICAD_SCRIPTING_MODULES=ON
         KICAD_SCRIPTING_WXPYTHON=ON
         USE_FP_LIB_TABLE=HARD_CODED_ON
         BUILD_GITHUB_PLUGIN=ON

Changed in kicad:
importance: Undecided → High
Revision history for this message
Chris Pavlina (pavlina-chris) wrote :

Okay, this might be the same bug:
https://bugs.launchpad.net/kicad/+bug/1455272

valgrind report attached to this one, might be helpful.

Changed in kicad:
status: Confirmed → Fix Committed
Jon Neal (reportingsjr)
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.