Looking4Group / L4G_Core

Looking4Group Core
http://looking4group.eu
GNU General Public License v2.0
37 stars 73 forks source link

Fix VMap Tools Compilation #3874

Closed cameronjphillips closed 7 years ago

cameronjphillips commented 7 years ago

Allows VMap extractor and VMap assembler to compile using CMake.

Bug: On Linux, when the vmap extractor finishes creating .wmo files it crashes with a memory error. GDB Backtrace: `#0 0x00007ffff6d8f670 in raise () from /usr/lib/libc.so.6

1 0x00007ffff6d90d00 in abort () from /usr/lib/libc.so.6

2 0x00007ffff76bbfd5 in __gnu_cxx::__verbose_terminate_handler () at /build/gcc-multilib/src/gcc/libstdc++-v3/libsupc++/vterminate.cc:95

3 0x00007ffff76b9be6 in cxxabiv1::terminate (handler=) at /build/gcc-multilib/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:47

4 0x00007ffff76b9c31 in std::terminate () at /build/gcc-multilib/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:57

5 0x00007ffff76b9e73 in cxxabiv1::cxa_throw (obj=, tinfo=0x7ffff79a5750 , dest=0x7ffff76b7ed0 <std::bad_alloc::~bad_alloc()>) at /build/gcc-multilib/src/gcc/libstdc++-v3/libsupc++/eh_throw.cc:93

6 0x00007ffff76ba3dc in operator new (sz=sz@entry=38749949616) at /build/gcc-multilib/src/gcc/libstdc++-v3/libsupc++/new_op.cc:54

7 0x00007ffff76ba445 in operator new[] (sz=sz@entry=38749949616) at /build/gcc-multilib/src/gcc/libstdc++-v3/libsupc++/new_opv.cc:32

8 0x0000000000406ad0 in Model::open (this=this@entry=0x7fffffffd030) at /home/Looking4Group/L4G_Core/tools/vmap_extractor_v3/vmapextract/model.cpp:49

9 0x000000000040628f in ADTFile::init (this=this@entry=0x735410, map_num=0, tileX=tileX@entry=27, tileY=tileY@entry=29) at /home/Looking4Group/L4G_Core/tools/vmap_extractor_v3/vmapextract/adtfile.cpp:152

10 0x0000000000407b1b in ParsMapFiles () at /home/Looking4Group/L4G_Core/tools/vmap_extractor_v3/vmapextract/vmapexport.cpp:235

11 0x000000000040484f in main (argc=, argv=) at /home/Looking4Group/L4G_Core/tools/vmap_extractor_v3/vmapextract/vmapexport.cpp:520

`