Gerbview crashes on 'Sort layers if X2 mode' with some gerber files

Bug #1562788 reported by robotarmy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
Unassigned

Bug Description

Gerbers and macos crash info attached

Version Info:
Application: gerbview
Version: (2016-02-18 BZR 6566)-product release build
wxWidgets: Version 3.0.2 (debug,UTF-8,compiler with C++ ABI 1002,GCC 4.2.1,STL containers,compatible with 2.8)
Platform: Mac OS X (Darwin 14.5.0 x86_64), 64 bit, Little endian, wxMac
Boost version: 1.57.0
         USE_WX_GRAPHICS_CONTEXT=ON
         USE_WX_OVERLAY=ON
         KICAD_SCRIPTING=ON
         KICAD_SCRIPTING_MODULES=ON
         KICAD_SCRIPTING_WXPYTHON=ON
         USE_FP_LIB_TABLE=HARD_CODED_ON
         BUILD_GITHUB_PLUGIN=ON

Tags: gerbview
Revision history for this message
robotarmy (ry-white) wrote :
Revision history for this message
robotarmy (ry-white) wrote :

Gerbers attached

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

Hi Robotarmy,

Thank you for your report. I assume you just load all the gerber files in one go. Please answer the following questions:

1. Can you determine if it is just one particular gerber file that is problematic?
2. Does the crash happen immediately after load? That is you have no chance to zoom or pan on the loaded data.

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

For reference I tried to load on linux with:
Application: gerbview
Version: (2016-03-28 BZR 6658, Git 6e61e93)-product, debug build
Libraries: wxWidgets 3.0.2
           libcurl/7.47.1 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 libssh2/1.7.0
Platform: Linux 4.4.5-1-ARCH x86_64, 64 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.60.0
Curl: 7.47.1
KiCad - Compiler: GCC 5.3.0 with C++ ABI 1009
        Settings: 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

And I observed no crash.

Revision history for this message
robotarmy (ry-white) wrote :

OK.

If I select multiple and open everything except for the .drl files and b.cu.gbl, it doesn't crash when I sort X2.

If I select multiple and open everything except for the .drl files, it crashes when I sort X2

If I select multiple and open everything except for the .drl files and b.cu.gbl, then load b.cu.gbl separately, it doesn't crash when I sort X2.

??!

Revision history for this message
Jon Evans (craftyjon) wrote :

Is this bug still reproducible on recent nightlies? I just tried and could not reproduce even using the steps in #5.

Changed in kicad:
importance: Undecided → Critical
Jon Evans (craftyjon)
Changed in kicad:
status: New → Incomplete
no longer affects: kicad/5.0
Changed in kicad:
milestone: none → 5.0.0-rc1
Revision history for this message
jean-pierre charras (jp-charras) wrote :

I am unable to reproduce this issue (tested on W7 and Linux/Kubuntu)
So, because it is a old bug, I am thinking some change has fixed it.

I flag it as fixed.
Please feel free to reopen it if it happens.

Changed in kicad:
status: Incomplete → Fix Committed
Jeff Young (jeyjey)
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.