Closed Bug 523335 Opened 15 years ago Closed 15 years ago

hang on shutdown involving ogg video

Categories

(Core :: Audio/Video, defect, P2)

x86
All
defect

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta2-fixed

People

(Reporter: ted, Assigned: cpearce)

Details

Attachments

(2 files, 2 obsolete files)

I tried to restart my Minefield to apply a nightly update, and it hung. I "Force Quit" it and clicked "Report" on the Apple dialog, which gave me a nice little sample of process activity (attached). The main thread is spinning the event loop, and there's an oggplayer thread doing something, but I can't really tell what's going on there. I currently have a 20091019 build, so I suspect this was the 20091018 nightly.

I didn't currently have any ogg video loaded, but I had watched Air Mozilla yesterday and hadn't restarted my browser since then. (I had closed the tab, however.)
STR: (Not always reproducible)

1. Load Air Mozilla.
2. Start playing a previous video.
3. Seek somewhere unbuffered.
4. Before seek has completed, navigate away to another page.
5. Close Firefox. Should hang on shutdown.
OS: Mac OS X → All
This definitely blocks.
Assignee: nobody → chris
Flags: blocking1.9.2+
(In reply to comment #1)
> STR: (Not always reproducible)

Actually we don't need to navigate to another page in STR Step 4, we can still hang if we shutdown while a seek is in progress. Nasty.
FWIW, I don't recall doing any explicit seeks, since I was watching live streams. The streams did stop on me a few times, and I reloaded or clicked play, so maybe that triggers the same response somehow.
Looks like we're not checking for underlying stream close in oggz_bounded_seek_set() when we call oggz_seek_raw, and our bisection loop is looping infinitely.
Attached patch Patch v1 (obsolete) — Splinter Review
Patch with testcase that will cause hangs when mochitest tries to shutdown.
Attachment #407427 - Flags: review?(roc)
Attached patch Patch v2 (obsolete) — Splinter Review
Oops, I added the test file to the ogg videos list, not the ogg tests list in the Makefile.am. It still worked, but was messy. This patch fixes that, and renames the test to use "_" instead of "-" in its filename, to match the others... Otherwise it's the same as previous.
Attachment #407427 - Attachment is obsolete: true
Attachment #407428 - Flags: review?(roc)
Attachment #407427 - Flags: review?(roc)
Attached patch Patch v3Splinter Review
Patch with backend-independent mochitest.
Attachment #407428 - Attachment is obsolete: true
Attachment #407451 - Flags: review?(roc)
Attachment #407428 - Flags: review?(roc)
http://hg.mozilla.org/mozilla-central/rev/9d4bef551670
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Do we want this on 1.9.1 as well?  It looks like the code is the same there.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: