# Out of video memory trying to allocate a texture

**URL:** <https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine\
**Created:** [January 7, 2017, 7:01am UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143 "2017-01-07T07:01:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Killerzwerg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Killerzwerg](https://forums.unrealengine.com/u/Killerzwerg)\
**Post date:** [January 7, 2017, 7:01am UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/1 "2017-01-07T07:01:33Z")

</div>

Hey Guys,  
I have added the grass tool into my landscape material in UE4.14.1 and wanted to edit some areas, then this happened:  
 ![268997-image-94622.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/2/ff2a417d69cbad9dceecf2b2b17e743263b8067a.png)  
I had this problem never before, it must be a problem with the grass tool or what do you think?

My gpu is a “NVIDIA GeForce GTX 980 Ti” with 6gb memory size:  
 ![Unbenannt2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/d/14dc76c0fc2fad84f2240288f3738d172e6e7906.png)  
others: intel i7-5820K, 64gb Ram

I have changed the quality of the editor from epic to low but it happens too…  
Same result if only the landscape is loaded with a directional light…

**Memory used in persistent level:**  
Epic settings: 1838mb  
Low settings: 1484mb  
**Memory used with only landscape opened and directional light added:**  
Epic settings: 1345mb  
Low Settings: 1013mb

I have Win7 installed, would it be better to install Win10 because of Dx12?

---

<div class="post-metadata">

**Author:** ![Killerzwerg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Killerzwerg](https://forums.unrealengine.com/u/Killerzwerg)\
**Post date:** [January 8, 2017, 5:30am UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/2 "2017-01-08T05:30:10Z")

</div>

I have tested this problem a little more out:

In the first minute I´m painting on the landscape, the video memory increases to about 6gb, after this point, it increases only slow, after 3-5minutes the editor crashes with the message above…  
If I save the changes before it crashes, the complete video memory gets emptied.

Maybe there´s no problem with the grasstool, but with the video memory management?

Edit: It happens with a new Landscape too!

---

<div class="post-metadata">

**Author:** ![UE4Hobbyist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UE4Hobbyist](https://forums.unrealengine.com/u/UE4Hobbyist)\
**Post date:** [January 8, 2017, 10:12am UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/3 "2017-01-08T10:12:41Z")

</div>

I had the same problem with a R9 390 (8gb memory). It went away on its own

---

<div class="post-metadata">

**Author:** ![Killerzwerg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Killerzwerg](https://forums.unrealengine.com/u/Killerzwerg)\
**Post date:** [January 8, 2017, 2:12pm UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/4 "2017-01-08T14:12:30Z")

</div>

Yeah I think so, after I´m finished with Landscape painting^^

---

<div class="post-metadata">

**Author:** ![Hevedy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hevedy](https://forums.unrealengine.com/u/Hevedy)\
**Post date:** [January 8, 2017, 5:22pm UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/5 "2017-01-08T17:22:05Z")

</div>

> [@Killerzwerg;647316](#):
>
> I have Win7 installed, would it be better to install Win10 because of Dx12?

Win10 and DX12 changes nothing. PLus DX12 is not complete supported here I think.

---

<div class="post-metadata">

**Author:** ![Killerzwerg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Killerzwerg](https://forums.unrealengine.com/u/Killerzwerg)\
**Post date:** [January 8, 2017, 5:30pm UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/6 "2017-01-08T17:30:05Z")

</div>

> [@Hevedy;647943](#):
>
> Win10 and DX12 changes nothing. PLus DX12 is not complete supported here I think.

I thought so^^  
I had it installed win10 1 year ago, but got no connection to steam…

---

<div class="post-metadata">

**Author:** ![Elleclouds](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elleclouds](https://forums.unrealengine.com/u/Elleclouds)\
**Post date:** [May 31, 2017, 8:54pm UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/7 "2017-05-31T20:54:32Z")

</div>

I just started getting this error also. I have an i7 6700k + 1080 video card + 16gb ram. Is there a fix for this?

---

<div class="post-metadata">

**Author:** ![IronicParadox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ironicparadox/32/1194531_2.png) [@IronicParadox](https://forums.unrealengine.com/u/IronicParadox)\
**Post date:** [June 1, 2017, 3:57pm UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/8 "2017-06-01T15:57:16Z")

</div>

This happens for both ram and vram. The best thing to do is to change the editor settings to show the stats and pay attention to the memory usage. Go to editor settings\>type “show frame rate and memory”\>click the checkbox. Now you’ll see the stats in the top right of the main editor window. If the memory get’s beyond a certain amount, then save\>close editor\>reopen editor.

The editor is absolutely horrible about respecting physical ram and will leave all sorts of memory tied up for no reason (probably undo history, if I had to take a guess). Doing anything with large landscapes, like a change to a material that is used across all components, is one way to blow out your ram because it has to recompute all the shaders and the editor thinks it’s a good idea to just allocate 200000000000gb of ram all at once to do it, rather than sequentially chunk it out into small pieces of ram at a time. One reliable way to explode your ram is to make a large landscape and then import layer data from a png or something(world machine splat maps are an example). Do that for 5 or 6 layers and you’ll see the ram start climbing up to ridiculous levels.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [June 2, 2017, 8:03am UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/9 "2017-06-02T08:03:34Z")

</div>

Report this on Answerhub. It’s quite possibly a memory leak.

---

<div class="post-metadata">

**Author:** ![IronicParadox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ironicparadox/32/1194531_2.png) [@IronicParadox](https://forums.unrealengine.com/u/IronicParadox)\
**Post date:** [June 2, 2017, 5:46pm UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/10 "2017-06-02T17:46:19Z")

</div>

It isn’t a memory leak, it’s just poor memory management. I’d rather it take 3x as long to shader compile a landscape, if it meant that I didn’t run out of vram or didn’t spill over from ram into the pagefile.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [June 3, 2017, 10:48am UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/11 "2017-06-03T10:48:32Z")

</div>

If y’all report this stuff on Answerhub rather than here, there’s a chance of it being changed or looked into.

Provide a good repro case and let Epic know.

---

<div class="post-metadata">

**Author:** ![sbnewsom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sbnewsom](https://forums.unrealengine.com/u/sbnewsom)\
**Post date:** [June 21, 2017, 3:55am UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/12 "2017-06-21T03:55:15Z")

</div>

I’m flabbergasted by how this has been happening the last couple of engine versions without a fix. I made an answerhub post a while back but it went nowhere. Its odd.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [June 21, 2017, 8:45am UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/13 "2017-06-21T08:45:29Z")

</div>

Link to the AH post?

---

<div class="post-metadata">

**Author:** ![sbnewsom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sbnewsom](https://forums.unrealengine.com/u/sbnewsom)\
**Post date:** [June 21, 2017, 9:03am UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/14 "2017-06-21T09:03:43Z")

</div>

> **[Out of Video Memory (Ram Cause)](https://forums.unrealengine.com/questions/462339/out-of-video-memory-ram-cause.html)**
>
> Lets start with system specs. AMD Phenom II X6 1055T NVIDIA GeForce GTX 1080 (8 GB of VRAM) 16GB of Ram And four harddrives. Now for the problem. I have a third display which diagnoses and displays stats for my computer. When I’ve been working...

As referenced in the post and in this thread, it occurs when the ram is maxed out. It doesn’t seem to be a problem with the page file either as it doesn’t max out the system controlled page files created.

---

<div class="post-metadata">

**Author:** ![MagicBots](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MagicBots](https://forums.unrealengine.com/u/MagicBots)\
**Post date:** [July 10, 2018, 12:07pm UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/15 "2018-07-10T12:07:38Z")

</div>

I stumbled upon this thread, and then found a fix that worked for me on a reddit thread:  
[https://www.reddit.com/r/unrealengin…to\_allocate\_a/](https://www.reddit.com/r/unrealengine/comments/72xt9o/out_of_video_memory_trying_to_allocate_a/)

changing the paging file size as described in this link to a size the same as my graphics card’s video memory fixed this issue for me:  
[https://www.thewindowsclub.com/incre…memory-windows](https://www.thewindowsclub.com/increase-page-file-size-virtual-memory-windows)

Thought I’d post back here in case it helps someone else sincce it looks like i’ve been unecessarily living with this issue for the last year.  
Mine was set to 3g. Setting it to 8 to match my 1080’s texture memory fixed me up.

It appears in my case at least unreal was mis-reported as out of video memory when it’s actually running out of paging memory or something to that effect.

---

<div class="post-metadata">

**Author:** ![Alexyz31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alexyz31](https://forums.unrealengine.com/u/Alexyz31)\
**Post date:** [March 18, 2021, 11:00pm UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/16 "2021-03-18T23:00:13Z")

</div>

Hi @MagicBots I have that issue even with a new RTX 3090, but changing the paging files size did not solve it  
UE 4.26.1  
I have also set TDR values (registry), and paging file size up to extreme high numbers.  
But the problem persists…  
Any ideas are highly appreciated.

Paging files sizes: Does someone know, what minimum and maximum mean? (I tried to set the minimum on very high and low values, no difference)

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [June 13, 2021, 5:39pm UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/17 "2021-06-13T17:39:35Z")

</div>

I have this same issue with my RTX 3090… i literally tried putting my paging file to 300GB… that still didnt solve it in UE 4.26.1

---

<div class="post-metadata">

**Author:** ![nuagesdepixels](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nuagesdepixels](https://forums.unrealengine.com/u/nuagesdepixels)\
**Post date:** [July 23, 2021, 4:35am UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/18 "2021-07-23T04:35:54Z")

</div>

I have this same issue with my RTX 3090… Rebooting solve my problem for few hours, but issue still there…

---

<div class="post-metadata">

**Author:** ![CorganPictures](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CorganPictures](https://forums.unrealengine.com/u/CorganPictures)\
**Post date:** [September 25, 2021, 7:53am UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/19 "2021-09-25T07:53:55Z")

</div>

Experiencing the same issue with RTX 3090. Adjusting paging allocation did not correct error and crash.

---

<div class="post-metadata">

**Author:** ![CorganPictures](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CorganPictures](https://forums.unrealengine.com/u/CorganPictures)\
**Post date:** [September 25, 2021, 8:05am UTC](https://forums.unrealengine.com/t/out-of-video-memory-trying-to-allocate-a-texture/82143/20 "2021-09-25T08:05:34Z")

</div>

This may be due to the reflection capture resolution being too high in your project. Some maps were made to run on the “game” template, rather than “film”. You can change the reflection capture resolution in the config file as well.
