12-09-2007, 09:53 PM,
|
|
cotharyus
Senior Member
   
|
Posts: 332
Threads: 17
Joined: Oct 2006
|
|
Hope this helps:
Code: [Session started at 2007-12-09 19:50:54 -0600.]
Loading program into debuggerâ¦
GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin".tty /dev/ttys002
Program loaded.
sharedlibrary apply-load-rules all
run
[Switching to process 6521 local thread 0x2f1f]
Runningâ¦
Found config file /Users/laurencesanford/Library/Preferences/VDrift/controls.
Found config file /Users/laurencesanford/Library/Preferences/VDrift/VDrift.config.
Version of game: 2007-12-09
Skin name not found in config file...
Directory /Users/laurencesanford/Projects/vdrift/tools/osx/build/Debug/data/skins/.svn/menus does not exist! Skin .svn not loaded.
Directory /Users/laurencesanford/Projects/vdrift/tools/osx/build/Debug/data/skins/SConscript/menus does not exist! Skin SConscript not loaded.
Warning: option-47 is missing its default value. Assuming "".
Run with -verbose for troubleshooting.
Run with -nosound to disable sound.
Run with -benchmark to play a replay and output benchmark data.
1 joystick(s) found:
0. GGE909 PC Recoil Pad
Extension not supported: GL_ARB_multisample
Card supports: drawbuf1 auxbuf0 anisotropy4 cubemapping shaders multitexturing16 texture_rectangle depth_texture shadow framebuffer_objects
Card does not support: antialiasing
Status: Using GLEW 1.4.0
=shlibs-removed,shlib-info=[num="111",name="AudioIPCPlugIn",kind="B",dyld-addr="0x16d9e000",reason="dyld",requested-state="E",state="E",path="/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn",description="/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn",loaded_addr="0x16d9e000",slide="0x16d9e000",prefix=""]
=shlibs-removed,shlib-info=[num="112",name="AppleHDAHALPlugIn",kind="B",dyld-addr="0x16db7000",reason="dyld",requested-state="E",state="E",path="/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn",description="/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn",loaded_addr="0x16db7000",slide="0x16db7000",prefix=""]
Obtained audio device:
Frequency: 44100
Format: 32784
Bits per sample: 16
Channels: 2
Silence: 0
Samples: 512
Size: 2048
Car AX2 has no gloss map for its glass; using a default contant shiny/reflective texture
Car AX2 has no gloss map; using a default contant shiny/reflective texture
Car AX2 has no gloss map; using a default contant shiny/reflective texture
Car AX2 has no gloss map; using a default contant shiny/reflective texture
Car AX2 has no gloss map for its glass; using a default contant shiny/reflective texture
Car AX2 has no gloss map; using a default contant shiny/reflective texture
Frame axis_angle conversion resulted in: nan,nan,nan,nan
#0 Vamos_Body::Frame::axis_angle (this=0x198e0e70, angle=0xbfffd8b8) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/vamos/body/Frame.cc:176
#1 0x001064cf in Vamos_Body::Gl_Car::transform_body (this=0x198e0e00) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/vamos/body/Gl_Car.cc:506
#2 0x0010cd57 in Vamos_Body::Gl_Car::Update (this=0x198e0e00) at Gl_Car.h:232
#3 0x0013400b in VAMOSWORLD::PhysUpdate (this=0x7289d0, dt=0.00400000019) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/vamosworld.cpp:2403
#4 0x0013a84c in VAMOSWORLD::Update (this=0x7289d0, timefactor=1, fps=250, js=0x1f3140) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/vamosworld.cpp:724
#5 0x0003149b in GAME::Update (this=0x1f12c0) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/game.cpp:224
#6 0x00034301 in GAME::Start (this=0x1f12c0, args=@0xbfffe850) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/game.cpp:1644
#7 0x000870a7 in SDL_main (argc=1, argv=0xc0ac10) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/main.cpp:26
#8 0x00003140 in -[SDLMain applicationDidFinishLaunching:] (self=0xc3d2a0, _cmd=0x901bb9a4, note=0xc30ca0) at /Users/laurencesanford/Projects/vdrift/tools/osx/SDLMain.m:196
#9 0x96adc77c in _nsnote_callback ()
#10 0x95610a4a in __CFXNotificationPost ()
#11 0x95610d23 in _CFXNotificationPostNotification ()
#12 0x96ad9a70 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#13 0x96ae3108 in -[NSNotificationCenter postNotificationName:object:] ()
#14 0x92cc0323 in -[NSApplication _postDidFinishNotification] ()
#15 0x92cc0232 in -[NSApplication _sendFinishLaunchingNotification] ()
#16 0x92c39d1e in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()
#17 0x92c39517 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
#18 0x96b01c7f in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
#19 0x96b0198f in _NSAppleEventManagerGenericHandler ()
#20 0x912e0668 in aeDispatchAppleEvent ()
#21 0x912e059e in dispatchEventAndSendReply ()
#22 0x912e0445 in aeProcessAppleEvent ()
#23 0x90404211 in AEProcessAppleEvent ()
#24 0x92c36f6f in _DPSNextEvent ()
#25 0x92c366a0 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#26 0x92c2f6d1 in -[NSApplication run] ()
#27 0x000030d2 in CustomApplicationMain (argc=1, argv=-1073744252) at /Users/laurencesanford/Projects/vdrift/tools/osx/SDLMain.m:174
#28 0x000033ca in main (argc=1, argv=0xbffff684) at /Users/laurencesanford/Projects/vdrift/tools/osx/SDLMain.m:275
Current language: auto; currently c++
Angle is: nan
#0 Vamos_Body::Frame::axis_angle (this=0x198e0e70, angle=0xbfffd8b8) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/vamos/body/Frame.cc:178
#1 0x001064cf in Vamos_Body::Gl_Car::transform_body (this=0x198e0e00) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/vamos/body/Gl_Car.cc:506
#2 0x0010cd57 in Vamos_Body::Gl_Car::Update (this=0x198e0e00) at Gl_Car.h:232
#3 0x0013400b in VAMOSWORLD::PhysUpdate (this=0x7289d0, dt=0.00400000019) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/vamosworld.cpp:2403
#4 0x0013a84c in VAMOSWORLD::Update (this=0x7289d0, timefactor=1, fps=250, js=0x1f3140) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/vamosworld.cpp:724
#5 0x0003149b in GAME::Update (this=0x1f12c0) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/game.cpp:224
#6 0x00034301 in GAME::Start (this=0x1f12c0, args=@0xbfffe850) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/game.cpp:1644
#7 0x000870a7 in SDL_main (argc=1, argv=0xc0ac10) at /Users/laurencesanford/Projects/vdrift/tools/osx/../../src/main.cpp:26
#8 0x00003140 in -[SDLMain applicationDidFinishLaunching:] (self=0xc3d2a0, _cmd=0x901bb9a4, note=0xc30ca0) at /Users/laurencesanford/Projects/vdrift/tools/osx/SDLMain.m:196
#9 0x96adc77c in _nsnote_callback ()
#10 0x95610a4a in __CFXNotificationPost ()
#11 0x95610d23 in _CFXNotificationPostNotification ()
#12 0x96ad9a70 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#13 0x96ae3108 in -[NSNotificationCenter postNotificationName:object:] ()
#14 0x92cc0323 in -[NSApplication _postDidFinishNotification] ()
#15 0x92cc0232 in -[NSApplication _sendFinishLaunchingNotification] ()
#16 0x92c39d1e in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()
#17 0x92c39517 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
#18 0x96b01c7f in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
#19 0x96b0198f in _NSAppleEventManagerGenericHandler ()
#20 0x912e0668 in aeDispatchAppleEvent ()
#21 0x912e059e in dispatchEventAndSendReply ()
#22 0x912e0445 in aeProcessAppleEvent ()
#23 0x90404211 in AEProcessAppleEvent ()
#24 0x92c36f6f in _DPSNextEvent ()
#25 0x92c366a0 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#26 0x92c2f6d1 in -[NSApplication run] ()
#27 0x000030d2 in CustomApplicationMain (argc=1, argv=-1073744252) at /Users/laurencesanford/Projects/vdrift/tools/osx/SDLMain.m:174
#28 0x000033ca in main (argc=1, argv=0xbffff684) at /Users/laurencesanford/Projects/vdrift/tools/osx/SDLMain.m:275
EXCEPTION: Vamos_Body::Frame::axis_angle produced NaN axis angle
Debugger stopped.
Program exited with status value:0.
|
|
12-18-2007, 04:28 PM,
|
|
abs1nth
Senior Member
   
|
Posts: 358
Threads: 5
Joined: Sep 2005
|
|
ok in Vamos_Body::Rigid_Body::propagate, in the loop, body_force sometimes is NaN, which results in total_force, total_torque, delta_omega, delta_theta also being NaN. then the call "translate (delta_r - m_body_cm);" causes m_position, m_orientation etc to also be NaN here:
#0 Vamos_Geometry::Three_Vector::operator+= (this=0x12a7070, vec=@0xbfffd444) at src/vamos/geometry/Three_Vector.cc:166
#1 0x00037126 in Vamos_Body::Frame::translate (this=0x12a7070, delta_r=@0xbfffd444) at Frame.h:95
#2 0x00117bac in Vamos_Body::Rigid_Body::propagate (this=0x12a706c, time=0.0040000001899898052) at src/vamos/body/Rigid_Body.cc:474
#3 0x000f3b48 in Vamos_Body::Car::propagate (this=0x12a7000, time=0.0040000001899898052) at src/vamos/body/Car.cc:1058
#4 0x0013b32a in VAMOSWORLD:  hysUpdate (this=0x7adcb0, dt=0.00400000019) at src/vamosworld.cpp:2402
#5 0x00141b82 in VAMOSWORLD::Update (this=0x7adcb0, timefactor=1, fps=250, js=0x278420) at src/vamosworld.cpp:724
#6 0x0003194a in GAME::Update (this=0x2765a0) at src/game.cpp:228
#7 0x000347ad in GAME::Start (this=0x2765a0, args=@0xbfffe7f0) at src/game.cpp:1650
adding a "if (!isnan(body_force[0])) {" at line 434 in Rigid_Body.cc seems to fix the problem, but i really have no clue why
|
|
|