Code Monkey home page Code Monkey logo

Comments (7)

vbguyny avatar vbguyny commented on August 21, 2024

Hello @ethandicks I don't have a Raspberry Pi 3 to test with so I need to ask you some questions.
Do you notice the increase in memory happening with the "Auto Refresh" option disabled? Also, does the issue happen if you mute the music?
My guess that this memory leak is related to something in the core rendering engine that isn't being released.

from ws4kp.

vbguyny avatar vbguyny commented on August 21, 2024

BTW, I did some testing on Chrome in Windows 10 Pro and I saw roughly between 100-140 MB of RAM used. I didn't see it get it any higher. I did a quick Google search it a few people have reported memory issues in Chromium: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1751137

from ws4kp.

vbguyny avatar vbguyny commented on August 21, 2024

@ethandicks Did you happen check to see if you are able to run the site in Firefox without any issues?

from ws4kp.

ethandicks avatar ethandicks commented on August 21, 2024

To answer all at once:

I have tried it with and without music muted. I observed no difference in memory behavior. I have not tried it without Auto Refresh enabled. I can add that to the testing regime.

The Chromium issues you mentioned seemed to have been reported when other software elements were also involved, AdBlocker, and a Gnome Panel Extension (which I do not have - this is a base Raspbian Install - no browser extensions).

I did try with Firefox on the RPi3. It also consumed large amounts of memory, and in addition, the scrolling of the Travel Forecast was quite stuttery. I did not continue testing.

I haven't done it yet, but I did start to look into engaging a memory profiler. It won't take long to run. I went from startup to lock-up from 2 to 4 hours on numerous occasions.

For as long as it has enough RAM, it runs just fine on a 1GB RPi3. It might even run just fine on a $10 Pi Zero W, but I'm leaving that test for later. In the meantime, I pulled out a Pi400 (essentially a Pi4 w/4GB RAM in a keyboard form-factor). It won't run out of RAM as quickly.

from ws4kp.

vbguyny avatar vbguyny commented on August 21, 2024

@ethandicks thanks for the details!

I have not been able to find anything that would indicate why my site would consume large amounts of memory. The fact that the issue doesn't happen in Windows leads me to believe that this is an issue with the Linux implementation of the Chromium browser.

I would suggest that you opened a bug report (https://bugs.chromium.org/p/chromium/issues/entry) with the details you provided here.

Let me know what they say!

from ws4kp.

brutkows-github avatar brutkows-github commented on August 21, 2024

I've been trying to do the same thing. I have a Raspberry Pi 3 A+ and a WM8960 hat with a speaker I've been setting up for use as a weather display. In stock configuration, WeatherStar 4000+ crushes it completely. I've been able to get it usable with the following performance tweaks:

  1. Enabling zram-swap:
    https://github.com/foundObjects/zram-swap
    I have found that _zram_fraction="2/3" is usable.

  2. Firefox instead of Chromium. I notice a slight performance increase. Chromium still worked, Firefox seems better.

After doing that, the system is definitely slow and fully utilized, but performance is acceptable and is even able to play that glorious audio.
image

The only thing I haven't figured out how to do is launch WeatherStar 4000+ at startup in fullscreen. It seems like I will need to send some sort of mouse event to trigger a click of the fullscreen button.

I tried this setup with every web browser I could find. Firefox was subjectively best for me.

from ws4kp.

vbguyny avatar vbguyny commented on August 21, 2024

@brutkows-github thanks for the information!

As far as getting the site to start in fullscreen by default doesn't work in web pages because it requires user interaction: https://www.codeproject.com/Questions/367556/Full-Screen-on-Page-Load

from ws4kp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.