Web Client Whitescreen on Firefox 71.0 on Linux hosts

Bug #1855737 reported by Chris Sharp
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Low
Chris Sharp

Bug Description

Found on Firefox 71.0 on Fedora 31. After logging into the staff client, the splash screen never loads and the following error appears in the web console:

Error loading shared worker
error { target: SharedWorker, isTrusted: true, message: "DataCloneError: The object could not be cloned.", filename: "https://gapines.org/js/ui/default/staff/offline-db-worker.js", lineno: 344, colno: 0, srcElement: SharedWorker, currentTarget: SharedWorker, eventPhase: 2, bubbles: false, … }
core.bundle.js:1:62466
onerror https://gapines.org/js/ui/default/staff/build/js/core.bundle.js:1

First found by Dan Scott - IRC discussion here: http://irc.evergreen-ils.org/evergreen/2019-12-06#i_429453

Confirmed by me - IRC discussion: http://irc.evergreen-ils.org/evergreen/2019-12-09#i_429581

So far, no one has reproduced the error on non-Linux platforms.

Evergreen 3.2.3-ish through current master
OpenSRF master
PostgreSQL 10
Ubuntu 16.04
Firefox 71.0 on Fedora 31

Revision history for this message
Bill Erickson (berick) wrote :

The DataCloneError is caused by the offline-db-worker.js attempting to return an error object to the caller which is not serializable across the shared worker message port. The issue is bypassed by not returning the 'err' object replyError(). We still need to diagnose the source of the error.

Revision history for this message
Bill Erickson (berick) wrote :
Revision history for this message
Chris Sharp (chrissharp123) wrote :

From further investigation, this issue appears to be Fedora-specific and emerged here because at least 2 active community developers use that as their primary OS. Related Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=1779570

Marking Won't Fix unless there are arguments for applying Bill's patch for other reasons.

Changed in evergreen:
status: Confirmed → Won't Fix
Revision history for this message
Bill Erickson (berick) wrote :

This may be a Fedora-related issue, but it highlighted a real problem in EG's error handling code. It's trying to pass data it should not. I think we should commit the patch regardless. At least that way a misbehaving IndexedDB won't prevent the page from loading.

Changed in evergreen:
status: Won't Fix → Confirmed
importance: Undecided → Low
Changed in evergreen:
assignee: nobody → Chris Sharp (chrissharp123)
Revision history for this message
Llewellyn Marshall (lbmarshallv) wrote :

Our consortium has recently upgraded to Evergreen 3.5.1 and library staff members are receiving this error when trying to login using their iPads, iPad Pros, iPhones, and Android phones & tablets. Once they login, only the green top nav bar is present, the rest of the page is white. From their console output it looks like the common thread is that they are receiving the "SharedWorker() is not supported" error message right before getting "possibly unhandled rejection: undefined" message from AngularJs. We've also had a report of the white screen issue from a Windows Vista machine using Google Chrome, but have not verified that they are having SharedWorker issues.

Revision history for this message
Chris Sharp (chrissharp123) wrote :

Applied fix to master, rel_3_6, and rel_3_5. Thanks, Bill!

Llewellyn, I believe what you're reporting is a separate issue from the original problem. Could you please open a new bug with as much detail as possible, including steps to reproduce?

Thanks,

Chris

Changed in evergreen:
status: Confirmed → Fix Committed
milestone: none → 3.6.1
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.