FP EDITOR : occasionally CRASH at view 3D following filename editing

Bug #1506864 reported by jbdw
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
High
Unassigned

Bug Description

/*
OS : Windows 10
Application: kicad
Version: (2015-10-14 BZR 6269, Git 3ca8244)-product release build
wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1009,GCC 5.2.0,wx containers,compatible with 2.8)
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
*/

CRASH ... occasionally, not always. It happens at click 3D Viewer following edit the filename ( at fp properties ).

Revision history for this message
jbdw (jbdwiyono) wrote :

Also in FP EDITOR :
- CRASH occasionally at "move item exactly"

Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1506864] Re: FP EDITOR : occasionally CRASH at view 3D following filename editing

Please open a separate bug report for this bug since it appears to have
nothing to do with the bug report. Specifying more than one bug in a
report makes it difficult to link the bug to a branch containing the fix
and harder to close out the bug report.

On 10/16/2015 10:32 AM, jbdw wrote:
> Also in FP EDITOR :
> - CRASH occasionally at "move item exactly"
>
> ** Attachment added: "KICAD - BUG REPORT - CRASH AT FP - MOVING EXACTLY.jpg"
> https://bugs.launchpad.net/kicad/+bug/1506864/+attachment/4496892/+files/KICAD%20-%20BUG%20REPORT%20-%20CRASH%20AT%20FP%20-%20MOVING%20EXACTLY.jpg
>

Revision history for this message
jbdw (jbdwiyono) wrote :

Wayne,
OK, I'll open it as separate report. Thanks.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

Please include the steps that you used to produce the crash and if possible the footprint file. The more you can narrow down the step to reproduce the error, the easier it will be for us to debug it. I noticed that in your second crash report that you are using the same footprint. Is it possible that there is something in this footprint that is causing the issue.

Changed in kicad:
importance: Undecided → High
Revision history for this message
jbdw (jbdwiyono) wrote :
Download full text (9.6 KiB)

Well,

This' happenned not only in one footprint. As could be seen in the screenshot below, this happened in the other footprint. Anyway, attached here both footprints ( the Transformer_EC40_16Pin_5.08_35.56_Horizontal.kicad_mod and Bornier.V2_P3_5.08.kicad_mod ). Both from different pretty folder.

Regarding the steps, as I said previously, it happened occasionally. Usually, mostly, this case didnt happened. The steps as shown in following screenshot.
1). I have temporal library folder, said : d:/github/jbd-kicadlib/modules/packages3d/terminal_blocks for my experiment the 3d models, before it copied to the Kicad default library ( said : C:\Program X\KiCad\share\kicad\modules\packages3d ).
This means that the 3d model doesnt exist yet in default library folder.

2). To make suit to the default path, the I did edit the filename by remove the temporal folder path as shown in s/c 2 and 3.
Klik OK as usual. No problem up to this point.

3). Next, just to make sure, I did view 3d by klik 3D Viewer ..... and occasionally, not always, not repeatable , the Kicad goes crashing.

Thanks.

// FOOTPRINT LISTS

//1 : Transformer_EC40_16Pin_5.08_35.56_Horizontal.kicad_mod
//
(module Transformer_EC40_16Pin_5.08_35.56_Horizontal (layer F.Cu) (tedit 5620F168)
  (descr Transformer_EC40_16Pin_5.08_35.56_Horizontal.jpg)
  (tags transformer,transformer-16pin,ec40-16pin)
  (fp_text reference REF** (at 17.78 -42.545) (layer F.SilkS)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_text value Transformer_EC40_16Pin_5.08_35.56_Horizontal (at 17.78 7.62) (layer F.Fab)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_line (start -3.302 -41.402) (end 38.862 -41.402) (layer F.CrtYd) (width 0.05))
  (fp_line (start 38.862 -41.402) (end 38.862 5.842) (layer F.CrtYd) (width 0.05))
  (fp_line (start 38.862 5.842) (end -3.302 5.7658) (layer F.CrtYd) (width 0.05))
  (fp_line (start -3.302 5.7658) (end -3.302 -41.402) (layer F.CrtYd) (width 0.05))
  (fp_text user 16 (at 0 -39.37) (layer F.SilkS)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_text user 9 (at 35.56 -39.37) (layer F.SilkS)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_text user 8 (at 35.56 3.81) (layer F.SilkS)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_text user 1 (at 0 3.81) (layer F.SilkS)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_line (start 10.16 -16.51) (end 25.4 -16.51) (layer F.SilkS) (width 0.15))
  (fp_line (start 10.16 -19.05) (end 25.4 -19.05) (layer F.SilkS) (width 0.15))
  (fp_arc (start 22.86 -22.86) (end 25.4 -22.86) (angle 90) (layer F.SilkS) (width 0.15))
  (fp_arc (start 22.86 -22.86) (end 22.86 -20.32) (angle 90) (layer F.SilkS) (width 0.15))
  (fp_arc (start 17.78 -22.86) (end 20.32 -22.86) (angle 90) (layer F.SilkS) (width 0.15))
  (fp_arc (start 17.78 -22.86) (end 17.78 -20.32) (angle 90) (layer F.SilkS) (width 0.15))
  (fp_arc (start 12.7 -22.86) (end 15.24 -22.86) (angle 90) (layer F.SilkS) (width 0.15))
  (fp_arc (start 12.7 -22.86) (end 12.7 -20.32) (angle 90) (layer F.SilkS) (width 0.15))
  (fp_arc (start 22.86 -12.7) (end 22.86 -15.24) (angle 90) (layer F.SilkS) (width 0.15))
  (fp_arc (start 22.86 -1...

Read more...

Revision history for this message
jbdw (jbdwiyono) wrote :

And yet addtitional note :

This also occasionally, not alway, not always repeatable :
- on SAVE FOOTPRINT IN ACTIVE LIBRARY ( Ctlr-S ) , an err message prompted as shown in the screenshot here.

Revision history for this message
jbdw (jbdwiyono) wrote :

Additional note again , still related to this case :

If above case happened, then when I did list the footprint in the library file, not all the existing files displayed ( pict 4).
That's why an above err.message prompted.

Only if the Kicad restarted, then it displayed the complete files on the library, it backs to normal ( pict 5 )

Thanks, and if any other required infos pls let me know.

Revision history for this message
jbdw (jbdwiyono) wrote :
Revision history for this message
jbdw (jbdwiyono) wrote :

Wayne and Nick,

I found this case still happened in : Version: (2015-10-16 BZR 6271, Git 9aba2f2)-product release build.

- again, it is not alway reproduceable ... but sometimes , occasionally happened.
- the step still similiar, begining form editing the 3dmodel path dialogues. In my case, I did modify or remove my test folder path from : D:/GITHUB/JBD-KICADLIB/modules/packages3d/Terminal_Blocks.3dshapes/Bornier.V1_Unit.wrl
to : Terminal_Blocks.3dshapes/Bornier.V1_Unit.wrl

Additional note : Since this my 3dmodel test, the files "Bornier.V1_Unit.kicad_mod" and "Bornier.V1_Unit.wrl" reside ini my test folder and have not being moved to default library folder.

Revision history for this message
jbdw (jbdwiyono) wrote :

For futrther investigation, here is the Bornier.V1_Unit.kicad_mod

(module Bornier.V1_Unit (layer F.Cu) (tedit 562484D7)
  (descr Bornier.V1_Unit.jpg)
  (tags "DEV, Bornier")
  (fp_text reference REF** (at 0 -6.985) (layer F.SilkS)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_text value Bornier.V1_Unit (at 0 5.08) (layer F.Fab)
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_line (start -2.667 -5.207) (end 2.667 -5.207) (layer F.CrtYd) (width 0.05))
  (fp_line (start 2.667 -5.207) (end 2.667 3.175) (layer F.CrtYd) (width 0.05))
  (fp_line (start 2.667 3.175) (end -2.667 3.175) (layer F.CrtYd) (width 0.05))
  (fp_line (start -2.667 3.175) (end -2.667 -5.207) (layer F.CrtYd) (width 0.05))
  (fp_line (start 2.54 -5.08) (end 2.54 3.048) (layer F.SilkS) (width 0.15))
  (fp_line (start -2.54 3.048) (end -2.54 -5.08) (layer F.SilkS) (width 0.15))
  (fp_line (start -2.54 -5.08) (end 2.54 -5.08) (layer F.SilkS) (width 0.15))
  (fp_line (start 2.54 3.048) (end -2.54 3.048) (layer F.SilkS) (width 0.15))
  (pad 1 thru_hole rect (at 0 0) (size 2.54 2.54) (drill 1.3) (layers *.Cu *.Mask F.SilkS))
  (model Terminal_Blocks.3dshapes/Bornier.V1_Unit.wrl
    (at (xyz 0 0 0))
    (scale (xyz 1 1 1))
    (rotate (xyz 0 0 0))
  )
)

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :
Download full text (10.8 KiB)

On 10/16/2015 11:30 PM, jbdw wrote:
> Well,
>
> This' happenned not only in one footprint. As could be seen in the
> screenshot below, this happened in the other footprint. Anyway, attached
> here both footprints ( the
> Transformer_EC40_16Pin_5.08_35.56_Horizontal.kicad_mod and
> Bornier.V2_P3_5.08.kicad_mod ). Both from different pretty folder.
>
> Regarding the steps, as I said previously, it happened occasionally. Usually, mostly, this case didnt happened. The steps as shown in following screenshot.
> 1). I have temporal library folder, said : d:/github/jbd-kicadlib/modules/packages3d/terminal_blocks for my experiment the 3d models, before it copied to the Kicad default library ( said : C:\Program X\KiCad\share\kicad\modules\packages3d ).
> This means that the 3d model doesnt exist yet in default library folder.

What did you copy and where did you copy it too? Step 1 is not clear.

>
> 2). To make suit to the default path, the I did edit the filename by remove the temporal folder path as shown in s/c 2 and 3.
> Klik OK as usual. No problem up to this point.

What file name did you edit? The 3D model file name or some other file
name? You need to be clear.

>
> 3). Next, just to make sure, I did view 3d by klik 3D Viewer ..... and
> occasionally, not always, not repeatable , the Kicad goes crashing.

You really need to do a better job of explaining the steps you took to
produce the bug. Your steps should be simple and clear like this:

1) Open footprint editor.
2) Open fooprint foo from library bar.
3) Open the edit footprint properties dialog.
4) Change 3D model file name from foo.wrl to bar.wrl.
5) Click OK button, this is when crash occurred.

I cannot duplicate this bug with the steps you provided. Also, where
you using the OpenGL canvas?

>
>
> Thanks.
>
> // FOOTPRINT LISTS
>
> //1 : Transformer_EC40_16Pin_5.08_35.56_Horizontal.kicad_mod
> //
> (module Transformer_EC40_16Pin_5.08_35.56_Horizontal (layer F.Cu) (tedit 5620F168)
> (descr Transformer_EC40_16Pin_5.08_35.56_Horizontal.jpg)
> (tags transformer,transformer-16pin,ec40-16pin)
> (fp_text reference REF** (at 17.78 -42.545) (layer F.SilkS)
> (effects (font (size 1 1) (thickness 0.15)))
> )
> (fp_text value Transformer_EC40_16Pin_5.08_35.56_Horizontal (at 17.78 7.62) (layer F.Fab)
> (effects (font (size 1 1) (thickness 0.15)))
> )
> (fp_line (start -3.302 -41.402) (end 38.862 -41.402) (layer F.CrtYd) (width 0.05))
> (fp_line (start 38.862 -41.402) (end 38.862 5.842) (layer F.CrtYd) (width 0.05))
> (fp_line (start 38.862 5.842) (end -3.302 5.7658) (layer F.CrtYd) (width 0.05))
> (fp_line (start -3.302 5.7658) (end -3.302 -41.402) (layer F.CrtYd) (width 0.05))
> (fp_text user 16 (at 0 -39.37) (layer F.SilkS)
> (effects (font (size 1 1) (thickness 0.15)))
> )
> (fp_text user 9 (at 35.56 -39.37) (layer F.SilkS)
> (effects (font (size 1 1) (thickness 0.15)))
> )
> (fp_text user 8 (at 35.56 3.81) (layer F.SilkS)
> (effects (font (size 1 1) (thickness 0.15)))
> )
> (fp_text user 1 (at 0 3.81) (layer F.SilkS)
> (effects (font (size 1 1) (thickness 0.15)))
> )
> (fp_line (start 10.16 -16.51) (end 25.4 -16.51...

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

Where are the 3D model files? I'll need those as well. Please attach
files. I'm not going to waste time copying the inline file contents
into an editor to create the files.

On 10/19/2015 2:20 AM, jbdw wrote:
> For futrther investigation, here is the Bornier.V1_Unit.kicad_mod
>
> (module Bornier.V1_Unit (layer F.Cu) (tedit 562484D7)
> (descr Bornier.V1_Unit.jpg)
> (tags "DEV, Bornier")
> (fp_text reference REF** (at 0 -6.985) (layer F.SilkS)
> (effects (font (size 1 1) (thickness 0.15)))
> )
> (fp_text value Bornier.V1_Unit (at 0 5.08) (layer F.Fab)
> (effects (font (size 1 1) (thickness 0.15)))
> )
> (fp_line (start -2.667 -5.207) (end 2.667 -5.207) (layer F.CrtYd) (width 0.05))
> (fp_line (start 2.667 -5.207) (end 2.667 3.175) (layer F.CrtYd) (width 0.05))
> (fp_line (start 2.667 3.175) (end -2.667 3.175) (layer F.CrtYd) (width 0.05))
> (fp_line (start -2.667 3.175) (end -2.667 -5.207) (layer F.CrtYd) (width 0.05))
> (fp_line (start 2.54 -5.08) (end 2.54 3.048) (layer F.SilkS) (width 0.15))
> (fp_line (start -2.54 3.048) (end -2.54 -5.08) (layer F.SilkS) (width 0.15))
> (fp_line (start -2.54 -5.08) (end 2.54 -5.08) (layer F.SilkS) (width 0.15))
> (fp_line (start 2.54 3.048) (end -2.54 3.048) (layer F.SilkS) (width 0.15))
> (pad 1 thru_hole rect (at 0 0) (size 2.54 2.54) (drill 1.3) (layers *.Cu *.Mask F.SilkS))
> (model Terminal_Blocks.3dshapes/Bornier.V1_Unit.wrl
> (at (xyz 0 0 0))
> (scale (xyz 1 1 1))
> (rotate (xyz 0 0 0))
> )
> )
>

Revision history for this message
jbdw (jbdwiyono) wrote :

Bornier.V1_Unit.kicad_mod

Revision history for this message
jbdw (jbdwiyono) wrote :

Bornier.V1_Unit.wrl

Revision history for this message
jbdw (jbdwiyono) wrote :

Bornier.V1_Unit.wings

Revision history for this message
jbdw (jbdwiyono) wrote :

I added 3 additional related files sample which made my Kicad installation crashed.
Well, very sorry if these bug infos has been wasting your time.
Thanks.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

On 10/19/2015 5:08 PM, jbdw wrote:
> Bornier.V1_Unit.wings
>
> ** Attachment added: "Bornier.V1_Unit.wings"
> https://bugs.launchpad.net/kicad/+bug/1506864/+attachment/4500616/+files/Bornier.V1_Unit.wings
>

The 3D viewer cannot read wings files. They must be converted to wrl
(VRML) files. Did you actually attempt to assign a wings file to a
footprint? If so, the wrl parser should have complained about the file
format. I should not have crashed. If this is what you did, it could
be a vital piece of information.

Revision history for this message
jbdw (jbdwiyono) wrote :

Sir,
Of course I knew that 3dviewer cannot read the wings files. So I didn't assign the WINGS to footprint.
Take a look the WRL file attached above which is assigned to the footprint.

What I did was : just removed the unnecessarily "relative-path" , save it, viewing 3d ... and crash. And as I ve explained in previous notes, that it happened ocassionally, not always happened, unpredictable .... but sometimes happened.

Revision history for this message
jbdw (jbdwiyono) wrote :

Next additional info :
// now in Version: (2015-10-22 BZR 6274, Git d63c017)

In "3D Shape Names -> Edit Filename "
- edit filename ( in this example I just edited TO247_V1_Sub_Horizontal to TO247_V1_Sup_Horizontal )
- press OK
- CRASH Messsage
- Press Debug Tab , in here is the message.

Again, occasional, not always, not always repeated.

Revision history for this message
jbdw (jbdwiyono) wrote :

Next Additional Info :
// Version: (2015-10-22 BZR 6274, Git d63c017)

Text editing @ Footprint text properties also occasionally CRASH.
Not always repeatable.

Attached related err msg screenshot.

Revision history for this message
jbdw (jbdwiyono) wrote :

Next Additional Info :
// Version: (2015-10-22 BZR 6274, Git d63c017)

I intentionally report this bugs in this thread since it is similar and related case with previous bugs.

CRASH in this footprint editor : at UNDO DRAWING LINE.

Revision history for this message
jbdw (jbdwiyono) wrote :

Next Additional Info :
// Version: (2015-10-22 BZR 6274, Git d63c017)

I intentionally report this bugs in this thread since it is similar and related case with previous bugs.

CRASH in this footprint editor : at UNDO DRAWING LINE.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

You still have not answered my question about which canvas (default, cairo, or opengl) you are using during your editing sessions. You also need to copy the full build version information in your bug reports. The version information you are providing is incomplete. The instructions on how to copy the KiCad version information can be found at http://kicad-pcb.org/help/report-a-bug/.

Revision history for this message
jbdw (jbdwiyono) wrote :

Hi,

I have informed about the copy infos in the first report above .
Here is again if you have not read it.

1).
Application: kicad
Version: (2015-10-22 BZR 6274, Git d63c017)-product release build
wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1009,GCC 5.2.0,wx containers,compatible with 2.8)
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Boost version: 1.57.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

MY OS IS WINDOWS 10.

2). I dont know about default, caoiro or opengl. I have not yet open the PCBNEW EDITOR.
What I did , directly open FPEditor.

3). Very sorry. I just want to inform a problem I found. I can not help further since I am not a programmer.

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

Zoom in on the canvas such that you can see the grid. Is it dots or
straight lines? If dots it is the default canvas. If it is lines it is
likely to be the opengl canvas. Try to switch to another and see if it
changes.

2015-10-27 18:39 GMT+01:00 jbdw <email address hidden>:
> Hi,
>
> I have informed about the copy infos in the first report above .
> Here is again if you have not read it.
>
> 1).
> Application: kicad
> Version: (2015-10-22 BZR 6274, Git d63c017)-product release build
> wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1009,GCC 5.2.0,wx containers,compatible with 2.8)
> Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
> Boost version: 1.57.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
>
> MY OS IS WINDOWS 10.
>
>
> 2). I dont know about default, caoiro or opengl. I have not yet open the PCBNEW EDITOR.
> What I did , directly open FPEditor.
>
> 3). Very sorry. I just want to inform a problem I found. I can not help
> further since I am not a programmer.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1506864
>
> Title:
> FP EDITOR : occasionally CRASH at view 3D following filename editing
>
> Status in KiCad:
> New
>
> Bug description:
> /*
> OS : Windows 10
> Application: kicad
> Version: (2015-10-14 BZR 6269, Git 3ca8244)-product release build
> wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1009,GCC 5.2.0,wx containers,compatible with 2.8)
> Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
> */
>
>
> CRASH ... occasionally, not always. It happens at click 3D Viewer following edit the filename ( at fp properties ).
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1506864/+subscriptions

Revision history for this message
jbdw (jbdwiyono) wrote :

Thank you Nick.

If like that, so far I did always in default canvas since I never saw "straight lines" while heavy zoomed.

Revision history for this message
jbdw (jbdwiyono) wrote :

Well, I'd try with cairo and opengl canvas to know if any crash as well in those canvas.

Revision history for this message
jbdw (jbdwiyono) wrote :

I d like to know is there any "steps log file" so that the user just send the latest steps before any error or crash. Pls advise the filename if any in the KiCad system.

Revision history for this message
xzcvczx (xzcvczx) wrote :

is this still ocurring for anyone, cant say i have seen it in at least a couple of months

Revision history for this message
jbdw (jbdwiyono) wrote :

@ Simon :
It's okay now, not anymore.

xzcvczx (xzcvczx)
Changed in kicad:
status: New → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.