Closed Bug 2071288 Opened 2 months ago Closed 2 months ago

browser_ml_native.js has intermittent failures on Windows

Categories

(Core :: Machine Learning: On Device, defect, P3)

defect

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: vpollet, Assigned: vpollet)

References

Details

Attachments

(1 file, 1 external file)

Uncaught exception in test - at chrome://global/content/ml/backends/Pipeline.mjs:88 - Error: Error: LlamaRunner.createGenerationStream: already_AddRefed<ReadableStream> mozilla::dom::LlamaRunner::CreateGenerationStream(const LlamaChatOptions &, ErrorResult &) Unable to create a new generation stream: A generation is already in progress on this LlamaRunner.

The exception is thrown in test_ml_smoke_test_llama_sequential_runs which runs two back-to-back generations. LlamaRunner guards against concurrent use by checking that its LlamaStreamSource (member LlamaRunner::mStreamSource) is completed or cancelled. On the consumer side, task completion is observed by its end of the stream closing, which happens before the state of the stream source is updated: https://searchfox.org/firefox-main/source/toolkit/components/ml/backends/llama/LlamaRunner.cpp#229-240

Severity: -- → S4
Assignee: nobody → vpollet
Status: NEW → ASSIGNED
Pushed by vpollet@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/17557ef36304 https://hg.mozilla.org/integration/autoland/rev/9e86c4a1f127 Fixed LlamaGenerateTask state update to happen before it notifies stream consumer r=nordzilla,ai-platform-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
QA Whiteboard: [qa-triage-done-c159/b158]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: