Closed Bug 691355 Opened 13 years ago Closed 12 years ago

Crash when headphones removed while listening to audio

Categories

(Core :: Widget: Win32, defect)

7 Branch
x86
Windows 7
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: mit2nil, Assigned: bbondy)

References

()

Details

(Keywords: crash, regression)

Crash Data

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Build ID: 20110928134238

Steps to reproduce:

I was watching a video on youtube. I had plugged in a head phone with my 32 bit laptop running windows 7 OS. My friend came, and he removed the headphone jack from laptop to listen the audio of the video I was watching on youtube.


Actual results:

This has happened now twice. First time automatically firefox crashed and report was submitted. I thought there might be some other problem. Today it happened again, and firefox 7 didn't crashed but hanged. On realizing, I plugged in jack again and then firefox responded back.


Expected results:

Firefox should not have hanged or crashed.
This could be a bug in flash because the flash plugin plays audio and not Firefox.
Can you please post the crash id from about:crashes ?
https://developer.mozilla.org/en/How_to_get_a_stacktrace_for_a_bug_report
(In reply to Matthias Versen (Matti) from comment #1)
> This could be a bug in flash because the flash plugin plays audio and not
> Firefox.
> Can you please post the crash id from about:crashes ?
> https://developer.mozilla.org/en/How_to_get_a_stacktrace_for_a_bug_report

It may be bug with flash or may be with my laptop as well because in my friend's laptop, firefox 7 is working well.
But here is the crash report that I submitted just now ! 
https://crash-stats.mozilla.com/report/index/bp-3e3bae7a-75c5-4423-9efe-535782111004

I hope this may help.
This problem is happening with any other flash audio playing site. 
By killing plugincontainer.exe process manually, I can resume back the audio. 
This was not happening before firefox 7. So I think there is something wrong on firefox's side :) 
Happy firefoxing !
Summary: Firefox 7 hangs and/or crashes when headphone is removed while watching youtube video ! → Firefox 7 hangs and/or crashes when headphone is removed while listening to audio on any website !
>By killing plugincontainer.exe process manually, I can resume back the audio.
Firefox hangs if the plugin inside the plugincontainer hangs. The plugincontainer itself kills the hanging plugin only after a long time.

>This was not happening before firefox 7.
The plugincontainer doesn't do anything with audio, only the plugins that are running inside are accessing the windows audio devices.
I bet that this is caused by an update of the flash plugin.
Component: General → Flash (Adobe)
Product: Firefox → Plugins
QA Contact: general → adobe-flash
Version: 7 Branch → unspecified
Severity: normal → critical
Crash Signature: [@ hang | mozilla::plugins::PPluginInstanceParent::CallUpdateWindow() ]
Component: Flash (Adobe) → Plug-ins
Keywords: crash
Product: Plugins → Core
QA Contact: adobe-flash → plugins
Version: unspecified → 7 Branch
I can confirm that. It's definitely not flash's fault. I just upgraded to firefox 9 and the promotional video opened (http://www.mozilla.org/en-US/firefox/9.0.1/whatsnew/). I unplugged my headphones and firefox crashed.

Note: It was in windows 7. I don't have any other output device so windows set Digital Audio (S/PDIF) as default playback device after I unplugged the headphones.
Hanged, not crashed to be exact.
>It's definitely not flash's fault.
Why are you sure this not the fault of the flash plugin ?
(In reply to Matthias Versen (Matti) from comment #6)
> Why are you sure this not the fault of the flash plugin ?
Because the video on the site I mentioned is _not_ using flash. It's embedded by html5 <video> tag.
Component: Plug-ins → Video/Audio
QA Contact: plugins → video.audio
I can reproduce this on Windows 7.  Visit http://www.mozilla.org/en-US/firefox/9.0.1/whatsnew/, click play, open the sound control panel, select the playback tab, right click the playing device, and select disable.

I get the following fatal assert in AudioSession::Start:

###!!! ABORT: State invariants violated: 'mState == UNINITIALIZED || mState == CLONED', file c:/work/mozilla-central/widget/windows/AudioSession.cpp, line 210

...where mState is currently STARTED and Start() has been called by AudioSession::OnSessionDisconnectedInternal().
Status: UNCONFIRMED → NEW
Component: Video/Audio → Widget: Win32
Ever confirmed: true
QA Contact: video.audio → win32
Nice, I reproduced using the steps in Comment 8.
Summary: Firefox 7 hangs and/or crashes when headphone is removed while listening to audio on any website ! → Crash when headphones removed while listening to audio
Attached patch Patch v1.Splinter Review
Code has been this way since it was introduced last year in July in bug 441197
Assignee: nobody → netzen
Status: NEW → ASSIGNED
Attachment #598099 - Flags: review?(jmathies)
The crash signature is not the same as the one indicated in the bug, but this fixes the crash mentioned in Comment 8.  Please let me know if I should post a new bug for this instead.
Blocks: 441197
Attachment #598099 - Flags: review?(jmathies) → review+
Target Milestone: --- → mozilla13
(In reply to Brian R. Bondy [:bbondy] from comment #11)
> The crash signature is not the same as the one indicated in the bug, but
> this fixes the crash mentioned in Comment 8.  Please let me know if I should
> post a new bug for this instead.
Can you provide your crash ID in order to be added in the crash signature field and tracked in Socorro?
Keywords: regression
http://crash-stats.mozilla.com/report/index/bp-e52f02bd-6ec8-4259-af46-332f92120217
Also updated the signature field above.
Crash Signature: [@ hang | mozilla::plugins::PPluginInstanceParent::CallUpdateWindow() ] → [@ hang | mozilla::widget::AudioSession::Start() ]
https://hg.mozilla.org/mozilla-central/rev/174ce0df7cdd
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Crash Signature: [@ hang | mozilla::widget::AudioSession::Start() ] → [@ _chkstk] [@ _chkstk | CLocalEndpointEnumerator::OnMediaNotification(MEDIA_NOTIFICATION_BLOCK*)]
Depends on: 731812
Fixed the crash signature that this fix was related to back to Comment 13.
Crash Signature: [@ _chkstk] [@ _chkstk | CLocalEndpointEnumerator::OnMediaNotification(MEDIA_NOTIFICATION_BLOCK*)] → [@ hang | mozilla::plugins::PPluginInstanceParent::CallUpdateWindow() ] → [@ hang | mozilla::widget::AudioSession::Start() ]
See Also: → 731812
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: