# Web SDK Memory Out Of Bounds exception

**URL:** <https://forum.deepar.ai/t/web-sdk-memory-out-of-bounds-exception/31>\
**Category:** SDK\
**Tags:** web, headers, content-encoding, exception, memory-out-of-bounds\
**Created:** [August 17, 2022, 7:12pm UTC](https://forum.deepar.ai/t/web-sdk-memory-out-of-bounds-exception/31 "2022-08-17T19:12:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [August 17, 2022, 7:12pm UTC](https://forum.deepar.ai/t/web-sdk-memory-out-of-bounds-exception/31/1 "2022-08-17T19:12:20Z")

</div>

If you get this error while using DeepAR on your domain, you should check the metadata header settings (Content-Encoding and Content-Type) for .js, .wasm, model and effect files on your server.

These are explained in the [getting started guide](https://docs.deepar.ai/deepar-sdk/deep-ar-sdk-for-web/getting-started)

You can also Inspect your page and compare the metadata headers to one of our [demo examples](https://sdk.developer.deepar.ai/virtualTryOn/index.html). This should make it any mismatches easier to spot.

---

<div class="post-metadata">

**Author:** ![psychicpotato](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/psychicpotato/32/46_2.png) [@psychicpotato](https://forum.deepar.ai/u/psychicpotato)\
**Post date:** [August 18, 2022, 6:47pm UTC](https://forum.deepar.ai/t/web-sdk-memory-out-of-bounds-exception/31/2 "2022-08-18T18:47:32Z")

</div>

Hi Jelena,

Thanks for the message. We’ve checked our content-type headers for all the necessary files, but still are encountering the same ‘Memory Out of Bounds’ error message. Did we miss something?

Website is here for your reference:  
[https://www.tvasurg.ca/test\_AST/](https://www.tvasurg.ca/test_AST/)

Thanks!  
Alb

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [September 2, 2022, 11:55am UTC](https://forum.deepar.ai/t/web-sdk-memory-out-of-bounds-exception/31/3 "2022-09-02T11:55:01Z")

</div>

@psychicpotato We had a look at your issue. It looks like your content-type is correct, but the aviators file somehow got corrupted.

Could you please try with this version of the file?

[aviators.deepar.zip](https://forum.deepar.ai/uploads/short-url/mE6maevLSDDOX8fseXoHPHqMjNQ.zip) (565.6 KB)

---

<div class="post-metadata">

**Author:** ![sushmitha\_komula](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/sushmitha_komula/32/852_2.png) [@sushmitha\_komula](https://forum.deepar.ai/u/sushmitha_komula)\
**Post date:** [April 24, 2024, 10:02am UTC](https://forum.deepar.ai/t/web-sdk-memory-out-of-bounds-exception/31/4 "2024-04-24T10:02:55Z")

</div>

i had two helmet model For the first helmet tracking it is perfect and working fine but when i am using the second helmet model Facing the memory out of bounds Exception  
The metadata headers are correct and the project file size is 7.6MB(second helmet)  
can you please let me know what need to be checked to remove this error

Can u give me clear idea when the memory out of bounds errors throws and table index is out of bounds errors throws

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [April 26, 2024, 1:45pm UTC](https://forum.deepar.ai/t/web-sdk-memory-out-of-bounds-exception/31/5 "2024-04-26T13:45:16Z")

</div>

Hi, sorry but we don’t have enough info to reliably reproduce this issue, last I saw you had corrupted .deepar files issues which I’m not sure how it could have happened but it could be happening again.

---

<div class="post-metadata">

**Author:** ![sushmitha\_komula](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/sushmitha_komula/32/852_2.png) [@sushmitha\_komula](https://forum.deepar.ai/u/sushmitha_komula)\
**Post date:** [May 2, 2024, 6:19am UTC](https://forum.deepar.ai/t/web-sdk-memory-out-of-bounds-exception/31/6 "2024-05-02T06:19:51Z")

</div>

While using the DeepAR 4.3.0 i am able to get the effect correctly while using DeepAR 4.4.0 it is throwing the memory out of bounds errors

where can i get the 4.3.0 version of DeepAR

---

<div class="post-metadata">

**Author:** ![Shashidhara\_Holla](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/shashidhara_holla/32/872_2.png) [@Shashidhara\_Holla](https://forum.deepar.ai/u/Shashidhara_Holla)\
**Post date:** [May 16, 2024, 11:38am UTC](https://forum.deepar.ai/t/web-sdk-memory-out-of-bounds-exception/31/7 "2024-05-16T11:38:00Z")

</div>

Hi Jelena,

I am having a similar issue for the shoe-try-on sample application ( [GitHub - DeepARSDK/shoetryon-web-js: Shoe try-on example app with DeepAR Web SDK](https://github.com/DeepARSDK/shoetryon-web-js?tab=readme-ov-file) ).

I am not able to load one of my deepar file. Its throwing memory out of bounds exception. Can you please help me resolve the issue? I am not allowed to attach the whole codebase here.

Please send me your email id, I will send the whole codebase and also the deepar file which I am trying to upload there.
