# Memory limitation on Linux

**URL:** <https://discuss.saleae.com/t/memory-limitation-on-linux/2345>\
**Category:** Logic 2 Software\
**Created:** [July 26, 2023, 1:15pm UTC](https://discuss.saleae.com/t/memory-limitation-on-linux/2345 "2023-07-26T13:15:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxe7](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maxe7](https://discuss.saleae.com/u/maxe7)\
**Post date:** [July 26, 2023, 1:15pm UTC](https://discuss.saleae.com/t/memory-limitation-on-linux/2345/1 "2023-07-26T13:15:30Z")

</div>

Hi,

I came across this post: [Logic 2 crashed when capturing large SPI data](https://discuss.saleae.com/t/logic-2-crashed-when-capturing-large-spi-data/2100), which feels very related to an issue I’m facing.

In brief, Logic 2 captures are crashing when typically getting around 4-5 GB (or less when analyzers, like the SPI one, are on) while the machine still have a lot of free RAM (\>20 GB).

The console shows:

```auto
@saleae/electron/main: renderer process died { reason: 'crashed', exitCode: 133 }
sendToFrame() failed: Error: Render frame was disposed before WebFrameMain could be accessed
Attempting to call a function in a renderer window that has been closed or released.
Function provided here: bundle.js:870:5498
Remote event names: close

```

I’m running Logic 2.4.9 on Ubuntu 20.04. Could you please confirm if:

- this is indeed a known limitation, related to the ticket I linked - or something different?
- if there is any plan to resolve this issue. With this limitation, it restricts a lot the usage of this otherwise great product.

Many thanks

---

<div class="post-metadata">

**Author:** ![Collin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/collin/32/53_2.png) [@Collin](https://discuss.saleae.com/u/Collin)\
**Post date:** [July 27, 2023, 1:50am UTC](https://discuss.saleae.com/t/memory-limitation-on-linux/2345/2 "2023-07-27T01:50:47Z")

</div>

I can confirm this. If you have the SPI analyzer on the exact error you posted will happen within short order. I didn’t have it happen without the SPI analyzer but it could happen. But, I don’t think it’s specifically a memory usage problem. I could set my capture buffer to 8GB and capture analog traffic and it successfully gets up to 8GB and stays there. So, the program itself seems perfectly able to allocate 8GB of RAM. It seems to be something else but I don’t know what.

---

<div class="post-metadata">

**Author:** ![maxe7](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maxe7](https://discuss.saleae.com/u/maxe7)\
**Post date:** [July 27, 2023, 7:58am UTC](https://discuss.saleae.com/t/memory-limitation-on-linux/2345/3 "2023-07-27T07:58:06Z")

</div>

Hi @Collin,

Thanks a lot for your fast reply. I unfortunately can also reproduce without any analyzer turned on.  
Would you have suggestions about debug data collection to be able to track further down why this error triggers?

Regards.

---

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [July 27, 2023, 8:22pm UTC](https://discuss.saleae.com/t/memory-limitation-on-linux/2345/4 "2023-07-27T20:22:57Z")

</div>

@maxe7 Unfortunately, we may not have an update on this since Mark shared his thoughts on this below:

> [@Logic 2 crashed when capturing large SPI data](https://discuss.saleae.com/t/logic-2-crashed-when-capturing-large-spi-data/2100/7):
>
> @DennisB, First, I suspect the root cause of the crash is a a memory cap imposed by electron on our Linux software. I’m not sure how we didn’t pick this up much sooner, I think we missed it because most of our users are on Windows, where we don’t seem to have this problem. Specifically, Chromium is shimming our allocator, and crashes when we reach 4 GB of memory usage on Linux. I’m surprised that your screenshot is reporting more memory usage than that - our testing shows a consistent hard cra…

We did update to Electron 19 very recently (around 2 weeks ago) when we released 2.4.9, however, seeing as you are still seeing the issue on your end, it likely didn’t include the fix for this.

Let me get this on our software team’s backlog to review and we’ll get back to you on this.

---

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [August 1, 2023, 9:59pm UTC](https://discuss.saleae.com/t/memory-limitation-on-linux/2345/5 "2023-08-01T21:59:08Z")

</div>

@maxe7 I was able to check on this with the rest of the team here. Unfortunately we don’t have a fix yet, though, it’s currently tagged as a high priority issue.

---

<div class="post-metadata">

**Author:** ![maxe7](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maxe7](https://discuss.saleae.com/u/maxe7)\
**Post date:** [August 2, 2023, 7:34am UTC](https://discuss.saleae.com/t/memory-limitation-on-linux/2345/6 "2023-08-02T07:34:55Z")

</div>

Hi @timreyes,

Thanks for checking, much appreciated. I will stay on the lookout for release notes 😉

Looking forward to a version with a fix.

---

<div class="post-metadata">

**Author:** ![markgarrison](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/markgarrison/32/23_2.png) [@markgarrison](https://discuss.saleae.com/u/markgarrison)\
**Post date:** [November 10, 2023, 12:14am UTC](https://discuss.saleae.com/t/memory-limitation-on-linux/2345/7 "2023-11-10T00:14:44Z")

</div>

I think we have this fixed!

I will try reaching out to both of you, @maxe7 and @Collin, with an internal build. If you wouldn’t mind testing it for us, that would help a lot.

Thanks!

---

<div class="post-metadata">

**Author:** ![maxe7](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@maxe7](https://discuss.saleae.com/u/maxe7)\
**Post date:** [November 10, 2023, 8:32am UTC](https://discuss.saleae.com/t/memory-limitation-on-linux/2345/8 "2023-11-10T08:32:40Z")

</div>

Hi @markgarrison,

This sounds like great news! Thanks a lot for following up on this thread 👍. Of course, I’m happy to support the testing.

Best regards

---

<div class="post-metadata">

**Author:** ![anthony.shivakumar](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@anthony.shivakumar](https://discuss.saleae.com/u/anthony.shivakumar)\
**Post date:** [November 23, 2023, 6:44am UTC](https://discuss.saleae.com/t/memory-limitation-on-linux/2345/9 "2023-11-23T06:44:36Z")

</div>

I too am facing the same issue on my Linux Machine. If you have a patch or beta software that works that would be awesome!

---

<div class="post-metadata">

**Author:** ![markgarrison](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/markgarrison/32/23_2.png) [@markgarrison](https://discuss.saleae.com/u/markgarrison)\
**Post date:** [November 30, 2023, 7:11pm UTC](https://discuss.saleae.com/t/memory-limitation-on-linux/2345/10 "2023-11-30T19:11:14Z")

</div>

We fixed it!

Logic 2.4.13 introduced the fix for this, and it’s out now! Please let us know if you have any trouble with it!

> [@Logic 2.4.13](https://discuss.saleae.com/t/logic-2-4-13/2563):
>
> 2.4.13 Download Links [Windows](https://downloads.saleae.com/logic2/Logic-2.4.13-windows-x64.exe)[Linux](https://downloads.saleae.com/logic2/Logic-2.4.13-linux-x64.AppImage)[MacOS [x86\_64] ](https://downloads.saleae.com/logic2/Logic-2.4.13-macos-x64.zip)[MacOS [Apple Silicon] ](https://downloads.saleae.com/logic2/Logic-2.4.13-macos-arm64.zip)2.4.13 Welcome to the 2.4.13 release of Logic! This release contains a lot of changes under the hood, especially to how we save and load files. Older files will load just fine, but files saved with 2.4.13 will not load into older versions of Logic. If you run into any troubles with the release, please be sure to [let us know](https://contact.saleae.com/). Also, thanks to many of you for the feedback on the UI changes in the last release! We’re r…
