Pcbnew crash on OpenGL

Bug #1473786 reported by Alessandro Fabilli on 2015-07-12
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Medium
Unassigned

Bug Description

When in Pcbnew I select from menù: "Wiev->Switch canvas to OpenGL" the program crash.
I did more tests but the result is always the same.

I need switch to OpenGL for use interactive routing.

Application: kicad
Version: (2015-07-11 BZR 5925, Git c291b88)-product release build
wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1002,GCC 4.9.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.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

Maciej Sumiński (orsonmmz) wrote :

Hi Alessandro,

Do you get any error message? Has it worked previously?

Regards,
Orson

Not any message except the Windows crash reporter dialog.
Previously I worked regularly in default mode.

I tested the KiCad in another PC and the crash does not occur.

Regards.

tags: added: cern gal
Maciej Sumiński (orsonmmz) wrote :

Alessandro,

What video card do you use? Would you try to upgrade the drivers?

Regards,
Orson

Hi Orson,

my Extensa 5635Z have a "Mobile Intel 4 Series Express Chipset Family",
Graphics Media Accelerator (GMA) 4500M up to 796 MB DVMT. The driver are
updated.

If use the canvas CAIRO Kicad work.
---

 Alessandro Fabilli

-----------------------------------------------------------------------------------------------------------
 [3]

 web: www.cemitonline.com [4]
 mail: <email address hidden>

-----------------------------------------------------------------------------------------------------------
 Le informazioni contenute nella presente comunicazione ed i relativi
allegati possono essere riservate e sono, comunque, destinate
 esclusivamente alle persone o alla Società sopra indicati.La
diffusione, distribuzione e/o copiatura del documento trasmesso da parte
 di qualsiasi soggetto diverso dal destinatario è proibita, sia ai sensi
dell'art. 616 c.p., che ai sensi del D.Lgs. n. 196/2003.
 Se avete ricevuto questo messaggio per errore, vi preghiamo di
cancellarlo e darcene notizia a mezzo fax o e-mail.

Il 2015-08-10 14:36 Maciej Sumiński ha scritto:

> Alessandro,
>
> What video card do you use? Would you try to upgrade the drivers?
>
> Regards,
> Orson
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1473786 [1]
>
> Title:
> Pcbnew crash on OpenGL
>
> Status in KiCad:
> New
>
> Bug description:
> When in Pcbnew I select from menù: "Wiev->Switch canvas to OpenGL" the program crash.
> I did more tests but the result is always the same.
>
> I need switch to OpenGL for use interactive routing.
>
> Application: kicad
> Version: (2015-07-11 BZR 5925, Git c291b88)-product release build
> wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1002,GCC 4.9.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.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
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1473786/+subscriptions [2]

Links:
------
[1] https://bugs.launchpad.net/bugs/1473786
[2] https://bugs.launchpad.net/kicad/+bug/1473786/+subscriptions
[3] http://intranet.cemitonline.com/www.cemitonline.com
[4] http://www.cemitonline.com

Maciej Sumiński (orsonmmz) wrote :

Could you download glew-1.13.0-win32.zip from [1] and run bin/Release/Win32/glewinfo.exe? It should generate a report on your video card capabilities, I would be glad to receive it.

1. http://sourceforge.net/projects/glew/files/glew/1.13.0/

I ran the test by following your instructions, the result is attached.
I tryed again to work with canvas OpenGL but Kicad crash, with canvas Cairo work. The Kicad version of last test is: kicad-product-r6055.fa29c62-x86_64.

Maciej Sumiński (orsonmmz) wrote :

It is hard to tell the exact reason without a backtrace, but it is likely that the video card does not provide all of the capabilities required by pcbnew. If I ever manage to get such video card, I will try to investigatew it further, but for the moment I think it might be impossible to use this card with the OpenGL canvas.

Changed in kicad:
importance: Undecided → Low
Wayne Stambaugh (stambaughw) wrote :

Is this bug report still valid? Would the submitter please respond so we can close out this bug report.

Changed in kicad:
importance: Low → High
Maciej Sumiński (orsonmmz) wrote :

It seems to me that the submitter's video card does not support a required feature of OpenGL. Hard to say exactly what, as the glewinfo report does not contain anything suspicious. A backtrace would be very helpful here, but it is hard to get it under Windows without a lot of hassle. I am afraid I will not be able to fix it, unless one day I will have an access to the mentioned video card.

Maciej Sumiński (orsonmmz) wrote :

Perhaps there is a slight chance it is fixed in 6112, if the problem was caused by a race between OpenGL canvas initialization and VIEW paint event handler.

I could make a new test as soon as version 6112 will be available.

Nick Østergaard (nickoe) wrote :

@Alessandro, just go download it, http://ci.kicad-pcb.org/job/windows-kicad-msys2-nightlies/ (look at the last successfull artifact)

I tried with r6115 but it still doesn't work.

Tomasz Wlostowski (twlostow) wrote :

Hi Alessandro,

Could you include the crash report (should be available somewhere in the 'application has crashed' window)?

Tom

@Tomasz, here attached the crash report.

Nick Østergaard (nickoe) wrote :

A debug build is available at http://downloads.kicad-pcb.org/windows/DEBUG/kicad-product-r6132.156d5f5-x86_64-DEBUG.exe

Please try that and get a backtrace.

Here the backtrace of the debug build.

Mark Roszko (mark-roszko) wrote :

(GMA) 4500M chips were made by Intel for literally the worst of the worst laptops, its a cheap chip and if you search its plagued by OpenGL crashes. Intel themselves don't even list the chip or the chipset (GM40) as it was probably a OEM builder supported only chipset.
The crash dump shows that the Intel driver was involved in the call stack as it led to a crash, good bet its just the fact its an awful video chip and has trouble handling some sequence of OpenGL. It only supports up to OpenGL 2.1 (supposedly)

Maciej Sumiński (orsonmmz) wrote :

OpenGL 2.1 should be enough. There is also a glewinfo report attached and all the required extensions are theoretically available.

I also suspect it is related to the hardware/drivers, but perhaps it can be workarounded somehow. The major problem is - right now I have no idea where does it crash. The attached backtrace cannot be used to determine the source of the problem, as it can be opened only with WinDbg or MSVC, but then there are no symbols (as they are not available in gcc builds). There is a chance we will get a MSVC debug build, and then the situation will be clearer.

Alternatively, you could try building KiCad yourself using Winbuilder and run it with gdb attached, but it is a bit more complex, if you have not done similar things previously.

Nick Østergaard (nickoe) wrote :

I will downgrade the importance of this bug to medium to not block a release candidate, because this is only reproduced on one single hardware configuraiton.

I will try to help providing a debug build with MSVC that should be easier to get a proper backtrace out of on windows.

Changed in kicad:
importance: High → Medium
Simon Wells (xzcvczx) wrote :

https://en.wikipedia.org/wiki/List_of_Intel_graphics_processing_units states that the gma4500 only supports openGL 2.0 on windows 7 (whether thats up-to-date and correct is arguable based on glewinfo i guess)

Maciej Sumiński (orsonmmz) wrote :

As the report is one year old now, I would be grateful if the original reporter could confirm the bug existence in the current nightlies.

Changed in kicad:
status: New → Incomplete
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  Edit
Everyone can see this information.

Other bug subscribers