Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » KiCAD
  • » [Kicad-developers] pcbnew crashes with 3d view [RSS Feed]

#1 Jan. 23, 2011 16:48:08

Phinitnan C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] pcbnew crashes with 3d view


Hello,

I always have pcbnew crashes when try to view the board in 3d. The version
I'm using is compiled from latest bzr source (from aur, archinux). This
problem only occurs on intel onboard graphic (it works fine with nvidia).
This is the returned message:

The program 'pcbnew' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
(Details: serial 261236 error_code 9 request_code 137 minor_code 8)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

Is there anyone experience this?

Tony_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#2 Jan. 23, 2011 17:06:28

Fabio V.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] pcbnew crashes with 3d view


Me too! This is what I get:

$ pcbnew
The program 'pcbnew' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
(Details: serial 171639 error_code 9 request_code 136 minor_code 8)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error()
function.)

Actually, it seems that we are not alone:https://bugs.launchpad.net/ubuntu/+source/kicad/+bug/191470(first fixed then happening again)

I really would like this to be fixed as currently I do have to switch
to Win just to use the 3D view.. pretty annoying and time wasting.

I can offer remote access to my system (if no developer is able to
replicate it) as well as a 30 euro bounty for fixing this.

Thanks,

FV


On 01/23/2011 05:37 PM, Phinitnan Chanasabaeng wrote:
> Hello,
>
> I always have pcbnew crashes when try to view the board in 3d. The
> version I'm using is compiled from latest bzr source (from aur,
> archinux). This problem only occurs on intel onboard graphic (it works
> fine with nvidia). This is the returned message:
>
> The program 'pcbnew' received an X Window System error.
> This probably reflects a bug in the program.
> The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
> (Details: serial 261236 error_code 9 request_code 137 minor_code 8)
> (Note to programmers: normally, X errors are reported asynchronously;
> that is, you will receive the error a while after causing it.
> To debug your program, run it with the --sync command line
> option to change this behavior. You can then get a meaningful
> backtrace from your debugger if you break on the gdk_x_error()
> function.)
>
> Is there anyone experience this?
>
> Tony
>
>
>
> _______________________________________________
> Mailing list:https://launchpad.net/~kicad-developers> Post to : kicad-develop***@*ists.launchpad.net
> Unsubscribe :https://launchpad.net/~kicad-developers> More help :https://help.launchpad.net/ListHelp_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#3 Jan. 23, 2011 18:14:45

Vesa S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] pcbnew crashes with 3d view


On Sun, 23 Jan 2011, Fabio Varesano wrote:Actually, it seems that we are not alone:https://bugs.launchpad.net/ubuntu/+source/kicad/+bug/191470(first fixed then happening again)

I really would like this to be fixed as currently I do have to switch
to Win just to use the 3D view.. pretty annoying and time wasting.X-swat PPA on Ubuntu 10.4 64b is "working for me" (tm)...

glxinfo -l:
OpenGL renderer string: Mesa DRI Intel(R) 965Q GEM 20091221 2009Q4

lspci | grep VGA:VGA compatible controller: Intel Corporation 82Q963/Q965 IntegratedGraphics Controller (rev 02)Kernel is updated to Natty series (2.6.37) from Ubuntu kernel PPA. Alsotesting Xorg-edgers PPA with the latest drivers may help, but sometimesit's more broken than distro stuff.-Vesa

_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#4 Jan. 24, 2011 00:46:02

Phinitnan C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] pcbnew crashes with 3d view


Vesa,

Did you build from source? In arch, all packages and drivers are always
breading edge (I use testing repos). I used to think it was because intel
graphic (SciLab's 3D does not work with intel too). Here is what I have

lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated
Graphics Controller (rev 09)

glxinfo -l | grep OpenGL
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Desktop GEM 20100330
DEVELOPMENT
OpenGL version string: 2.1 Mesa 7.10
OpenGL shading language version string: 1.20
OpenGL extensions:
OpenGL limits:


On Mon, Jan 24, 2011 at 1:14 AM, Vesa Solonen <vsolo***@*c.hut.fi> wrote:

>
>
> On Sun, 23 Jan 2011, Fabio Varesano wrote:
>
> Actually, it seems that we are not alone:
>>https://bugs.launchpad.net/ubuntu/+source/kicad/+bug/191470>> (first fixed then happening again)
>>
>> I really would like this to be fixed as currently I do have to switch
>> to Win just to use the 3D view.. pretty annoying and time wasting.
>>
>
> X-swat PPA on Ubuntu 10.4 64b is "working for me" (tm)...
>
> glxinfo -l:
> OpenGL renderer string: Mesa DRI Intel(R) 965Q GEM 20091221 2009Q4
>
> lspci | grep VGA:
> VGA compatible controller: Intel Corporation 82Q963/Q965 Integrated
> Graphics Controller (rev 02)
>
> Kernel is updated to Natty series (2.6.37) from Ubuntu kernel PPA. Also
> testing Xorg-edgers PPA with the latest drivers may help, but sometimes it's
> more broken than distro stuff.
>
> -Vesa
>
>
> _______________________________________________
> Mailing list:
>https://launchpad.net/~kicad-developers<https://launchpad.net/%7Ekicad-developers>
> Post to : kicad-develop***@*ists.launchpad.net
> Unsubscribe :
>https://launchpad.net/~kicad-developers<https://launchpad.net/%7Ekicad-developers>
> More help :https://help.launchpad.net/ListHelp>_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#5 Jan. 24, 2011 08:12:35

Vesa S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] pcbnew crashes with 3d view


On Mon, 24 Jan 2011, Phinitnan Chanasabaeng wrote:Vesa,

Did you build from source? In arch, all packages and drivers are always
breading edge (I use testing repos). I used to think it was because intel
graphic (SciLab's 3D does not work with intel too).No, I used PPAs, but Xorg-edgers is practically newest with a day ofdelay. It may be a Mesa bug or KiCad and Scilab doing something notquite by the book. After some more testing Pcbnew seems not to work withnewest stuff, but does work with old distro supplied Mesa and X.-Vesa

_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#6 Jan. 28, 2011 18:08:33

Phinitnan C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] pcbnew crashes with 3d view


Have a look the 3d-view source, PCBNEW will crash after calling SwapBuffers
(3d_draw.cpp:101). Comment out this call stop the crash.
What confuse me is, 3d view should have not drawn anything but it did.
Without SwapBuffers, everything works as it should.
I'm now investigating and trying to find the cause. Can someone confirm this
and please leave your suggestion.

Tony

On Mon, Jan 24, 2011 at 3:11 PM, Vesa Solonen <vsolo***@*c.hut.fi> wrote:

> On Mon, 24 Jan 2011, Phinitnan Chanasabaeng wrote:
>
> Vesa,
>>
>> Did you build from source? In arch, all packages and drivers are always
>> breading edge (I use testing repos). I used to think it was because intel
>> graphic (SciLab's 3D does not work with intel too).
>>
>
> No, I used PPAs, but Xorg-edgers is practically newest with a day of delay.
> It may be a Mesa bug or KiCad and Scilab doing something not quite by the
> book. After some more testing Pcbnew seems not to work with newest stuff,
> but does work with old distro supplied Mesa and X.
>
>
> -Vesa
>
> _______________________________________________
> Mailing list:
>https://launchpad.net/~kicad-developers<https://launchpad.net/%7Ekicad-developers>
> Post to : kicad-develop***@*ists.launchpad.net
> Unsubscribe :
>https://launchpad.net/~kicad-developers<https://launchpad.net/%7Ekicad-developers>
> More help :https://help.launchpad.net/ListHelp>_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#7 Jan. 28, 2011 20:06:10

Fabio V.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] pcbnew crashes with 3d view


Tony, I followed your advice, commented out that line.. recompiled
everything .. now 3d view works perfectly.. you made my day. Thanks!

On 01/28/2011 07:08 PM, Phinitnan Chanasabaeng wrote:
> Have a look the 3d-view source, PCBNEW will crash after calling
> SwapBuffers (3d_draw.cpp:101). Comment out this call stop the crash.
> What confuse me is, 3d view should have not drawn anything but it did.
> Without SwapBuffers, everything works as it should.
> I'm now investigating and trying to find the cause. Can someone
> confirm this and please leave your suggestion.
>
> Tony
>
> On Mon, Jan 24, 2011 at 3:11 PM, Vesa Solonen <vsolo***@*c.hut.fi
> <mailto:vsolo***@*c.hut.fi>> wrote:
>
> On Mon, 24 Jan 2011, Phinitnan Chanasabaeng wrote:
>
> Vesa,
>
> Did you build from source? In arch, all packages and drivers
> are always
> breading edge (I use testing repos). I used to think it was
> because intel
> graphic (SciLab's 3D does not work with intel too).
>
>
> No, I used PPAs, but Xorg-edgers is practically newest with a day
> of delay. It may be a Mesa bug or KiCad and Scilab doing something
> not quite by the book. After some more testing Pcbnew seems not to
> work with newest stuff, but does work with old distro supplied
> Mesa and X.
>
>
> -Vesa
>
> _______________________________________________
> Mailing list:https://launchpad.net/~kicad-developers> <https://launchpad.net/%7Ekicad-developers>
> Post to : kicad-develop***@*ists.launchpad.net
> <mailto:kicad-develop***@*ists.launchpad.net>
> Unsubscribe :https://launchpad.net/~kicad-developers> <https://launchpad.net/%7Ekicad-developers>
> More help :https://help.launchpad.net/ListHelp>
>
>
>
> _______________________________________________
> Mailing list:https://launchpad.net/~kicad-developers> Post to : kicad-develop***@*ists.launchpad.net
> Unsubscribe :https://launchpad.net/~kicad-developers> More help :https://help.launchpad.net/ListHelp_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#8 Jan. 28, 2011 20:20:04

Fabio V.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] pcbnew crashes with 3d view


On a second review, it seems that there are some problems in the order
of the layers displayed.. it seems that somehow the top layer is
hidden by the bottom layer even if the opposite should happen.

On 01/28/2011 07:08 PM, Phinitnan Chanasabaeng wrote:
> Have a look the 3d-view source, PCBNEW will crash after calling
> SwapBuffers (3d_draw.cpp:101). Comment out this call stop the crash.
> What confuse me is, 3d view should have not drawn anything but it did.
> Without SwapBuffers, everything works as it should.
> I'm now investigating and trying to find the cause. Can someone
> confirm this and please leave your suggestion.
>
> Tony
>
> On Mon, Jan 24, 2011 at 3:11 PM, Vesa Solonen <vsolo***@*c.hut.fi
> <mailto:vsolo***@*c.hut.fi>> wrote:
>
> On Mon, 24 Jan 2011, Phinitnan Chanasabaeng wrote:
>
> Vesa,
>
> Did you build from source? In arch, all packages and drivers
> are always
> breading edge (I use testing repos). I used to think it was
> because intel
> graphic (SciLab's 3D does not work with intel too).
>
>
> No, I used PPAs, but Xorg-edgers is practically newest with a day
> of delay. It may be a Mesa bug or KiCad and Scilab doing something
> not quite by the book. After some more testing Pcbnew seems not to
> work with newest stuff, but does work with old distro supplied
> Mesa and X.
>
>
> -Vesa
>
> _______________________________________________
> Mailing list:https://launchpad.net/~kicad-developers> <https://launchpad.net/%7Ekicad-developers>
> Post to : kicad-develop***@*ists.launchpad.net
> <mailto:kicad-develop***@*ists.launchpad.net>
> Unsubscribe :https://launchpad.net/~kicad-developers> <https://launchpad.net/%7Ekicad-developers>
> More help :https://help.launchpad.net/ListHelp>
>
>
>
> _______________________________________________
> Mailing list:https://launchpad.net/~kicad-developers> Post to : kicad-develop***@*ists.launchpad.net
> Unsubscribe :https://launchpad.net/~kicad-developers> More help :https://help.launchpad.net/ListHelp_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#9 Jan. 28, 2011 20:47:53

jean-pierre c.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] pcbnew crashes with 3d view


Le 28/01/2011 19:08, Phinitnan Chanasabaeng a écrit :Have a look the 3d-view source, PCBNEW will crash after calling SwapBuffers
(3d_draw.cpp:101). Comment out this call stop the crash.
What confuse me is, 3d view should have not drawn anything but it did. Without
SwapBuffers, everything works as it should.
I'm now investigating and trying to find the cause. Can someone confirm this
and please leave your suggestion.

TonyTest under XP, 3d view does not drawn anything!

--
Jean-Pierre CHARRAS


_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#10 Jan. 29, 2011 03:15:57

Phinitnan C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] pcbnew crashes with 3d view


I forgot to mention one thing, the explicit declaration of wxGLContext is
suggested (required?) by wxWidgets since 2.7.x but kicad do this in 2.9.x++.
So, all the lines with #if wxCHECK_VERSION( 2, 9, 0 ) macro should be
changed to #if wxCHECK_VERSION( 2, 7, 0 ). I don't know if there is any
paticular reason for kicad to do so.

Fabio,

Yes, I also see the layer problem. Just woke up and will try to fix it today
:)

Charras,

As far as I know, this bug normally occurs on some certain computers. Most
of them use anything but Nvidia. I'm now using Intel graphic and affected by
this bug. What is you hardware being used?

Tony

On Sat, Jan 29, 2011 at 3:47 AM, jean-pierre charras
<jp.char***@*anadoo.fr>wrote:

> Le 28/01/2011 19:08, Phinitnan Chanasabaeng a écrit :
>
> Have a look the 3d-view source, PCBNEW will crash after calling
>> SwapBuffers (3d_draw.cpp:101). Comment out this call stop the crash.
>> What confuse me is, 3d view should have not drawn anything but it did.
>> Without SwapBuffers, everything works as it should.
>> I'm now investigating and trying to find the cause. Can someone confirm
>> this and please leave your suggestion.
>>
>> Tony
>>
>>
> Test under XP, 3d view does not drawn anything!
>
> --
> Jean-Pierre CHARRAS
>
>
>
> _______________________________________________
> Mailing list:
>https://launchpad.net/~kicad-developers<https://launchpad.net/%7Ekicad-developers>
> Post to : kicad-develop***@*ists.launchpad.net
> Unsubscribe :
>https://launchpad.net/~kicad-developers<https://launchpad.net/%7Ekicad-developers>
> More help :https://help.launchpad.net/ListHelp>_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

  • Root
  • » KiCAD
  • » [Kicad-developers] pcbnew crashes with 3d view [RSS Feed]

Board footer

Moderator control

Enjoy the 23rd of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support