Comments (7)
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.
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.
@ethandicks Did you happen check to see if you are able to run the site in Firefox without any issues?
from ws4kp.
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.
@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.
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:
-
Enabling zram-swap:
https://github.com/foundObjects/zram-swap
I have found that _zram_fraction="2/3" is usable. -
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.
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.
@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)
- 1 issue / some suggestions HOT 2
- Current Conditions "Failed" to load HOT 1
- Minor text presentation issues on the "Current Conditions" page HOT 4
- Marine Forecast shows "NaN" or "NaNkts" when no data is available for ocean / lake conditions. HOT 1
- In Safari, music does not auto-play or auto-advance, and always stops after 1-2 minutes. HOT 1
- Barometric pressure trend arrow / symbol is missing on Chrome and Safari. Only appears on Firefox. HOT 1
- Nothing working when using Apache24 HOT 1
- Is there any way to use this in canada? HOT 1
- Hazardous weather failing
- Alert: New API Impending.... HOT 1
- add location HOT 2
- HTTP Error 500.0 - ASP.Net Core IIS hosting failure (in-process) HOT 7
- Hawaii Map products are all blank HOT 1
- Stuck Loading - Errors HOT 4
- Wind Issue HOT 9
- Music Keeps Stopping HOT 1
- Severe Storm Warnings/Tornado Warnings Not Showing HOT 1
- Nariation not working HOT 3
- Make it for docker? HOT 1
- Almanac Astronomical does not render in target timezone
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ws4kp.