![]() |
2008 Refactor branch problem - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4) +--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9) +--- Thread: 2008 Refactor branch problem (/showthread.php?tid=962) |
2008 Refactor branch problem - FFuser - 06-11-2008 Hi I'm intrested in the 2008 refactor (I hope we do not get a 2009, 2010, ..., refactorings) so I tried it out. After some fiddling with SConscript (to remove the libbulletcollision) and src/pathmanager.cpp (to hardcodde "data") it compiled and started to run somewhat. It segfaulted Quote:nathan@gamma:~/Documenten/bronnen/vdrift-branch$ ./build/vdrift A ran it with GDB and got the following output: Quote:Starting program: /home/nathan/Documenten/bronnen/vdrift-branch/build/vdrift Removing the code in the function OPENGL_UTILITY::CheckForOpenGLErrors made the game run and work (I could start a practice race, the only thing I could do their was moving my point of view, driving etc didn't work but I guess that is Not Yet (Re)Implemented). So any idea why VDrift is crashing? - joevenzon - 06-11-2008 Hey, thanks for trying the refactor! Yeah, so far only basic track loading and some GUI functionality is done. I've just barely started work on re-implementing the car physics. It looks like it's crashing on the line: Code: GLenum gl_error = glGetError(); That's pretty weird. What kind of graphics card, drivers, etc do you have? - FFuser - 06-12-2008 Yeah, I had to mention them in the first place :oops: Intel (GMA 950, not the best card, I know) and the intel xserver-xorg-video-intel 2.2.1(-1ubuntu13) on Ubuntu Hardy. Previous version of VDrift, and other 3D games do work without problems (and as said, without that line it works perfectly too). - joevenzon - 06-12-2008 Are there any newer xserver versions or drivers you could try? If not, is there some kind of if statement we could come up with so that the line isn't executed if it'll cause a crash? - FFuser - 06-12-2008 joevenzon Wrote:Are there any newer xserver versions or drivers you could try?Maybe, compiling intel drivers is not really what I want, but I could try. EDIT: Well, I recompiled (Used git for that, probably not the best idea) them and ended up with no direct rendering..., i uninstalled them and ended up with no X..., I reinstalled the normal ubuntu packages and everything was working again... So far for trying recompiling the drivers... Quote:If not, is there some kind of if statement we could come up with so that the line isn't executed if it'll cause a crash? I guess I should have a look on the internet. EDIT: no-one else seems to have this problem - FFuser - 06-13-2008 I debugged some more: I do have 2 executables: vdrift and vdrift-crash vdrift doesn't have the offending line, vdrift-crash has When I delete ~/.vdrift vdrift-crash crashes, and ./vdrift doesn't The backtrace looks different (but I remember the first time I had the problem it was like this) Quote:(gdb) bt(Now it crashes in Xrandr) When I run the vdrift trunk (~/.vdrift is created) and disable shaders all versions seem to run correctly (vdrift-crash doesn't crash anymore) - joevenzon - 06-13-2008 Can you try commenting out graphics.cpp line 44 in the crashing version of the refactor? Maybe I'm trying to do the openGL get error function before I'm supposed to. - FFuser - 06-13-2008 joevenzon Wrote:Can you try commenting out graphics.cpp line 44 in the crashing version of the refactor? Maybe I'm trying to do the openGL get error function before I'm supposed to. That does the trick, it works now - joevenzon - 06-13-2008 Ah hah! I'll make the change and commit it. Thanks for testing that out! |