[Gtkradiant] [Bug 306] New: Patch 'Natural' texturing function Crashes Radiant

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Tue, 15 Jan 2002 20:49:44 -0600


http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=306

           Summary: Patch 'Natural' texturing function Crashes Radiant
           Product: GtkRadiant
           Version: 1.2-nightly
        OS/Version: Windows 2000
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: editor
        AssignedTo: ttimo@idsoftware.com
        ReportedBy: eviltypeguy@qeradiant.com


Steps to reproduce:

1) Create a new brush
2) Make it a simple patch mesh
3) Clone patch mesh by hitting space bar
4) Select the new clone
5) Use the patch inspector on it
6) Hit the naturalize patch button

Result:
crashes on:
radiant/pmesh.cpp:710
  int nWidth = (int)(p->d_texture->width * g_PrefsDlg.m_fTextureDefaultScale);

Of interest is p->d_texture's value:
p->width: 3
p->height: 3
p->contents: -842150451
p->flags: -842150451
p->value: -842150451
p->type: -842150451
p->d_texture: 0xcdcdcdcd
epairs: 0xcdcdcdcd
pData: 0xcdcdcdcd

Obviously the problem is that d_texture is NULL causing problems with the p-
>d_texture->width * statement above. What's causing it is obviously somewhere 
inside of clone/duplicate...



------- You are receiving this mail because: -------
Whoops!  I have no idea!