Closed Bug 1578302 Opened 5 years ago Closed 3 years ago

Opening Activity manager in TB while gloda indexing is in progress causes TypeError: Argument 1 of Range.selectNodeContents is not an object. customElements.js:529:15

Categories

(Thunderbird :: Search, defect)

x86_64
All
defect
Not set
normal

Tracking

(thunderbird_esr78+ fixed)

RESOLVED FIXED
86 Branch
Tracking Status
thunderbird_esr78 + fixed

People

(Reporter: aceman, Assigned: mkmelin)

References

Details

Attachments

(1 file)

When I enable the Gloda indexer in TB and it has some work to do and is in progress, opening the Activity manager and watching the progress causes these errors in the console:

XML Parsing Error: not well-formed
Location: moz-nullprincipal:{ca282f18-a14c-4dd3-93e6-12975b8bd594}
Line Number 18, Column 82: {ca282f18-a14c-4dd3-93e6-12975b8bd594}:18:82

TypeError: Argument 1 of Range.selectNodeContents is not an object. customElements.js:529:15

Happens also in Safe mode. It didn't happen immediately, but after several opens of the Activity manager I get the errors consistently every time.

Flags: needinfo?(mkmelin+mozilla)

The UUID-resembling string is not an addon ID, it changes every time.

I wonder if it's the case that we have too many nodes selected. I think I saw something like this when manually selecting tens of thousands of messages and trying to move them. Not sure what happens, but maybe Range.selectNodeContents just can't cope with massive amounts of data.

Flags: needinfo?(mkmelin+mozilla)

Geoff, any ideas?

Flags: needinfo?(geoff)
OS: Linux → All
Summary: Opening Activity manager in TB while gloda indexing is in progress causes errors in customElements → Opening Activity manager in TB while gloda indexing is in progress causes TypeError: Argument 1 of Range.selectNodeContents is not an object. customElements.js:529:15

I'm not seeing this. I remember a while ago the activity manager would show the string "null" where it looked like something else should be. Perhaps it is related and has been fixed, because I don't see that any more either.

Flags: needinfo?(geoff)

Aceman, still seeing this?

Flags: needinfo?(acelists)

I believe this is related to ranges and how they do (or rather do not) work with very large selections.

TL;DR: Bug observed here, too, today.

Context

TB 68.10.0 (64 bits) on Xubuntu 20.04, official package.

Not 100% sure if global indexing was active. The reason I look at output is that it looks like Thunderbird re-reads folders from IMAP server that it had plenty of time to read and index in the past. This may or may not be related.

Symptom

Anyway, here too opening activity window causes this on terminal output (stdout or stderr):

JavaScript error: chrome://global/content/customElements.js, line 483: TypeError: Argument 1 of Range.selectNodeContents is not an object.

Javascript console then progressively shows occurrences of this error:

Erreur d’analyse XML : mal formé
Emplacement : moz-nullprincipal:{8bc3527e-07cb-4126-be56-ff4a45b5c243}
Numéro de ligne 19, Colonne 56 : {8bc3527e-07cb-4126-be56-ff4a45b5c243}:19:56
TypeError: Argument 1 of Range.selectNodeContents is not an object.customElements.js:483:15
parseXULToFragment chrome://global/content/customElements.js:483
connectedCallback chrome://messenger/content/activity-widgets.js:591
addActivityElement chrome://messenger/content/activity.js:129
startup chrome://messenger/content/activity.js:198
onload chrome://messenger/content/activity.xul:1

until it is repeated around 250 times.
Then error console becomes quiet again.

Thank you for your attention.

Alfred, can you confirm Geoff's finding that this does not reproduce?

Flags: needinfo?(acelists) → needinfo?(infofrommozilla)

With TB78.5.1 I got:

  • XML Parsing Error: not well-formed
    Location: moz-nullprincipal:{6c416d4c-309f-4c2b-92ba-3edee41d1249}
    Line Number 19, Column 56: {6c416d4c-309f-4c2b-92ba-3edee41d1249}:19:56
  • Uncaught Error: not well-formed XML
    parseXULToFragment chrome://global/content/customElements.js:566
    connectedCallback chrome://messenger/content/activity-widgets.js:603
    addActivityElement chrome://messenger/content/activity.js:129
    onAddedActivity chrome://messenger/content/activity.js:290
    addActivity resource://gre/modules/ActivityManager.jsm:65
    onAlert resource:///modules/activity/alertHook.jsm:58
    customElements.js:566:17
  • Async statement execution returned with '1', 'ambiguous column name: expire_ms' PlacesExpiration.jsm:690
    PEX_handleError resource://gre/modules/PlacesExpiration.jsm:690
Flags: needinfo?(infofrommozilla)

With current trunk TB: No, I can't reproduce it.

Thanks for the thorough check! So there is hope it will be gone in a future release.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME

Actually, this is real just not easy to reproduce.

Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---

One char fix.

Assignee: nobody → mkmelin+mozilla
Attachment #9195060 - Flags: review?(acelists)

(I don't know about the range stuff.)

Status: REOPENED → ASSIGNED

Comment on attachment 9195060 [details] [diff] [review]
bug1578302_activity_manager_xml.patch

This is a small one to review, if you want something to land ;)

Attachment #9195060 - Flags: review?(geoff)
Attachment #9195060 - Flags: review?(geoff)
Attachment #9195060 - Flags: review?(acelists)
Attachment #9195060 - Flags: review+

I think this should solve the Range error too. At a guess I'd say this doesn't work and the code carries on down to where the Range.selectNodeContents call is made.

Aceman, when this code lands can you check if the problem goes away?

Flags: needinfo?(acelists)

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/45fcaf111e0b
fix malformed xml for MozActivityWarningRichlistItem. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
Flags: needinfo?(acelists)

Comment on attachment 9195060 [details] [diff] [review]
bug1578302_activity_manager_xml.patch

[Approval Request Comment]
One char safe fix. Prevents some cases in the activity manager from working properly.

Attachment #9195060 - Flags: approval-comm-esr78?

Comment on attachment 9195060 [details] [diff] [review]
bug1578302_activity_manager_xml.patch

[Triage Comment]
Approved for esr78

Attachment #9195060 - Flags: approval-comm-esr78? → approval-comm-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: