Closed Bug 1361657 Opened 7 years ago Closed 7 years ago

Crash: Unplug headphone after clicking refresh button and plug the headphone immediately.

Categories

(Core :: Audio/Video: cubeb, defect, P1)

x86_64
macOS
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: chunmin, Assigned: achronop)

References

Details

(Keywords: stale-bug)

Attachments

(1 file)

Step to reproduce:
1. Plug the headphone
2. Open a youtube video
3. Refresh the page
4. Upon refreshing the page, unplug the headphone
5. Plug the headphone again

It doesn't happen every time, so I guess it's a timing issue happens on a device change.
Can you provide a crash report?
Can you also provide platform?
(In reply to Alex Chronopoulos [:achronop] from comment #2)
> Can you also provide platform?
Mac OS 10.12
OS: Unspecified → Mac OS X
Hardware: Unspecified → x86_64
(In reply to Jean-Yves Avenard [:jya] from comment #1)
> Can you provide a crash report?
It doesn't show on my about:crashes, so I have no report to submit. It just shows "Gah. Your tab just crashed." on my page.

It's more likely happens on a long video like: https://www.youtube.com/watch?v=jJMnOVWMFOo
Alex, care to have a look?
Flags: needinfo?(achronop)
Sure, I will try to repro tomorrow.
Assignee: nobody → achronop
Flags: needinfo?(achronop)
I hit a similar crash two days ago. But my crash report[1] looks weird and empty. I cannot see it is related to audio.  

[1]https://crash-stats.mozilla.com/report/index/b53d4d11-c577-49b1-99f5-5b3040170502
Priority: -- → P1
I am not able to repro, it's sporadic though, I will try again after importing latest cubeb
Can you please provide logs (cubeb:4) of the error. If it takes many retries to repro, it would be nice to include them in the logs (I hope to see there the difference in timing)
Flags: needinfo?(cchang)
Attached file crash.log
(In reply to Alex Chronopoulos [:achronop] from comment #9)
> Can you please provide logs (cubeb:4) of the error. If it takes many retries
> to repro, it would be nice to include them in the logs (I hope to see there
> the difference in timing)
Sure. I got one on my ASAN build. The attached log is from my terminal with cubeb log enabled.
Flags: needinfo?(cchang)
ASAN logs are excellent piece of information! It's clear that the crash occurs because the unplug event fired in thread T87 right after the stream is destroyed due to a normal AudioStream::Shutdown() in thread T46. Inside the handler of unplug event we attempt to use the destroyed stream.
Component: Audio/Video → Audio/Video: cubeb
See Also: → 1349126
Depends on: 1366707
Rank: 15
See Also: → 1367702
This is an assigned P1 bug without activity in two weeks. 

If you intend to continue working on this bug for the current release/iteration/sprint, remove the 'stale-bug' keyword.

Otherwise we'll reset the priority of the bug back to '--' on Monday, August 28th.
Keywords: stale-bug
Fixed by 1366707
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: