New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 11 users

Issue metadata

Status: Verified
Owner:
Closed: Aug 2012
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment
link

Issue 143192: Pepper flash crashing when attaching microphone to a NetStream

Reported by raymes@chromium.org, Aug 16 2012 Project Member

Issue description

From:  adam@tokbox.com ( crbug.com/140831 )

This is still an issue for us. I managed to pinpoint the part of the AS3 code that was causing the crash. It seems that the following AS3 code always causes a crash in Chrome 21.0.1180.79, Windows 7, using the Pepper flash plugin version 11.3.31.227. 

var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
var mic:Microphone = Microphone.getMicrophone();
mic.addEventListener(StatusEvent.STATUS, standardSecurityPopupStatusChangeHandler);
ns.attachAudio(mic);		// This line causes the crash. If you disable the pepper
					// plugin then it doesn't crash.



You can find the source code on my github:
https://github.com/aullman/aullman.github.com/blob/master/PepperAudioCrash/src/PepperAudioCrash.as

You can also run it at:
http://aullman.github.com/PepperAudioCrash/html/

We use this workaround of connecting the NetStream to a null NetConnection so that we can get activityLevel's on multiple Microphone objects. We have a device panel that displays the activity on all of your microphones at once so you know which one to pick.
 

Comment 1 by raymes@chromium.org, Aug 16 2012

Thanks adam@tokxbox.com. I can't seem to reproduce this though. Going to http://aullman.github.com/PepperAudioCrash/html/ seems to work fine for me with the following config:
Chrome 21.0.1180.79 
Flash 11.3.31.227 
OS Win7

I have a webcam with a microphone plugged in.

Is there anything else interesting about your setup? Do you have 1 microphone or multiple. Do you have a webcam plugged in?

Comment 2 by raymes@chromium.org, Aug 16 2012

Also, does the Allow/Deny security prompt (for webcam/mic) display correctly? Does the crash happen before or after this dialog is displayed?

Comment 3 by aechow.w...@gmail.com, Aug 16 2012

In the past, we've had problems with some pre-installed software on some systems. Not sure if this is the case or not here. What type of webcam are you using?

Comment 4 by a...@tokbox.com, Aug 17 2012

Sorry about that. I tried to isolate the part of my code that was causing the crash, commenting out this code in my app does stop it from crashing but this code alone does not seem to be causing the crash for me either. I should have tested more thoroughly before posting this, sorry about that. 

I did some more digging to try and get a clear repro case that I could give you the code for but didn't have much luck. Had some clues around getting an enhanced microphone (Microphone.getEnhancedMicrophone()) and attached it to a NetStream causing the crash too. But likewise, this alone does not seem to cause the crash.

Anyway, I have uploaded a test case of my app that does crash consistently for me. I would rather not give out the source code for it but if you need more specifics I can do some more digging and try to create an app with just the code that causes the crash.

You can find the crashing app at:

http://aullman.github.com/PepperAudioCrash/html/publisher.html

Clicking allow always causes a crash in Chrome 21.0.1180.79, Windows 7, using the Pepper flash plugin version 11.3.31.227 for me. If I disable the plugin then it does not crash in the standard Flash Player.

Comment 5 by raymes@chromium.org, Aug 17 2012

Thanks for the example. I've been looking at this today. There's actually 2 issues causing the crash. One is related to initializing enhanced audio and I have a fix for that. I'm looking into the other issue now.

Comment 6 by a...@tokbox.com, Aug 18 2012

Thanks!

Comment 7 by jeffreyr...@gmail.com, Aug 21 2012

This is also an issue for us. Do you have any info on when you will release a fix for this?
Thanks

Comment 8 by raymes@chromium.org, Aug 21 2012

I have a fix for this. It should go out in a canary build soon. I'll keep this bug updated.

Comment 9 by viettrungluu@chromium.org, Aug 21 2012

Status: Started

Comment 10 by tinycha...@gmail.com, Aug 22 2012

raymes: does the fix also solve the choppy audio issue as well, or just the crashes?

Comment 11 by raymes@chromium.org, Aug 22 2012

Status: Fixed
This only fixes the crashes. This should be fixed in the latest Canary (Chrome 23.0.1242.0 and Flash 11.3.31.319). Let me know if you can still reproduce the issue.

I'm investigating the audio choppiness now.

Comment 12 by a...@tokbox.com, Aug 23 2012

I'm still getting a crashing going to the following URL on Chrome Canary Windows XP

http://aullman.github.com/PepperAudioCrash/html/publisher.html

It doesn't so much crash as just become unresponsive. It appears to happen when I attach a Microphone to the netstream. If I take out the line of code that does that then I don't crash.

Comment 13 by a...@tokbox.com, Aug 23 2012

This was using Google Chrome 23.0.1242.0 canary and Flash 11.3.31.319

Comment 14 by raymes@chromium.org, Aug 23 2012

I'll take a look. What about Win7?

Comment 15 by a...@tokbox.com, Aug 23 2012

Unfortunately I don't have a Win7 machine with me right now. I can test it tomorrow though and get back to you.

Comment 16 by tinycha...@gmail.com, Aug 23 2012

@tokbox : I tested it on win7 / latest canary. Not sure if I got a "crash" but it did not display back any audio or video. However, it did seem to "cycle" through my cameras/mics. I have 3 cinema displays and I saw the cam light for all 3 come on briefly then go off. I am not able to get any video to show up in the preview after clicking allow.

Comment 17 by tinycha...@gmail.com, Aug 23 2012

forgot to add: win 7 64 - And it didnt crash (as in, no warning on page that it crashed) but it definitely didnt do anything once i clicked  allow, however I was still able to interact with the flash applet to change mic/cam settings.

Comment 18 by a...@tokbox.com, Aug 24 2012

Yeah that app isn't supposed to do anything once you click allow. I took the attaching camera to video part out because I was trying to isolate the issue.

It looks like this particular issue is fixed on my Win 7 machine. Yay, thanks! Every time I go to that app it works on Canary but crashes on Chrome 21. Well done :)

Still crashes for me on XP though but I think that must be another crashing issue which has to do with attaching a Mic on a netstream. I think it can be either an enhanced or not enhanced Mic as well.

Comment 19 by raymes@chromium.org, Aug 24 2012

Status: Started
Thanks. Those patches should be merged to 22.

I can reproduce the issue on XP and I'm looking into it. Re-opening this until I figure out whether or not it's related.

Comment 20 by raymes@chromium.org, Aug 24 2012

@adam@tokbox.com: can you confirm if you see a chrome process using 100% CPU on your XP machine after you click accept on the webcam dialog?

Comment 21 by jeffreyr...@gmail.com, Aug 24 2012

Version 23.0.1243.2 canary
Shockwave Flash 11.3 r31
Version:	11.3.31.321
http://aullman.github.com/PepperAudioCrash/html/publisher.html
click allow
cpu usage 1% to 2%

Comment 22 by jeffreyr...@gmail.com, Aug 24 2012

windows 7

Comment 23 by raymes@chromium.org, Aug 24 2012

Yes, I'm curious about XP.

Comment 24 by raymes@chromium.org, Aug 24 2012

Status: Fixed
I believe this is a different issue. See https://code.google.com/p/chromium/issues/detail?id=144692

Comment 25 by raymes@chromium.org, Aug 24 2012

Issue 143024 has been merged into this issue.

Comment 26 by a...@tokbox.com, Aug 26 2012

Yes, that's what happens. a chrome process hits 99% and stays there for about 5 mins. Then it stops and goes back to 0-1%.

Comment 27 by morepa...@gmail.com, Aug 26 2012

Hi, has anybody found a workaround for this issue? I'm developing a videochat webapp, but I cannot release it until it works in chrome... has anybody got a suggestion for another similar web service?

Comment 28 by vivianz@chromium.org, Aug 29 2012

Status: Verified
Verified as fixed in Chrome 21.0.1180.87 on Windows 7 and WinXP, microphone show up without crash in tinychat.com and click all camera and microphone will grand access w/out crash in http://aullman.github.com/PepperAudioCrash/html/publisher.html.

Comment 29 by fma...@phemium.com, Sep 17 2012

Hi, we have in several computers version 21.0.1180.89 on XP, and the bug still happens when attaching the microphone.

Are you aware of it? CPU goes to 100% once I click on the Flash dialog.

Comment 30 by raymes@chromium.org, Sep 17 2012

Yes. The fix will be included in Chrome M22 which should be released soon.

Comment 31 by fma...@phemium.com, Sep 17 2012

Thanks a lot for your fast answer. This is a heavy handicap for our application.

Comment 32 by bugdroid1@chromium.org, Mar 10 2013

Project Member
Labels: -Area-Internals -Feature-Flash Cr-Content-Plugins-Flash Cr-Internals

Comment 33 by bugdroid1@chromium.org, Apr 6 2013

Project Member
Labels: Cr-Blink

Comment 34 by bugdroid1@chromium.org, Apr 6 2013

Project Member
Labels: -Cr-Content-Plugins-Flash Cr-Internals-Plugins-Flash

Comment 35 by laforge@google.com, Jul 24 2013

Cc: -jeffreyc@chromium.org

Sign in to add a comment