[Gtkradiant] svn trunk: hitting "s" in brush primitives mode crashes (NULL pointer)

Rudolf Polzer divVerent at alientrap.org
Fri Jul 4 14:43:12 CDT 2008


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fe34a73b7c0 (LWP 22996)]
0x00000000004552b2 in ConvertTexMatWithQTexture (texMat1=0x0, qtex1=0x0, texMat2=0x1110d58, qtex2=0x12191e0)
    at radiant/brush_primit.cpp:237
237             texMat2[0][0]=s1*texMat1[0][0];
(gdb) bt full
#0  0x00000000004552b2 in ConvertTexMatWithQTexture (texMat1=0x0, qtex1=0x0, texMat2=0x1110d58, qtex2=0x12191e0)
    at radiant/brush_primit.cpp:237
        s1 = 0.03125
        s2 = 0.03125
#1  0x000000000045537b in ConvertTexMatWithQTexture (texMat1=0x0, qtex1=0x0, texMat2=0x1110d58, qtex2=0x12191e0)
    at radiant/brush_primit.cpp:247
No locals.
#2  0x000000000044bfb7 in SetFaceTexdef (f=0x1110ca0, texdef=0x1462a00, brushprimit_texdef=0x0, bFitScale=false,
    pPlugTexdef=0x0) at radiant/brush.cpp:2269
        oldFlags = 0
        oldContents = 134217728
#3  0x00000000004ede1b in SI_SetTexdef_FaceList (texdef_face_list=0x14629c0, b_SetUndoPoint=true, bFit_to_Scale=false)
    at radiant/surfaceplugin.cpp:190
        texdef_to_face = (texdef_to_face_t *) 0x14629c0
        b_isQuake2 = false

Note how it calls with brushprimit_texdef=0x0:

186           for(texdef_to_face = texdef_face_list; texdef_to_face; texdef_to_face = texdef_to_face->next)
187           if (b_isQuake2)
188             SetFaceTexdef_Q2(texdef_to_face->face, &texdef_to_face->orig_texdef, bFit_to_Scale);
189           else
190             SetFaceTexdef(texdef_to_face->face, &texdef_to_face->orig_texdef, NULL);

in brush primitives mode, something has to be set there instead of the
NULL, but what?

Or is there any way to switch back to the old but complete dialog in
surfacedialog.cpp, instead of the plugin one that apparently does not
support brush primitives?

Rudolf "divVerent" Polzer



More information about the Gtkradiant mailing list