# PVRTexLib.dll nullptr dereference crash on transcode

**URL:** https://forums.imgtec.com/t/pvrtexlib-dll-nullptr-dereference-crash-on-transcode/3866
**Category:** Uncategorized
**Tags:** pvrtextool
**Created:** [December 22, 2023, 12:11am UTC](https://forums.imgtec.com/t/pvrtexlib-dll-nullptr-dereference-crash-on-transcode/3866 "2023-12-22T00:11:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fireibra](https://avatars.discourse-cdn.com/v4/letter/f/ebca7d/32.png) [@fireibra](https://forums.imgtec.com/u/fireibra)
#### Post date: [December 22, 2023, 12:11am UTC](https://forums.imgtec.com/t/pvrtexlib-dll-nullptr-dereference-crash-on-transcode/3866/1 "2023-12-22T00:11:34Z")

</div>

Recently I’ve been having lots of issues with PVRTexLib.dll crashing in various ways when performing many texture transcodes, and it seems to crash on a random texture each time. Sometimes crashes within a few minutes, sometimes it can go for 30 minutes processing textures and finally crash.

It’s pretty difficult to investigate this - It’s even caused blue screens with codes such as KMODE\_EXCEPTION\_NOT\_HANDLED or ATTEMPTED\_EXECUTE\_OF\_NOEXECUTE\_MEMORY.

Here’s the information I have:  
Exception thrown at 0x00007FFA0B4BE390 (PVRTexLib.dll) in CBuild.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

 ![Untitled](https://us1.discourse-cdn.com/flex015/uploads/imagination1/original/1X/b973c4331032904d3ae3ad3566cc39661ceed420.png)

It is even rare that visual studio can catch the crash, most of the time it either crashes visual studio entirely while running (assuming I ran it through visual studio, otherwise the app itself just crashes) or I get a BSOD.

I am using the latest version (5.5.0). This issue has only recently showed up, as I’ve been using it fine for almost 2 years prior. The program using this has also not changed once in the past 2 years. Any guidance on what the issue could be or how to better debug and investigate it would be much appreciated.

---

<div class="post-metadata">

### Author: ![AlejandroC](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AlejandroC](https://forums.imgtec.com/u/AlejandroC)
#### Post date: [January 5, 2024, 12:27pm UTC](https://forums.imgtec.com/t/pvrtexlib-dll-nullptr-dereference-crash-on-transcode/3866/2 "2024-01-05T12:27:50Z")

</div>

Hi fireibra,

Thanks for reporting this issue.

We will need a way to reproduce the issue ourselves. Could you please provide a code snippet where you show the operations done on each image? We can then put that code to work on a large set of textures to try reprodude it.

Also, could you please provide the specs of your system? (OS version, CPU, GPU, RAM memory).

Best regards,  
Alejandro
