Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeErrors #386

Open
maltenizer opened this issue Mar 2, 2021 · 4 comments
Open

TypeErrors #386

maltenizer opened this issue Mar 2, 2021 · 4 comments

Comments

@maltenizer
Copy link

Application version
AirDC++w 2.11.1b x86_64
Web UI version
2.11.1-beta.1
Web UI build date
January 21, 2021 8:39 PM

Browser: Google Chrome Version 88.0.4324.190 (Officiell version) (64 bitar) on WIndows Server 2016 version 1607
Crashing have also happened on older versions of chrome.

CentOS Linux release 7.9.2009 (Core)

WebUI crashes after some time with either of these two errors:

Web UI has crashed with the following error: "TypeError: Cannot read property 'nicks' of undefined"
Web UI has crashed with the following error: "TypeError: Cannot read property 'country' of undefined"

It has always been crashing when i'm not using the browser.

@maltenizer
Copy link
Author

I found the culprit.

Newer chrome have a flag in chrome://flags, "Throttle Javascript timers in background."
It throttle javascript in the background tabs or non active windows and that breaks webui in airdc.
If i disable the flag it works as normal.

Description in chrome:

Throttle Javascript timers in background.
When enabled, wake ups from DOM Timers are limited to 1 per minute in a page that has been hidden for 5 minutes. For additional details, see https://www.chromestatus.com/feature/4718288976216064. – Mac, Windows, Linux, Chrome OS, Android

This flag is enabled as default in chrome.

@maksis
Copy link
Member

maksis commented Mar 7, 2021

Please include the stack trace from the browser console according to https://github.com/airdcpp-web/airdcpp-webclient/blob/master/.github/CONTRIBUTING.md#ui-related-issues

@maksis
Copy link
Member

maksis commented Apr 12, 2021

I've released builds with a new UI version that will show the full stack trace without the need to get it from the console. This issue will be closed without further information as I haven't heard of anyone else experiencing the same crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants