Re: Seg Fault if using control-field and a box in a scene
Sebastian Schleitzer <schleitzer-gM/[email protected]> Mon, 21 Jan 2013 09:35:28 +0100
| Newsgroups | gmane.comp.python.visualpython.user |
|---|---|
| Message-ID | <CAF1ApVccZN6z+-pV8Dr-7UdETBAj2EeKTJS6Anx8XpZ2n+cuRQ@mail.gmail.com> |
--===============2479888501562146114== Content-Type: multipart/alternative; boundary=047d7b6da960f0da3604d3c85788 --047d7b6da960f0da3604d3c85788 Content-Type: text/plain; charset=ISO-8859-1 The building process of vpython was successfull. Also my project was running without problems. The only problem was the control window and the box in the second scene. If i comment the box-create line and uncomment the controls it works. If i uncomment the the box and comment the controls line it also works. Both lines uncomment - seg fault. (The code is only an excerpt of my project) Thank you for your patience and sorry for my bad english Sebastian (vom Handy gesendet) Am 21.01.2013 05:00 schrieb "Steve Spicklemire" <steve-/3wgw/[email protected]>: > I'll try to modify the setuptools script to work on visual 5.7x and post > if I can get it to work. That may permit you to build a fresh version in > your environment. > > thanks, > -steve > > On Jan 20, 2013, at 5:07 PM, Bruce Sherwood <[email protected]> > wrote: > > I too find that recent versions of Ubuntu offer non-working versions of > the package python-visual, and I don't know why building a new version also > fails. Steve Spicklemire has been doing excellent work in making an easy to > use Linux installer for the new wxPython-based VPython, which is quickly > getting quite mature. Perhaps Steve can post something about the status of > his installer. > > Bruce Sherwood > > > On Sun, Jan 20, 2013 at 2:00 PM, Sebastian Schleitzer < > schleitzer-gM/[email protected]> wrote: > >> Hello, >> I'm new in Vpython. I have designed a 3D modell in vpython to interact >> with them. The mathematics, displaying the 3D modell - all fine. >> >> After this I wanted to make a controls-field with buttons and I always >> get a segfault. After some hours I have compiled the newest vpython version >> 5.74 (+modules) and still the same problem. >> >> Thank you for your help, >> Best Regards, Sebastian Schleitzer >> >> segfault: >> Jan 20 21:35:11 seb-t61 kernel: [436645.683645] python[7636]: segfault at >> 8 ip 00007fd656ef0afa sp 00007fd65d8a2d50 error 4 in >> libdricore9.0.0.so.1.0.0[7fd656d93000+373000] >> Ubuntu 12.10 >> >> ### Code: >> from visual import * >> from visual.text import * >> from visual.controls import * >> cmd_feld = controls(title='Controlling the Scene',x=700, y=600, >> width=400, height=400, range=50) >> but_net = button( pos=(0,0), width=60, height=60,text='N', action=lambda: >> pause() ) >> >> scene = display(title='Scene Test',x=0, y=0, width=700, >> height=600,center=(10,0,0)) >> sphere() >> >> color_scene = display(title='Controls',x=700, y=0, width=200, height=600) >> color_scene.select() >> box(pos=(-1,-20,0), length=24, height=5, width=5, color=color.white) >> >> >> >> ------------------------------------------------------------------------------ >> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >> MVPs and experts. ON SALE this month only -- learn more at: >> http://p.sf.net/sfu/learnmore_123012 >> _______________________________________________ >> Visualpython-users mailing list >> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >> https://lists.sourceforge.net/lists/listinfo/visualpython-users >> >> > --047d7b6da960f0da3604d3c85788 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <p dir=3D"ltr">The building process of vpython was successfull. Also my pro= ject was running without problems. The only problem was the control window = and the box in the second scene. <br> If i comment the box-create line and uncomment the controls it works.<br> If i uncomment the the box and comment the controls line it also works.<br> Both lines uncomment - seg fault.<br> (The code is only an excerpt of my project)</p> <p dir=3D"ltr">Thank you for your patience and sorry for my bad english<br> Sebastian</p> <p dir=3D"ltr">(vom Handy gesendet)</p> <div class=3D"gmail_quote">Am 21.01.2013 05:00 schrieb "Steve Spicklem= ire" <<a href=3D"mailto:steve-/3wgw/[email protected]">steve-/3wgw/[email protected]</a>>:<br = type=3D"attribution"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 = 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div dir=3D"auto"><div>I'll try to modify the setuptools script to work= on visual 5.7x and post if I can get it to work. That may permit you to bu= ild a fresh version in your environment.</div><div><br>thanks,<br><div>-ste= ve</div> </div><div><br>On Jan 20, 2013, at 5:07 PM, Bruce Sherwood <<a href=3D"m= ailto:[email protected]" target=3D"_blank">[email protected]</a= >> wrote:<br><br></div><blockquote type=3D"cite"><div><div dir=3D"ltr">I= too find that recent versions of Ubuntu offer non-working versions of the = package python-visual, and I don't know why building a new version also= fails. Steve Spicklemire has been doing excellent work in making an easy t= o use Linux installer for the new wxPython-based VPython, which is quickly = getting quite mature. Perhaps Steve can post something about the status of = his installer.<div> <br></div><div>Bruce Sherwood</div></div><div class=3D"gmail_extra"><br><br= ><div class=3D"gmail_quote">On Sun, Jan 20, 2013 at 2:00 PM, Sebastian Schl= eitzer <span dir=3D"ltr"><<a href=3D"mailto:schleitzer-gM/[email protected]" t= arget=3D"_blank">schleitzer-gM/[email protected]</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div style=3D"font-family:-moz-fixed;font-size:12px" lang=3D"x-western">Hel= lo, <br>I'm new in Vpython. I have designed a 3D modell in vpython to inter= act=20 with them. The mathematics, displaying the 3D modell - all fine. <br> <br>After this I wanted to make a controls-field with buttons and I always= =20 get a segfault. After some hours I have compiled the newest vpython=20 version 5.74 (+modules) and still the same problem. <br> <br>Thank you for your help, <br>Best Regards, Sebastian Schleitzer <br> <br>segfault: <br>Jan 20 21:35:11 seb-t61 kernel: [436645.683645] python[7636]: segfault= =20 at 8 ip 00007fd656ef0afa sp 00007fd65d8a2d50 error 4 in=20 libdricore9.0.0.so.1.0.0[7fd656d93000+373000] <br>Ubuntu 12.10 <br> <br>### Code: <br>from visual import * <br>from visual.text import * <br>from visual.controls import * <br>cmd_feld =3D controls(title=3D'Controlling the Scene',x=3D700, = y=3D600,=20 width=3D400, height=3D400, range=3D50) <br>but_net =3D button( pos=3D(0,0), width=3D60, height=3D60,text=3D'N&= #39;,=20 action=3Dlambda: pause() ) <br> <br>scene =3D display(title=3D'Scene Test',x=3D0, y=3D0, width=3D70= 0,=20 height=3D600,center=3D(10,0,0)) <br>sphere() <br> <br>color_scene =3D display(title=3D'Controls',x=3D700, y=3D0, widt= h=3D200, height=3D600) <br>color_scene.select() <br>box(pos=3D(-1,-20,0), length=3D24, height=3D5, width=3D5, color=3Dcolor= .white) <br> <br></div> <br>-----------------------------------------------------------------------= -------<br> Master Visual Studio, SharePoint, SQL, <a href=3D"http://ASP.NET" target=3D= "_blank">ASP.NET</a>, C# 2012, HTML5, CSS,<br> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current<br> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft<br> MVPs and experts. ON SALE this month only -- learn more at:<br> <a href=3D"http://p.sf.net/sfu/learnmore_123012" target=3D"_blank">http://p= .sf.net/sfu/learnmore_123012</a><br>_______________________________________= ________<br> Visualpython-users mailing list<br> <a href=3D"mailto:Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org" target=3D"_blan= k">Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/visualpython-users"= target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/visualpytho= n-users</a><br> <br></blockquote></div><br></div> </div></blockquote></div></blockquote></div> --047d7b6da960f0da3604d3c85788-- --===============2479888501562146114== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 --===============2479888501562146114== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Visualpython-users mailing list Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/visualpython-users --===============2479888501562146114==--