# Transcoder throwing "Cannot allocate memory" and "Could not find ref with ..."

**URL:** https://forums.plex.tv/t/transcoder-throwing-cannot-allocate-memory-and-could-not-find-ref-with/784037
**Category:** Plex Media Server
**Tags:** server-windows
**Created:** [March 27, 2022, 9:35am UTC](https://forums.plex.tv/t/transcoder-throwing-cannot-allocate-memory-and-could-not-find-ref-with/784037 "2022-03-27T09:35:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![EpicLPer](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/epiclper/32/270668_2.png) [@EpicLPer](https://forums.plex.tv/u/EpicLPer)
#### Post date: [March 27, 2022, 9:35am UTC](https://forums.plex.tv/t/transcoder-throwing-cannot-allocate-memory-and-could-not-find-ref-with/784037/1 "2022-03-27T09:35:56Z")

</div>

**Server Version#:** 1.25.8.5663  
**Player Version#:** Web

* * *

Heya!

Trying to convert some of my 4K HDR H265/HEVC media via the “Original Quality” setting, however the Console is constantly throwing the following, at the bottom attached lines over and over again.

One thing that stands out is the “Cannot allocate memory” error, which is weird since my Server has 16GB RAM allocated where the Transcoder uses roughly 3.2GB and in general everything on it (including Plex) uses ~9-10GB. CPU specs are 24 Cores with 2x Intel Xeon E5645.  
I may actually be running into the Transcoder’s 32bit application RAM limits here while trying to encode this particular file, from the looks of it. Or do you guys maybe have another guess what this could be?

> Mar 27, 2022 11:29:04.617 [16236] Error — [Transcoder] [hevc @ 01203f40] Could not find ref with POC 72  
> Mar 27, 2022 11:29:05.456 [16236] Error — [Transcoder] Error while decoding stream #0:0: Cannot allocate memory  
> Mar 27, 2022 11:29:06.410 [17176] Error — [Transcoder] Error while decoding stream #0:0: Cannot allocate memory  
> Mar 27, 2022 11:29:06.414 [17176] Error — [Transcoder] [hevc @ 01203f40] Could not find ref with POC 7  
> Mar 27, 2022 11:29:07.260 [11712] Error — [Transcoder] Error while decoding stream #0:0: Cannot allocate memory  
> Mar 27, 2022 11:29:07.361 [11712] Error — [Transcoder] [hevc @ 01202b00] Could not find ref with POC 22  
> Mar 27, 2022 11:29:08.160 [16236] Error — [Transcoder] Error while decoding stream #0:0: Cannot allocate memory  
> Mar 27, 2022 11:29:08.962 [17176] Error — [Transcoder] Error while decoding stream #0:0: Cannot allocate memory  
> Mar 27, 2022 11:29:11.926 [11712] Error — [Transcoder] [hevc @ 01203f40] Could not find ref with POC 6  
> Mar 27, 2022 11:29:11.926 [11712] Error — [Transcoder] [hevc @ 01203f40] Error constructing the frame RPS.  
> Mar 27, 2022 11:29:12.011 [17176] Error — [Transcoder] [hevc @ 01202b00] Could not find ref with POC 6  
> Mar 27, 2022 11:29:12.710 [16236] Error — [Transcoder] Error while decoding stream #0:0: Cannot allocate memory  
> Mar 27, 2022 11:29:12.711 [16236] Error — [Transcoder] Error while decoding stream #0:0: Cannot allocate memory  
> Mar 27, 2022 11:29:13.779 [16236] Error — [Transcoder] Error while decoding stream #0:0: Cannot allocate memory  
> Mar 27, 2022 11:29:15.444 [11712] Error — [Transcoder] Error while decoding stream #0:0: Cannot allocate memory  
> Mar 27, 2022 11:29:17.359 [16236] Error — [Transcoder] [hevc @ 01203f40] Could not find ref with POC 12  
> Mar 27, 2022 11:29:18.161 [11712] Error — [Transcoder] Error while decoding stream #0:0: Cannot allocate memory  
> Mar 27, 2022 11:29:18.297 [11712] Error — [Transcoder] [hevc @ 01202b00] Could not find ref with POC 24  
> Mar 27, 2022 11:29:18.534 [16236] Error — [Transcoder] [hevc @ 01201b00] get\_buffer() failed  
> Mar 27, 2022 11:29:18.535 [16236] Error — [Transcoder] [hevc @ 01201b00] thread\_get\_buffer() failed  
> Mar 27, 2022 11:29:19.100 [16236] Error — [Transcoder] Error while decoding stream #0:0: Cannot allocate memory  
> Mar 27, 2022 11:29:19.105 [16236] Error — [Transcoder] [hevc @ 01203f40] Could not find ref with POC 42  
> Mar 27, 2022 11:29:19.320 [17176] Error — [Transcoder] Error while decoding stream #0:0: Cannot allocate memory

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [June 25, 2022, 9:36am UTC](https://forums.plex.tv/t/transcoder-throwing-cannot-allocate-memory-and-could-not-find-ref-with/784037/2 "2022-06-25T09:36:37Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
