# Render error after WKWebView crash

**URL:** <https://discourse.threejs.org/t/render-error-after-wkwebview-crash/61007>\
**Category:** Questions\
**Tags:** ios, textures\
**Created:** [February 2, 2024, 9:56am UTC](https://discourse.threejs.org/t/render-error-after-wkwebview-crash/61007 "2024-02-02T09:56:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![qinyequan](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/qinyequan/32/44363_2.png) [@qinyequan](https://discourse.threejs.org/u/qinyequan)\
**Post date:** [February 2, 2024, 9:56am UTC](https://discourse.threejs.org/t/render-error-after-wkwebview-crash/61007/1 "2024-02-02T09:56:53Z")

</div>

# render error after WKWebView crash

system： IOS，15.X 16.X 17.X this problem will occur  
i use ktx2loader and uastc.  
.ktx2 file rendering effect is 0xff00ff  
.jpg file rendering effect is 0x000000

I readed three.js code, not find the clue.  
The rendering effect is occur after WKWebView crash and reload the HTML  
Please help me.

### Reproduction steps

1.open my page  
2.open other html page  
3.WKWebView crash and my page reload  
4.back my page find the problem

 ![KIM20240202-049181](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/9/2/92b05683b95bd05fe15b71b8f1ab754f0dffa33f.jpeg)  
 ![KIM20240202-577633](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/a/e/aea35132e6b1d1f41c40de8fb0f23ded4e775d20.png)

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [February 2, 2024, 9:58am UTC](https://discourse.threejs.org/t/render-error-after-wkwebview-crash/61007/2 "2024-02-02T09:58:41Z")

</div>

Please share both JPG and KTX2 textures as well as the code that you use to load and render. Ideally, you use some sort of live example (e.g. [three.js dev template - module - JSFiddle - Code Playground](https://jsfiddle.net/g3atw6k5/)) that demonstrates the issue.

---

<div class="post-metadata">

**Author:** ![qinyequan](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/qinyequan/32/44363_2.png) [@qinyequan](https://discourse.threejs.org/u/qinyequan)\
**Post date:** [February 4, 2024, 2:59am UTC](https://discourse.threejs.org/t/render-error-after-wkwebview-crash/61007/3 "2024-02-04T02:59:37Z")

</div>

The question only appears after a WKWebView crash on IOS. so I’m afraid Can’t find the problem even if I provide examples.I will post an example later.

---

<div class="post-metadata">

**Author:** ![qinyequan](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/qinyequan/32/44363_2.png) [@qinyequan](https://discourse.threejs.org/u/qinyequan)\
**Post date:** [February 4, 2024, 3:53am UTC](https://discourse.threejs.org/t/render-error-after-wkwebview-crash/61007/4 "2024-02-04T03:53:00Z")

</div>

> **[Edit fiddle - JSFiddle - Code Playground](https://jsfiddle.net/qinyequan/otvcw6n7/2/)**
>
> Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
