# PVRTexLib crashing

**URL:** <https://forums.imgtec.com/t/pvrtexlib-crashing/1354>\
**Category:** PowerVR Insider\
**Tags:** pvrtextool\
**Created:** [March 29, 2012, 12:53pm UTC](https://forums.imgtec.com/t/pvrtexlib-crashing/1354 "2012-03-29T12:53:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreasloew-2](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/andreasloew-2/32/140_2.png) [@andreasloew-2](https://forums.imgtec.com/u/andreasloew-2)\
**Post date:** [March 29, 2012, 12:53pm UTC](https://forums.imgtec.com/t/pvrtexlib-crashing/1354/1 "2012-03-29T12:53:36Z")

</div>

I have a case when Transcode to PVRTC4 crashes reproducible while compressing the image.  
  
  
  
  
  
  
  
  
Crashed Thread: 42  
  
  
  
  
  
Exception Type: EXC\_BAD\_ACCESS (SIGSEGV)  
  
  
Exception Codes: KERN\_INVALID\_ADDRESS at 0x000000007fd04f7f  
  
  
  
  
  
VM Regions Near 0x7fd04f7f:  
  
  
&nbsp;&nbsp;&nbsp;&nbsp;MALLOC\_TINY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;000000007f800000-000000007fb00000 [3072K] rw-/rwx SM=PRV  
  
  
–\>  
  
  
&nbsp;&nbsp;&nbsp;&nbsp;\_\_TEXT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;000000008fe7c000-000000008feaf000 [204K] r-x/rwx SM=COW /usr/lib/dyld  
  
  
  
  
  
Application Specific Information:  
  
  
objc[1146]: garbage collection is OFF  
  
  
  
  
  
  
  
  
Thread 42 Crashed:  
  
  
0&nbsp;&nbsp;&nbsp;de.code-and-web.TexturePacker &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x002a7e0e CreateCandidatesFromStats + 1838  
  
  
1&nbsp;&nbsp;&nbsp;de.code-and-web.TexturePacker &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x002a1802 RunAGenerateStatsSetThread + 10322  
  
  
2&nbsp;&nbsp;&nbsp;libsystem\_c.dylib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x936f9ed9 \_pthread\_start + 335  
  
  
3&nbsp;&nbsp;&nbsp;libsystem\_c.dylib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x936fd6de thread\_start + 34

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)\
**Post date:** [March 29, 2012, 1:06pm UTC](https://forums.imgtec.com/t/pvrtexlib-crashing/1354/2 "2012-03-29T13:06:31Z")

</div>

Hi Andreas,  
  
Would it be possible to get a copy of the image? You can either post the image to the forum or send it to [devtech@imgtec.com](mailto:devtech@imgtec.com) and I’ll be happy to take a look at what’s going on 🙂  
  
Thanks,  
  
Tobias

---

<div class="post-metadata">

**Author:** ![andreasloew-2](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/andreasloew-2/32/140_2.png) [@andreasloew-2](https://forums.imgtec.com/u/andreasloew-2)\
**Post date:** [March 29, 2012, 1:20pm UTC](https://forums.imgtec.com/t/pvrtexlib-crashing/1354/3 "2012-03-29T13:20:03Z")

</div>

Just sent it by mail. Hope it reaches you since it is 10mb.

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)\
**Post date:** [March 29, 2012, 1:25pm UTC](https://forums.imgtec.com/t/pvrtexlib-crashing/1354/4 "2012-03-29T13:25:26Z")

</div>

Hmm, that should be fine, it might just take a while to get here I guess! I’ll take a look once it’s arrived. Thanks!

---

<div class="post-metadata">

**Author:** ![andreasloew-2](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/andreasloew-2/32/140_2.png) [@andreasloew-2](https://forums.imgtec.com/u/andreasloew-2)\
**Post date:** [March 29, 2012, 4:20pm UTC](https://forums.imgtec.com/t/pvrtexlib-crashing/1354/5 "2012-03-29T16:20:36Z")

</div>

any update?

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)\
**Post date:** [April 2, 2012, 7:26am UTC](https://forums.imgtec.com/t/pvrtexlib-crashing/1354/6 "2012-04-02T07:26:45Z")

</div>

It looks like it's a compressor bug, rather than any of the intermediate code - so I'm just waiting on the pvrtc team to give me a fresh drop of the compressor. I'm not sure yet what it is about this particular image that causes the crash. I'll let you know whether the new code fixes the issue or not when i've got it integrated - but this is likely to take a few days at this point.  
  
  
Tobias2012-04-02 09:27:02

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)\
**Post date:** [April 25, 2012, 7:25am UTC](https://forums.imgtec.com/t/pvrtexlib-crashing/1354/7 "2012-04-25T07:25:22Z")

</div>

Hi Andreas,  
  
There’s a new version of PVRTexTool available on the website now which fixes this issue. Sorry it took so long! Let me know if you have any further problems.  
  
Thanks,  
  
Tobias
