Re: Seg Fault if using control-field and a box in a scene
Bruce Sherwood <[email protected]> Sun, 20 Jan 2013 17:07:04 -0700
| Newsgroups | gmane.comp.python.visualpython.user |
|---|---|
| Message-ID | <CAFDG03hUnLNGakpaXP4D0GGzkVoDb0Hs3vLbFxaj0BvO5kYyqA@mail.gmail.com> |
--===============8224164418059722044== Content-Type: multipart/alternative; boundary=f46d042de45fbfadfc04d3c13d1d --f46d042de45fbfadfc04d3c13d1d Content-Type: text/plain; charset=UTF-8 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 > > --f46d042de45fbfadfc04d3c13d1d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I too find that recent versions of Ubuntu offer non-workin= g 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 i= n making an easy to use Linux installer for the new wxPython-based VPython,= which is quickly getting quite mature. Perhaps Steve can post something ab= out the status of his installer.<div> <br></div><div style>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, Sebastia= n Schleitzer <span dir=3D"ltr"><<a href=3D"mailto:schleitzer@googlemail.= com" target=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">Visualpython-us= [email protected]</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> --f46d042de45fbfadfc04d3c13d1d-- --===============8224164418059722044== 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 --===============8224164418059722044== 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 --===============8224164418059722044==--