Closed Bug 1865917 Opened 11 months ago Closed 11 months ago

Some tests are failing intermittently in pdf.js repo

Categories

(Firefox :: PDF Viewer, defect)

Firefox 122
defect

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox120 --- unaffected
firefox121 --- fixed
firefox122 --- fixed

People

(Reporter: calixte, Unassigned)

References

(Regression)

Details

(Keywords: regression)

STR:

Few tests (almost always the same) are more or less failing from a run to an other.
In using mozregression, I managed to get this push log:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=211dc86c8f534a950af69434fa996976b566a6a0&tochange=ff2400205932f8f2ee88d4b4f2680628e060434f

My feeling is that the worker cannot be gc-ed during a test.
For example this test is frequently failing:
https://github.com/mozilla/pdf.js/blob/83f00292129674c3b1c92c8629a8b50d3c5a6edd/test/unit/api_spec.js#L3806-L3874
The task is created at the beginning of the test and destroyed at the end.
The worker is created here:
https://github.com/mozilla/pdf.js/blob/83f00292129674c3b1c92c8629a8b50d3c5a6edd/src/display/api.js#L2122C27-L2122C27
then added in the PDFWorker object:
https://github.com/mozilla/pdf.js/blob/83f00292129674c3b1c92c8629a8b50d3c5a6edd/src/display/api.js#L2154-L2155
and the PDFWorker is added to the task:
https://github.com/mozilla/pdf.js/blob/83f00292129674c3b1c92c8629a8b50d3c5a6edd/src/display/api.js#L360C6-L360C6

:edenchuang, could you have a look please ?

Flags: needinfo?(echuang)

Set release status flags based on info from the regressing bug 1836700

The fix on bug 1865774 should fix the over-zealous GC problem; sorry about that!

Depends on: 1865774
Flags: needinfo?(echuang)

:edenchuang, since you are the author of the regressor, bug 1836700, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(echuang)

:calixte bug 1865774 landed in central and was uplifted to beta.
Could you, or :echuang, confirm comment 0 has been addressed?

Flags: needinfo?(cdenizet)

I tested and it now works for me.

Status: NEW → RESOLVED
Closed: 11 months ago
Flags: needinfo?(echuang)
Flags: needinfo?(cdenizet)
Resolution: --- → FIXED

Thanks for checking

Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.