From: Gary P. <gar...@gm...> - 2010-06-03 16:10:32
|
A program of mine segfaults on Kubuntu 10.04 I've extracted the offending code: #---------------------------------- from visual import * sphere() scene.range = scene.range * 3. #----------------------------------- If I remove the line containing scene.range the original program works fine. I'm using python-visual from the Ubuntu repository. Can someone else try it? I'd be especially interested to know if it crashes using the respository version, but works using Bruce's home-made version. thanks, gary |
From: Guy K. K. <g....@ma...> - 2010-06-03 22:12:32
|
On Fri, 04 Jun 2010 04:08:46 Gary Pajer wrote: > If I remove the line containing scene.range the original program works > fine. I'm using python-visual from the Ubuntu repository. > Can someone else try it? I'd be especially interested to know if it > crashes using the respository version, but works using Bruce's home-made > version. Works perfectly fine on Kubuntu 10.04 (32 bit). Well, fine as in "it doesn't segfault". But I do get an exception on the last line (RuntimeError): """ RuntimeError: Reading .scale and .range is not supported when autoscale is enabled. """ Which is fair enough. Are you maybe on a 64 bit system, that behaves (slightly) different? It might also help to run the problem under strace when that happens, or under gdb to trace down the original problem. HTH, Guy -- Guy K. Kloss Institute of Information and Mathematical Sciences Te Kura Pūtaiao o Mōhiohio me Pāngarau Massey University, Albany (North Shore City, Auckland) 473 State Highway 17, Gate 1, Mailroom, Quad B Building voice: +64 9 414-0800 ext. 9266 fax: +64 9 441-8181 G....@ma... http://www.massey.ac.nz/~gkloss |
From: Gary P. <gar...@gm...> - 2010-06-04 17:22:22
|
On Thu, Jun 3, 2010 at 6:12 PM, Guy K. Kloss <g....@ma...> wrote: > On Fri, 04 Jun 2010 04:08:46 Gary Pajer wrote: > > If I remove the line containing scene.range the original program works > > fine. I'm using python-visual from the Ubuntu repository. > > Can someone else try it? I'd be especially interested to know if it > > crashes using the respository version, but works using Bruce's home-made > > version. > > Works perfectly fine on Kubuntu 10.04 (32 bit). Well, fine as in "it > doesn't > segfault". But I do get an exception on the last line (RuntimeError): > > """ > RuntimeError: Reading .scale and .range is not supported when autoscale is > enabled. > """ > > Which is fair enough. Are you maybe on a 64 bit system, that behaves > (slightly) different? > The original has an autoscale statement whose presence doesn't affect the segfault. I'm have a 32 bit system. Might be yet another Mesa/Radeon Mobility 7500 problem. It wouldn't be the first. > > It might also help to run the problem under strace when that happens, or > under > gdb to trace down the original problem. > I'll give that a try. Thanks. > > HTH, > > Guy > > -- > Guy K. Kloss > Institute of Information and Mathematical Sciences > Te Kura Pūtaiao o Mōhiohio me Pāngarau > Massey University, Albany (North Shore City, Auckland) > 473 State Highway 17, Gate 1, Mailroom, Quad B Building > voice: +64 9 414-0800 ext. 9266 fax: +64 9 441-8181 > G....@ma... http://www.massey.ac.nz/~gkloss > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
From: Gary P. <gar...@gm...> - 2010-06-07 14:29:33
|
On Sat, Jun 5, 2010 at 8:56 AM, Symion <kn...@ip...> wrote: > On 5/06/2010 2:52 AM, Gary Pajer wrote: > > On Thu, Jun 3, 2010 at 6:12 PM, Guy K. Kloss <g....@ma...> wrote: > >> On Fri, 04 Jun 2010 04:08:46 Gary Pajer wrote: >> > If I remove the line containing scene.range the original program works >> > fine. I'm using python-visual from the Ubuntu repository. >> > Can someone else try it? I'd be especially interested to know if it >> > crashes using the respository version, but works using Bruce's home-made >> > version. >> > > > I think you have to declare scene.range Before you can use it. > #---------------------------------- > from visual import * > scene.range = 10 > sphere() > scene.range = scene.range * 3. > > works fine! > Not for me. It no longer segfaults. But now a window pops up containing a yellow sphere, and a split second later the sphere is replaced by yellow garbage. The window responds to rotation mouse gestures, but not zooms. Point of interest #1: the original code worked fine under WinXP. Point of interest #2: it was not necessary to declare scene.range in WinXP. Something else: I don't know which version of visual I was using when I was using WinXP. Bruce, if I'm not mistaken you are relocating, and therefore probably very busy. But whenever it's comfortable, I'd appreciate it if you can try my code on your home-grown build, and, if you still have it available, your from-Ubuntu-repository build in order to see if it works on one but not on the other. If it does, any pointers on building on Ubuntu would be appreciated. Thanks very much, gary |
From: Bruce S. <Bru...@nc...> - 2010-06-07 18:03:28
|
I don't have the Ubuntu 10.04 python-visual running, but your code works fine with my own build on 32-bit and 64-bit Ubuntu. This is the only thing that was problematic: The following change is necessary if you get an error in translate_exception.hpp: In /usr/include (probably), change /boost/python/detail/translate_exception.hpp =================================================================== --- boost/python/detail/translate_exception.hpp (revision 50228) +++ boost/python/detail/translate_exception.hpp (working copy) @@ -9,6 +9,7 @@ # include <boost/call_traits.hpp> # include <boost/type_traits/add_const.hpp> +# include <boost/type_traits/add_reference.hpp> # include <boost/function/function0.hpp> -------------------------------------- (That is, add "# include <boost/type_traits/add_reference.hpp>" after the statement "# include <boost/type_traits/add_const.hpp>".) This is the updated information in the CVS version of vpython-core2/INSTALL.txt at sourceforge.net. I posted a complaint and question about this at https://answers.launchpad.net/ubuntu/+question/112778 I can't find any substantive difference between the source package used by someone to build python-visual and the source I'm building from, so I can't understand how that someone was able to build python-visual, since there is this problem with Boost. Alas, no one has responded to my question. Bruce On 6/7/2010 8:29 AM, Gary Pajer wrote: > On Sat, Jun 5, 2010 at 8:56 AM, Symion <kn...@ip... > <mailto:kn...@ip...>> wrote: > > On 5/06/2010 2:52 AM, Gary Pajer wrote: >> On Thu, Jun 3, 2010 at 6:12 PM, Guy K. Kloss >> <g....@ma... <mailto:g....@ma...>> wrote: >> >> On Fri, 04 Jun 2010 04:08:46 Gary Pajer wrote: >> > If I remove the line containing scene.range the original >> program works >> > fine. I'm using python-visual from the Ubuntu repository. >> > Can someone else try it? I'd be especially interested to >> know if it >> > crashes using the respository version, but works using >> Bruce's home-made >> > version. >> >> > > I think you have to declare scene.range Before you can use it. > #---------------------------------- > from visual import * > scene.range = 10 > sphere() > scene.range = scene.range * 3. > > works fine! > > > > Not for me. It no longer segfaults. But now a window pops up > containing a yellow sphere, and a split second later the sphere is > replaced by yellow garbage. The window responds to rotation mouse > gestures, but not zooms. > > Point of interest #1: the original code worked fine under WinXP. > Point of interest #2: it was not necessary to declare scene.range in > WinXP. > Something else: I don't know which version of visual I was using when > I was using WinXP. > > Bruce, if I'm not mistaken you are relocating, and therefore probably > very busy. But whenever it's comfortable, I'd appreciate it if you > can try my code on your home-grown build, and, if you still have it > available, your from-Ubuntu-repository build in order to see if it > works on one but not on the other. If it does, any pointers on > building on Ubuntu would be appreciated. > > Thanks very much, > gary > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Gary P. <gar...@gm...> - 2010-06-07 21:59:43
|
On Mon, Jun 7, 2010 at 10:29 AM, Gary Pajer <gar...@gm...> wrote: > On Sat, Jun 5, 2010 at 8:56 AM, Symion <kn...@ip...> wrote: > >> On 5/06/2010 2:52 AM, Gary Pajer wrote: >> >> On Thu, Jun 3, 2010 at 6:12 PM, Guy K. Kloss <g....@ma...>wrote: >> >>> On Fri, 04 Jun 2010 04:08:46 Gary Pajer wrote: >>> > If I remove the line containing scene.range the original program works >>> > fine. I'm using python-visual from the Ubuntu repository. >>> > Can someone else try it? I'd be especially interested to know if it >>> > crashes using the respository version, but works using Bruce's >>> home-made >>> > version. >>> >> >> > > >> I think you have to declare scene.range Before you can use it. >> >> #---------------------------------- >> from visual import * >> scene.range = 10 >> sphere() >> scene.range = scene.range * 3. >> >> works fine! >> > > > Not for me. It no longer segfaults. But now a window pops up containing a > yellow sphere, and a split second later the sphere is replaced by yellow > garbage. The window responds to rotation mouse gestures, but not zooms. > > Point of interest #1: the original code worked fine under WinXP. > Point of interest #2: it was not necessary to declare scene.range in > WinXP. > Something else: I don't know which version of visual I was using when I > was using WinXP. > > Bruce, if I'm not mistaken you are relocating, and therefore probably very > busy. But whenever it's comfortable, I'd appreciate it if you can try my > code on your home-grown build, and, if you still have it available, your > from-Ubuntu-repository build in order to see if it works on one but not on > the other. If it does, any pointers on building on Ubuntu would be > appreciated. > > Thanks very much, > gary > Oops. Symion's fix does work. I accidentally tried the fix on an old version of my test program which contained some other garbage that filled the window with ... well, garbage. Thanks, Symion -gary |