The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2008 Refactor branch problem
06-11-2008, 06:38 AM,
#1
2008 Refactor branch problem
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
Starting VDrift: development-full, 2029M
Home directory: /home/nathan
Settings file: /home/nathan/.vdrift/VDrift.config
Data directory: data
ALSA lib pcm_dmix.c:874Sadsnd_pcm_dmix_open) unable to open slave
SDL initialization successful
Segmentatiefout

A ran it with GDB and got the following output:
Quote:Starting program: /home/nathan/Documenten/bronnen/vdrift-branch/build/vdrift
[Thread debugging using libthread_db enabled]
Starting VDrift: development-full, 2029M
Home directory: /home/nathan
Settings file: /home/nathan/.vdrift/VDrift.config
Data directory: data
[New Thread 0x7fb6b31626f0 (LWP 8726)]
ALSA lib pcm_dmix.c:874Sadsnd_pcm_dmix_open) unable to open slave
SDL initialization successful

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fb6b31626f0 (LWP 8726)]
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00000000004487c1 in OPENGL_UTILITY::CheckForOpenGLErrors (
activity_description=@0x7fffbb18de20, error_output=@0x694cc0)
at src/opengl_utility.cpp:5
#2 0x000000000042a2f5 in GRAPHICS_SDLGL::Init (this=0x7fffbb18e078,
texturepath=@0x7fffbb18dff0, shaderpath=@0x7fffbb18dfe0, resx=800,
resy=600, bpp=16, depthbpp=24, fullscreen=false, shaders=false,
info_output=@0x694ac0, error_output=@0x694cc0) at src/graphics.cpp:44
#3 0x000000000041dcdd in GAME::Start (this=0x7fffbb18e050,
args=@0x7fffbb18e520) at src/game.cpp:41
#4 0x000000000043e8ac in main (argc=1, argv=0x7fffbb18e638) at src/main.cpp:21

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?
Reply


Messages In This Thread
2008 Refactor branch problem - by FFuser - 06-11-2008, 06:38 AM
[No subject] - by joevenzon_phpbb2_import3 - 06-11-2008, 04:10 PM
[No subject] - by FFuser - 06-12-2008, 05:32 AM
[No subject] - by joevenzon_phpbb2_import3 - 06-12-2008, 11:38 AM
[No subject] - by FFuser - 06-12-2008, 02:17 PM
[No subject] - by FFuser - 06-13-2008, 06:20 AM
[No subject] - by joevenzon_phpbb2_import3 - 06-13-2008, 11:53 AM
[No subject] - by FFuser - 06-13-2008, 12:05 PM
[No subject] - by joevenzon_phpbb2_import3 - 06-13-2008, 11:10 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)