16
  • I got this message when using Orion, I suspect some kind of memory leak?

  • BugsDesktopPlanned


I suspoect a memory leak within Orion caused this. Qutting immediately stopped the message from showing up, like it was over and over again.

I just didn't want to see a message that I was out of memory

Version 0.99.126.4.1.5-rc (WebKit 619.1.1)

Sonoma (14)

  • Vlad replied to this.

    Orion RC Graphics and Media process seems to grow in memory usage over time which leads to huge memory usage. Something is definitely off.

    Steps to reproduce are to simply use the browser for a few hours and checking Activity Monitor.

    I experience the same issue with Graphics and Media taking very much memory.

    whitemamba If you do not have at the very least steps to reproduce and comparison with Safari in same circumstances, there is zero information for us to act on. 436MB shown by your screenshot is nothing for a browser.

      @Vlad the issue isn't shown accurately in the image. For some reason, Orion RC Graphics and Media memory usage isn't calculated in the memory usage of Orion.

      The usage of Orion RC Graphics and Media has gone up to 34gb for me, leading to the window popping up, showing Orion only using <1gb memory.

      I believe this issue started the previous RC, where preview windows was first introduced.

      • Vlad replied to this.

        eirk That kind of usage should be easy to reproduce, can you?

          Vlad I got the out of application memory consistently until I quit Orion. I don’t really know how macOS assigns memory, but Orion was definitely the thing making the message happen.

          • Vlad replied to this.

            I also see difference in the reported memory usage.
            I'm not sure that "... Graphics and Media" refer to the same thing in Safari and Orion as they are not in the same order of magnitude.

            In Safari it stays under 100MB while in Orion it keeps increasing very slowly, to about 1.8GB after a few hours of use.
            I have the same tabs open in both been using both for a couple of hours.

            In Orion I disabled all extensions.

              fuli I didn't have time setting up Orion from scratch but I also disabled every addon and it is still increasing with usage over hours. The highest I got was 5.5GB just from Graphics and Media. It's clearly leaking memory at some point and I got the feeling that it leaks faster if I browse reddit for example, where media is loaded.

                Vlad @fuli I did a clean Orion Install on a new macOS user and browsed the web for 15 minutes with various websites (reddit, WSJ, my university page, Youtube) and got the following memory stats:

                As you can see, Orion RC Graphics and Media is 18 times the memory than Safari Graphics and Media. I made sure to do the exact identical websites and clicks on both browsers side by side at the same time.

                Orion memory:

                Safari memory:

                Subjectively the memory increases more drastically when visiting websites with GIFs, Autoplay Videos and Media.

                • Vlad replied to this.

                  Vlad ??? Install Orion, browse completely random websites side by side with Safari and get 18x the memory usage from graphics engine while doing the exact same stuff? How the f am I supposed to tell you even further how to reproduce this? I just browse random stuff and the memory increases. No addons, no iCloud, nothing. Fresh install.

                  I understand that this is another report on the anectdotal side of things, and as such might not be of much value, but here goes: I had two "Orion RC Graphics and Media" processes running, one taking 19 GB RAM and one taking 5.5 GB. Out of curiosity, I force-quit the 19 GB one without any noticable effect on my browsing. I use low-power mode in Orion and had two different profiles open with one window each.

                  6 days later

                  We have verified increased memory use from Graphics and Media process and tracked it down to latest version of WebKit. Team is working hard on trying to fix this.

                  15 days later
                  13 days later

                  Hey all, just found this thread and I thought I'd contribute some findings that may or may not help... I noticed the large memory footprint and alongside I noticed that there was a Macy's ad, owned by the Orion process that was in control of the MacOS media controls widget (there were no tabs playing media at the time).

                  I think maybe the content blocker is removing elements after the DOM parser has generated media elements for the content which is subsequently removed by the blocker. I suspect the media controls handle is being leaked for every video element destroyed by uBlock Origin, which if the site is tricky (using JS to inject ads) could lead to an infinite loop of spawn/kill/leak cycles.

                  Twitch.tv in particular is egregious about generating a lot of memory thrash via this bug.

                    techwiz2100 You've been able to isolate this issue a lot more than I have with an out-of-memory issue on Mojave that seems to be particularly triggered by one site I use (https://www.classicartsshowcase.org/watch-classic-arts-showcase/). I wonder if it is doing something similar to Twitch.tv? When I stream my site on a system with 8GB of RAM, I can see Memory Used go up by hundreds of MB every minute and get the out of memory/kill application popup within 30 minutes.

                      5 days later