You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An application I develop for recently introduced 5 seconds resolution time series data with a refresh interval of 5 seconds. There are about 3 charts on a certain page which are regularly being updated with new data. We noticed that after running the application for about 5 minutes, the tab would always and consistently crash (Error code 5).
Inspecting the performance monitor in the developer tools didn't reveal any memory or performance issues. The more consistent metric for predicting when a tab will crash turned out to be by looking at the network requests. On our page it would consistently crash after about ±900 network requests had been made which happened to be after about 5 minutes.
After further investigation, it turned out setting boost.useWorker: false fixed the issue altogether. It would appear that something doesn't seem to be going well when you are frequently updating data in while having boost.useWorker: true. The network requests were closely tied as a metric as the worker messages show up in the network tab.
There seems to be an issue with how billboard.js uses worker threads in Chromium based browsers specifically. I was not able to repeat this issue on Firefox.
Steps to check or reproduce
If you leave this Codepen running for about 3 minutes in a Chromium based browser, it will crash the tab. If you were to look at the network requests, it will crash after about 300 network requests have been received (since the worker messages show up in the network tab).
Description
An application I develop for recently introduced 5 seconds resolution time series data with a refresh interval of 5 seconds. There are about 3 charts on a certain page which are regularly being updated with new data. We noticed that after running the application for about 5 minutes, the tab would always and consistently crash (Error code 5).
Inspecting the performance monitor in the developer tools didn't reveal any memory or performance issues. The more consistent metric for predicting when a tab will crash turned out to be by looking at the network requests. On our page it would consistently crash after about ±900 network requests had been made which happened to be after about 5 minutes.
After further investigation, it turned out setting
boost.useWorker: false
fixed the issue altogether. It would appear that something doesn't seem to be going well when you are frequently updating data in while havingboost.useWorker: true
. The network requests were closely tied as a metric as the worker messages show up in the network tab.There seems to be an issue with how billboard.js uses worker threads in Chromium based browsers specifically. I was not able to repeat this issue on Firefox.
Steps to check or reproduce
If you leave this Codepen running for about 3 minutes in a Chromium based browser, it will crash the tab. If you were to look at the network requests, it will crash after about 300 network requests have been received (since the worker messages show up in the network tab).
https://codepen.io/venlious/pen/dyLdGoy
The text was updated successfully, but these errors were encountered: