project-navigation
Personal tools

Author Topic: Segfaul in ufomodel. (rev29840)  (Read 2747 times)

Offline O01eg

  • Rookie
  • ***
  • Posts: 73
    • View Profile
Segfaul in ufomodel. (rev29840)
« on: May 10, 2010, 11:26:09 am »
When I call `make models` I got segfault at first map:
Information from gdb:
Quote
(gdb) r -mdx -overwrite -v  -s 0.5 -f models/pilots/male/head01.md2
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /mnt/another/game.src/ufoai/ufomodel -mdx -overwrite -v  -s 0.5 -f models/pilots/male/head01.md2
[Thread debugging using libthread_db enabled]
---- ufomodel 0.2 ----

---- filesystem initialization -----
Adding game dir: /mnt/other/games/ufoai.d/share/ufoai/base
Added packfile /mnt/other/games/ufoai.d/share/ufoai/base/0base.pk3 (8 files)
Added packfile /mnt/other/games/ufoai.d/share/ufoai/base/0maps.pk3 (535 files)
Added packfile /mnt/other/games/ufoai.d/share/ufoai/base/0materials.pk3 (45 files)
Added packfile /mnt/other/games/ufoai.d/share/ufoai/base/0media.pk3 (10 files)
Added packfile /mnt/other/games/ufoai.d/share/ufoai/base/0models.pk3 (1775 files)
Added packfile /mnt/other/games/ufoai.d/share/ufoai/base/0music.pk3 (50 files)
Added packfile /mnt/other/games/ufoai.d/share/ufoai/base/0pics.pk3 (3781 files)
Added packfile /mnt/other/games/ufoai.d/share/ufoai/base/0shaders.pk3 (26 files)
Added packfile /mnt/other/games/ufoai.d/share/ufoai/base/0snd.pk3 (266 files)
Added packfile /mnt/other/games/ufoai.d/share/ufoai/base/0ufos.pk3 (98 files)
Added packfile /mnt/other/games/ufoai.d/share/ufoai/base/0videos.pk3 (1 files)
Adding game dir: /home/o01eg/.ufoai/2.3-dev/base
Adding game dir: ./base
Added packfile ./base/0base.pk3 (8 files)
Added packfile ./base/0maps.pk3 (535 files)
Added packfile ./base/0materials.pk3 (45 files)
Added packfile ./base/0media.pk3 (10 files)
Added packfile ./base/0models.pk3 (1775 files)
Added packfile ./base/0music.pk3 (50 files)
Added packfile ./base/0pics.pk3 (3781 files)
Added packfile ./base/0shaders.pk3 (26 files)
Added packfile ./base/0snd.pk3 (266 files)
Added packfile ./base/0ufos.pk3 (98 files)
Added packfile ./base/0videos.pk3 (1 files)
using ./base for writing
- model 'models/pilots/male/head01.md2'

Program received signal SIGSEGV, Segmentation fault.
0x0000000000416e71 in R_ModCalcNormalsAndTangents (mesh=0x297fd88, framenum=0, translate=0x2988040, backlerp=qtrue)
    at src/client/renderer/r_model_alias.c:168
168         const int len = mesh->revIndexes.length;
(gdb) bt
#0  0x0000000000416e71 in R_ModCalcNormalsAndTangents (mesh=0x297fd88, framenum=0, translate=0x2988040, backlerp=qtrue)
    at src/client/renderer/r_model_alias.c:168
#1  0x000000000041bc68 in R_FillArrayData (mod=0x2987ed0, mesh=0x297fd88, backlerp=0, framenum=0, oldframenum=0, prerender=qtrue)
    at src/client/renderer/r_model_alias.c:582
#2  0x000000000041c2df in _R_ModLoadArrayDataForStaticModel (mod=0x2987ed0, mesh=0x297fd88, loadNormals=qfalse)
    at src/client/renderer/r_model_alias.c:636
#3  0x000000000042000b in R_ModLoadAliasMD2Model (mod=0x2987d38, buffer=0x297ffc8 "IDP2\b", bufSize=31976, loadNormals=qfalse)
    at src/client/renderer/r_model_md2.c:533
#4  0x0000000000406b22 in LoadModel (name=0x62b8b0 "models/pilots/male/head01.md2") at src/tools/ufomodel/ufomodel.c:210
#5  0x0000000000406dda in PrecalcNormalsAndTangents (filename=0x62b8b0 "models/pilots/male/head01.md2")
    at src/tools/ufomodel/ufomodel.c:283
#6  0x0000000000407b6e in main (argc=8, argv=0x7fffffffdaa8) at src/tools/ufomodel/ufomodel.c:630
(gdb) p *mesh
$3 = {num_verts = 729, name = "models/pilots/male/head01.md2", '\000' <repeats 34 times>, vertexes = 0x298c188, stcoords = 0x298aa38,
  verts = 0x2990658, texcoords = 0x29a8628, normals = 0x2997988, tangents = 0x299ecb8, next_verts = 0x0, next_normals = 0x0,
  next_tangents = 0x0, num_tris = 816, indexes = 0x2988388, revIndexes = 0x0, num_bones = 0, bonesVertexes = 0x0, num_skins = 1,
  skinHeight = 256, skinWidth = 256, skins = 0x297fed8}

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Segfaul in ufomodel. (rev29840)
« Reply #1 on: May 10, 2010, 12:06:12 pm »
add this to the tracker please.