Skip to content

New crash related to textures #1617

@Dutchman101

Description

@Dutchman101

Describe the bug
There is a newly introduced, way too popular crash on offset 0x00014a86, which was first seen on build r20579.

Dumptrace
CONTEXT:  (.ecxr)
eax=2dca1a78 ebx=00000002 ecx=0000001c edx=00000549 esi=2dca1a78 edi=2d99ad18
eip=5dfd4a86 esp=0177fa10 ebp=0177fa10 iopl=0         nv up ei pl nz na pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010206
multiplayer_sa!OnMY_RwTextureDestroy+0x6:
5dfd4a86 83785401        cmp     dword ptr [eax+54h],1 ds:002b:2dca1acc=????????
Resetting default scope

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 5dfd4a86 (multiplayer_sa!OnMY_RwTextureDestroy+0x00000006)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 00000000
   Parameter[1]: 2dca1acc
Attempt to read from address 2dca1acc

PROCESS_NAME:  gta_sa.exe

READ_ADDRESS:  2dca1acc 

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE_STR:  c0000005

EXCEPTION_PARAMETER1:  00000000

EXCEPTION_PARAMETER2:  2dca1acc

STACK_TEXT:  
0177fa10 5dfd4860     2dca1a78 0074da49 2d99ad18 multiplayer_sa!OnMY_RwTextureDestroy+0x6
0177fa40 0074da49     2dca1a78 00000001 0074e171 multiplayer_sa!HOOK_RwTextureDestroy+0x10
WARNING: Stack unwind information not available. Following frames may be wrong.
0177fa4c 0074e171     2d9a4b50 240412d0 2db629e8 gta_sa!RpMaterialDestroy (0x34da49)
0177fa64 0074cd3e     240412f0 2dc2dcc0 0074a366 gta_sa!rpMaterialListDeinitialize (0x34e171)
00000000 00000000     00000000 00000000 00000000 gta_sa!RpGeometryDestroy (0x34cd3e)


FAULTING_SOURCE_LINE:  C:\TeamCity\buildAgent\work\675e5b8e8f135823\Client\multiplayer_sa\CMultiplayerSA_RwResources.cpp @ 77

FAULTING_SOURCE_LINE_NUMBER:  77

SYMBOL_NAME:  multiplayer_sa!OnMY_RwTextureDestroy+6

MODULE_NAME: multiplayer_sa.dll

FAILURE_BUCKET_ID:  INVALID_POINTER_READ_c0000005_multiplayer_sa.dll!OnMY_RwTextureDestroy

See below crash stats:

Untitled

As we know, each count is a victim, it remains 1 even if they get the crash multiple times. So i think this isssue should block 1.5.8 release.

The build where it started (r20579) introduced the following changes:

Untitled2

I used offset variance and filtered from 1.5.6 on, so it's for sure that one of these changes caused the crash. It actually makes sense, because DX related changes fit the stack trace at the beginning of this issue.

To reproduce
Unknown - used crash stats after it happened to myself, which was a crash on disconnect

Version
r20579 and later

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions