05-05-2007, 11:23 PM,
|
|
rookie1
Member
|
Posts: 231
Threads: 32
Joined: Nov 2006
|
|
If you want to know how the wrapping works, take a look at Boost.Python tutorial here.
I'm not sure what the problem is. On my machine (main mem 512M, video ram 64M), I can load most of the tracks, including hockenheim, monaco or nuerburgring.
I do get segfault when loading road_atlanta or lemans due to missing texture. I've traced this to a line in textures.cpp,
"cerr << "error loading texture file \"" << file << "\"..." << endl;"
However if I change 'cerr' to 'cout', the segfault does not occur. Haven't figure out why yet.
You can use gdb to debug if you want. To do this, just use 'gdb --args python vdrift-track-editor.py'. Then debug as per normal, like obtaining back trace, etc.
Regarding the object property dialog, is it possible to put it somewhere in the main window instead of a new dialog box? Maybe we can replace the message window at bottom with this? Or split the object window into 2 parts, 1 for object list, another for object property? So when a user click an object, its properties will be automatically displayed there.
|
|
05-07-2007, 03:27 AM,
|
|
thelusiv
Administrator
|
Posts: 2,346
Threads: 223
Joined: Jun 2005
|
|
When I load hockenheim I get the following backtrace. Not sure I understand it...
Code: Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210124624 (LWP 16931)]
0xb66461ba in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string () from /usr/lib/libstdc++.so.6
(gdb) bt
#0 0xb66461ba in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string () from /usr/lib/libstdc++.so.6
#1 0xb5e5dc77 in OBJECTNODE::GetName (this=0xb6143b50) at include/objects.h:57
#2 0xb5e5f7d6 in boost::python::detail::invoke<boost::python::to_python_value<std::string const&>, std::string (OBJECTNODE::*)(), boost::python::arg_from_python<OBJECTNODE&> > (rc=@0xbffc80ee, f=@0x82debd4,
tc=@0xbffc80e0) at /usr/include/boost/python/detail/invoke.hpp:88
#3 0xb5e5f8f5 in boost::python::detail::caller_arity<1u>::impl<std::string (OBJECTNODE::*)(), boost::python::default_call_policies, boost::mpl::vector2<std::string, OBJECTNODE&> >::operator() (this=0x82debd4,
args_=0xb64fd42c) at /usr/include/boost/python/detail/caller.hpp:199
#4 0xb5e5f950 in boost::python::objects::caller_py_function_impl<boost::python::detail::caller<std::string (OBJECTNODE::*)(), boost::python::default_call_policies, boost::mpl::vector2<std::string, OBJECTNODE&> > >::operator() (this=0x82debd0, args=0xb64fd42c, kw=0x0) at /usr/include/boost/python/object/py_function.hpp:38
#5 0xb5a066d6 in boost::python::objects::function::call () from /usr/lib/libboost_python-gcc-mt-1_33_1.so.1.33.1
#6 0x082debd0 in ?? ()
#7 0xb64fd42c in ?? ()
#8 0x00000000 in ?? ()
I think you're right on the object properties being in the main window. I did a little work on the Glade setup to do this and checked it in. It still needs work however. If you take a look at it you'll see what I mean. I'm not sure if I want to get rid of the message window, but it needs to be smaller...and easier to hide.
|
|
05-07-2007, 09:48 AM,
|
|
rookie1
Member
|
Posts: 231
Threads: 32
Joined: Nov 2006
|
|
That's weird. I don't have this segfault when loading hockenheim. Can you print out the string value of model name in OBJECTNODE::GetName()?
|
|
05-30-2007, 02:08 PM,
|
|
alanic
Junior Member
|
Posts: 1
Threads: 0
Joined: May 2007
|
|
rookie1 Wrote:"cerr << "error loading texture file \"" << file << "\"..." << endl;"
I'm not related to this community and I landed here with a google search about my problem. This looks like a Boost.Python problem to me, even though I'm not entirely sure that you guys are using Boost.Python at all, but the posts make me think so. Here are some related posts about this:
http://mail.datenhain.de/pipermail/libav...00085.html
http://thread.gmane.org/gmane.comp.pytho...ocus=11444
I'm having this on Gentoo Linux with a laptop with intel 855 graphics card. Here are versions of everything I tried these with:
gcc 4.1.2
python 2.4 and 2.3
mesa 6.5.2 (this is where the opengl library comes from)
boost 1.33.1 and 1.34.0
And here is the bug report I just filed:
http://svn.boost.org/trac/boost/ticket/1018
|
|
|