Skip to content

Read access violation at ResourceData::TranslatePtr #11

@AngryCarrot789

Description

@AngryCarrot789

I'm using the latest source of this project, not entirely sure on the zlib version but it's from late 2015. The model i was trying to convert was the buzzard object (update/x64/dlcpacks/patchday8ng/dlc.rpf/x64/levels/gta5/vehicles.rpf), and the exception is thrown while converting buzzard2.yft.

the IndexBuffer has 4 elements, and only the 1st one is non-null, the rest are all nullptr, so when (in the Geometry constructor) it reaches the 2nd element, it tried TRANSLATEPTR2 on a nullptr

Here's the stack trace

ytdydryddyft2txddffcol.exe!ResourceData::TranslatePtr(Ptr & ptr) Line 179	C++
ytdydryddyft2txddffcol.exe!VertexBuffer::VertexBuffer(ResourceData * resData=0x0093eb3c) Line 465	C++
ytdydryddyft2txddffcol.exe!Geometry::Geometry(ResourceData * resData=0x0093eb3c) Line 508	C++
ytdydryddyft2txddffcol.exe!PtrCollection<Geometry>::PtrCollection<Geometry>(ResourceData * resData=0x0093eb3c) Line 213	C++
ytdydryddyft2txddffcol.exe!Model::Model(ResourceData * resData=0x0093eb3c) Line 533	C++
ytdydryddyft2txddffcol.exe!PtrCollection<Model>::PtrCollection<Model>(ResourceData * resData=0x0093eb3c) Line 213	C++
ytdydryddyft2txddffcol.exe!FragDrawable::FragDrawable(ResourceData * resData=0x0093eb3c) Line 657	C++
ytdydryddyft2txddffcol.exe!FragType::FragType(ResourceData * resData=0x0093eb3c) Line 763	C++
ytdydryddyft2txddffcol.exe!model_converter::convert_yft_to_dff(char * srcpath=0x0093f1a8, char * dstpath=0x0093ed34, char * modelname=0x0093ee40) Line 1068	C++
ytdydryddyft2txddffcol.exe!ConvertYFT(char * filepath=0x0093f1a8) Line 72	C++
ytdydryddyft2txddffcol.exe!SearchFiles(const char * lpszFileName=0x002d4538, void(*)(const char *) lpSearchFunc=0x002590f9, int bInnerFolders=1) Line 64	C++
ytdydryddyft2txddffcol.exe!main() Line 87	C++
[External Code]	
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]	

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions