# Streaming buffer underrun error

**URL:** <https://learn.safran-navigation-timing.com/t/streaming-buffer-underrun-error/1207>\
**Category:** Skydel Discussion\
**Created:** [February 22, 2024, 11:05am UTC](https://learn.safran-navigation-timing.com/t/streaming-buffer-underrun-error/1207 "2024-02-22T11:05:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgp](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sgp](https://learn.safran-navigation-timing.com/u/sgp)\
**Post date:** [February 22, 2024, 11:05am UTC](https://learn.safran-navigation-timing.com/t/streaming-buffer-underrun-error/1207/1 "2024-02-22T11:05:26Z")

</div>

Hello,

We have suddenly run into a problem where the Skydel simulator (version: 21.9.1) consistently throws the error below:

```auto
2024-02-07 22:40:40.728358: <info> Simulator State: Error
2024-02-07 22:40:40.764746: <error> Streaming buffer underrun
2024-02-07 22:40:40.764839: <info> Simulator State: Ready
2024-02-07 22:40:40.834710: <info> Simulator State: Error
2024-02-07 22:40:40.841671: <error> Too many packets (more than 10000) arrived late in the radio. Stopping Simulation.

```

We have had the same setup for more than 2 years and never had this issue.

Unable to attach performance log but here is a plot of the entire run (Streamer thread):

 ![performance](https://canada1.discourse-cdn.com/flex030/uploads/orolia/original/1X/bee8e6dcf901e3b8afd6687b642c9639cfe478d5.png)

Also, the GPU speed test says “This GPU can perform real-time simulation”.

Has anyone seen this issue before? or any tips to figure out what is the root of the problem?

Thanks!  
Surabhi

---

<div class="post-metadata">

**Author:** ![sgp](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sgp](https://learn.safran-navigation-timing.com/u/sgp)\
**Post date:** [February 22, 2024, 11:06am UTC](https://learn.safran-navigation-timing.com/t/streaming-buffer-underrun-error/1207/2 "2024-02-22T11:06:02Z")

</div>

Attaching the GPU speed test results:

 ![GPU test](https://canada1.discourse-cdn.com/flex030/uploads/orolia/original/1X/87006e2388fd8253841c4d2354cc93871a89a67d.png)

---

<div class="post-metadata">

**Author:** ![mathieu.favreau](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@mathieu.favreau](https://learn.safran-navigation-timing.com/u/mathieu.favreau)\
**Post date:** [February 23, 2024, 9:24pm UTC](https://learn.safran-navigation-timing.com/t/streaming-buffer-underrun-error/1207/3 "2024-02-23T21:24:37Z")

</div>

Hi @sgp,

Could you provide a screenshot of the performance graph if you can’t provide the log?  
The streamer performance trace is not enough on it’s own to help me pin-point your issue, I would need the constellation and modulator trace as well.

Regards,  
Mathieu

---

<div class="post-metadata">

**Author:** ![sgp](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sgp](https://learn.safran-navigation-timing.com/u/sgp)\
**Post date:** [February 26, 2024, 9:28am UTC](https://learn.safran-navigation-timing.com/t/streaming-buffer-underrun-error/1207/4 "2024-02-26T09:28:42Z")

</div>

Hi @mathieu.favreau,

I initially did want to attach the performance.csv file but it seems like as new member/profile in this community I’m not allowed to attach any file other than images.  
Is there another way (email?) I can send you the CSV file? or if you could allow me to upload it here that would be great. Thanks!  
Surabhi

---

<div class="post-metadata">

**Author:** ![A-D](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@A-D](https://learn.safran-navigation-timing.com/u/A-D)\
**Post date:** [February 28, 2024, 1:11pm UTC](https://learn.safran-navigation-timing.com/t/streaming-buffer-underrun-error/1207/5 "2024-02-28T13:11:21Z")

</div>

@sgp , you should be good to upload a CSV now. 😃

---

<div class="post-metadata">

**Author:** ![sgp](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sgp](https://learn.safran-navigation-timing.com/u/sgp)\
**Post date:** [February 28, 2024, 1:39pm UTC](https://learn.safran-navigation-timing.com/t/streaming-buffer-underrun-error/1207/6 "2024-02-28T13:39:32Z")

</div>

Hi @A-D  
Thanks for looking into this but I still can’t seem to upload any attachments. I see the message “Sorry, new users can’t upload documents”.

---

<div class="post-metadata">

**Author:** ![mathieu.favreau](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@mathieu.favreau](https://learn.safran-navigation-timing.com/u/mathieu.favreau)\
**Post date:** [March 5, 2024, 3:13pm UTC](https://learn.safran-navigation-timing.com/t/streaming-buffer-underrun-error/1207/7 "2024-03-05T15:13:28Z")

</div>

Hi @sgp,

From the CSV @A-D shared with me, the issue is not with the radio or GPU, but with the system’s CPU.  
I was able to import your file and look at it.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/orolia/original/1X/d5f342ae2d52d2bb1d4c70eab449ce9f005e1ada.png)

Since the blue line is going down, it’s the portion of the engine which runs on the CPU which is problematic.  
Usually this ether means:

- Something else is running on the machine which is taking the CPU resources from Skydel
- The CPU is configured to Power Save mode and is being throttled by the OS
- The CPU is getting too hot and is being throttled by the OS to prevent over-heating
- Your system’s memory (RAM) is completely used and the OS is writing Skydel’s memory to Disk

I would recommend using HTOP if you are using Ubuntu to diagnose this issue.  
You can install it using the command `sudo apt install htop`.  
It will allow you to see which process is using your CPU, and how much memory is available.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/orolia/original/1X/0e406c7a1f929da0cff16f63f0fde133f7d9cb69.png)

As you can see in this screenshot of HTOP, this system has a lot of memory available and the CPU is mostly unused. You can play with HTOP settings to show more information.

Also I would make sure your setup is in performance mode:

- Ubuntu 18: In a terminal run the following command  
`echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor`
- Ubuntu 22: Go to power settings  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/orolia/original/1X/d16e6a3405f974e30768e8141824273de7d6bc02.png)

Hope that helped,  
Mathieu
