# PVRTexTool crash, Linux 32/64, amtc\_localised.c:8074: DetermineABUpdates assertion failed

**URL:** <https://forums.imgtec.com/t/pvrtextool-crash-linux-32-64-amtc-localised-c-8074-determineabupdates-assertion-failed/1821>\
**Category:** PowerVR Insider\
**Tags:** pvrtextool\
**Created:** [June 25, 2013, 5:50pm UTC](https://forums.imgtec.com/t/pvrtextool-crash-linux-32-64-amtc-localised-c-8074-determineabupdates-assertion-failed/1821 "2013-06-25T17:50:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcward](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/jcward/32/219_2.png) [@jcward](https://forums.imgtec.com/u/jcward)\
**Post date:** [June 25, 2013, 5:50pm UTC](https://forums.imgtec.com/t/pvrtextool-crash-linux-32-64-amtc-localised-c-8074-determineabupdates-assertion-failed/1821/1 "2013-06-25T17:50:14Z")

</div>

Hello,  
  
  
  
Attempting to compress a texture using PVRTC2\_4 crashes (while PVRTC2\_2 and other formats pass.)  
  
  
  
`>./PVRTexToolCL -i test.png -o test.pvr -l -f PVRTC2_4 -q pvrtcbest
………*…*Assertion Failed:/usr/buildxl/buildroot/sdk/branch/UtilitiesSrc/PVRTexTool/Library/Source/Codecs/PVRTC/amtc/amtc_localised.c:8074:fabs(ModVariance) > 0.0
Need a debugger break on line /usr/buildxl/buildroot/sdk/branch/UtilitiesSrc/PVRTexTool/Library/Source/Codecs/PVRTC/amtc/amtc_localised.c:641
PVRTexToolCL: /usr/buildxl/buildroot/sdk/branch/UtilitiesSrc/PVRTexTool/Library/Source/Codecs/PVRTC/amtc/amtc_localised.c:8074: DetermineABUpdates: Assertion `fabs(ModVariance) > 0.0’ failed.
Aborted (core dumped)
`  
  
  
  
I’ve tried the above with a PNG made of random noise and it worked, so there’s a specific problem compressing my texture (which is a spritesheet / atlas), which you can find here:  
  
  
  
[http://onetacoshort.com/temp/test.png](http://onetacoshort.com/temp/test.png)  
  
  
  
Installation details:  
  
  
  
`PVRTexToolCL version 3.40
Uses: PVRTexLib version 4.5 | JpegLib version 6b | Libpng version 1.5.12
`  
  
  
  
Best,  
  
-Jeff

---

<div class="post-metadata">

**Author:** ![dgu](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@dgu](https://forums.imgtec.com/u/dgu)\
**Post date:** [June 26, 2013, 6:29am UTC](https://forums.imgtec.com/t/pvrtextool-crash-linux-32-64-amtc-localised-c-8074-determineabupdates-assertion-failed/1821/2 "2013-06-26T06:29:08Z")

</div>

Hello  
  
i ve tried your sample and the tools effectively crash like you describe but **Succeed** using the GUI TOOLS  
  
Since other format of compression are working, can it be a solution for you ?  
  
I am using **PVRTexTool GUI 4.4** on UBUNTU 32!!!  
  
other format that i tried are taking age by command line but i think a solution is coming …i believe so 🙂  
  
regards  
  
david

---

<div class="post-metadata">

**Author:** ![jcward](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/jcward/32/219_2.png) [@jcward](https://forums.imgtec.com/u/jcward)\
**Post date:** [June 26, 2013, 11:58am UTC](https://forums.imgtec.com/t/pvrtextool-crash-linux-32-64-amtc-localised-c-8074-determineabupdates-assertion-failed/1821/3 "2013-06-26T11:58:00Z")

</div>

Thanks for the response, David. Unfortunately, I’m building our asset workflow, and I need the commandline to produce best quality results (slow is acceptable).  
  
  
  
Also, the above settings crashesd the GUI for me. Steps are:

- Open test.png  
- Click optimize transparent, bleed  
- Click compress  
- Choose “OpenGL ES 2” as the group  
- Choose PVRTCII 4bpp  
- Choose best quality  
- Check generate mipmaps (no other checkboxes)  
- Click encode  
- Crash, terminal shows same output - DetermineABUpdates assertion failed  
  
  
  
My workaround is to use PVRTC1\_4 for now.

---

<div class="post-metadata">

**Author:** ![dgu](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@dgu](https://forums.imgtec.com/u/dgu)\
**Post date:** [June 27, 2013, 9:53am UTC](https://forums.imgtec.com/t/pvrtextool-crash-linux-32-64-amtc-localised-c-8074-determineabupdates-assertion-failed/1821/4 "2013-06-27T09:53:31Z")

</div>

based on your pics, yes it does crash my GUI as well and command line , by selection an another png that i am using for my project it does nt not i am wondering about your setting of png creation then (nearest power of two etc etc)?  
  
  
  
but sure a crash like this is not a normal behavior, only the Team can answer that one 🙂  
  
  
  
regards  
  
david

---

<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:** [July 2, 2013, 2:16pm UTC](https://forums.imgtec.com/t/pvrtextool-crash-linux-32-64-amtc-localised-c-8074-determineabupdates-assertion-failed/1821/5 "2013-07-02T14:16:25Z")

</div>

Hi Jeff,  
  
  
  
Sorry for the delay in answering you - I’ve been investigating and we’ve managed to pin down the issue. I’ve added a temporary fix which will make it into REL3.2, but won’t be present beforehand. A permanent fix should hopefully be available before we actually release though, solving the issue properly. In the meantime, if you want I can provide you with an engineering drop that should solve the issue for now - if you email [DevTech@imgtec.com](mailto:DevTech@imgtec.com), I can send you a copy.  
  
  
  
Thanks,  
  
Tobias

---

<div class="post-metadata">

**Author:** ![jcward](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/jcward/32/219_2.png) [@jcward](https://forums.imgtec.com/u/jcward)\
**Post date:** [July 2, 2013, 3:06pm UTC](https://forums.imgtec.com/t/pvrtextool-crash-linux-32-64-amtc-localised-c-8074-determineabupdates-assertion-failed/1821/6 "2013-07-02T15:06:51Z")

</div>

Thank you Tobias. I’ll send you an email shortly.  
  
  
  
Best  
  
-Jeff
