Closed Bug 1073873 Opened 10 years ago Closed 1 year ago

Green screen when trying to use built-in camera with WebRTC on Flatfish

Categories

(Core :: Graphics, defect)

ARM
Gonk (Firefox OS)
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: zrzut01, Unassigned)

Details

(Whiteboard: [flatfish])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0
Build ID: 20140923175406

Steps to reproduce:

1. Open https://apprtc.appspot.com/
2. Allow to use built-in camera device (no matter front or back)


Actual results:

Screen is green instead of camera content.


Expected results:

Built-in camera should provide picture instead of green screen.
Found on:

Foxconn InFcocus F1 tablet (TCP)
B2G version: 2.2.0.0-prerelease master
Platform version: 35.0a1
Build Identifier: 20140926013403
Git commit info: 2014-09-25 16:05:02 ba6cf2c8
OS: All → Gonk (Firefox OS)
Hardware: All → ARM
Whiteboard: [flatfish]
From logcat:

--------- beginning of /dev/log/main
I/GeckoDump( 1275): XXX FIXME : Got a mozContentEvent: activity-choice
I/GeckoDump( 1275): XXX FIXME : Got a mozContentEvent: permission-allow
W/AudioFlinger( 6042): Thread AudioOut_2 cannot connect to the power manager service
W/AudioFlinger( 6042): Thread AudioIn_16 cannot connect to the power manager service
W/AudioFlinger( 6042): Thread AudioIn_16 cannot connect to the power manager service
V/codec_audio_pad( 6042): normal record mode 4,****LINE:64,FUNC:set_normal_record_enable
V/codec_audio_pad( 6042): normal record mode 4,****LINE:70,FUNC:set_normal_record
V/codec_audio_pad( 6042): in normal mode, headset or speaker on,****LINE:54,FUNC:set_normal_path
I/AwesomePlayer( 6042): setDataSource_l(URL suppressed)
E/WVMExtractor( 6042): Failed to open libwvm.so
I/AwesomePlayer( 6042): setDataSource_l(URL suppressed)
E/WVMExtractor( 6042): Failed to open libwvm.so
I/CameraClient( 6042): Opening camera 1
W/AudioFlinger( 6042): RecordThread: buffer overflow
D/HALCameraFactory( 6042): Calling process is: /system/b2g/b2g
D/CameraHardware( 6042): Starting camera: 640x480 -> NV12(yuv420sp)
D/V4L2CameraDevice( 6042): startDevice, wxh: 640x480, fmt: 842094158
E/V4L2CameraDevice( 6042): v4l2setCaptureParams failed, Invalid argument
D/PreviewWindow( 6042): onNextFrameAvailable: Adjusting preview windows 0x42075760 geometry to 640x480
E/SurfaceTextureClient( 6042): ISurfaceTexture::setBufferCount(3) returned Invalid argument
E/PreviewWindow( 6042): native_window_set_buffer_count failed: Invalid argument (22)
I have experienced this situation after flash Flatfish build from 140912 to 140918.

I see bug 1000583 comment 7 have the same situation.


I suspect this is a regression of bug 880780, although I have no evidence.
Severity: normal → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
blocking-b2g: --- → 2.2?
Component: Gaia::Camera → Graphics
Product: Firefox OS → Core
Version: unspecified → Trunk
Flatfish specific?
blocking-b2g: 2.2? → ---
Severity: major → blocker
(In reply to YF (Yang) from comment #3)
> I have experienced this situation after flash Flatfish build from 140912 to
> 140918.
> 
> I see bug 1000583 comment 7 have the same situation.
> 
> 
> I suspect this is a regression of bug 880780, although I have no evidence.

I do not think it is related.
The behavior has changed a bit in latest builds (tested on 2014-12-20) : the screen now remains completely black when using webrtc.
There is also a sound when minimizing the application(or browser tab), like a notification (but there is no text displayed)
Using the camera application, it still works fine. But any application/website using webrtc seems to fail
Attached file logcat_webrtc.txt
Here is the logcat when trying to use webrtc on appear.in
It displays an error message "Unable to access Camera and microphone".

When using apprtc.appspot.com, it also fails with "getUserMedia() failed. Is this a WebRTC capable browser?" then "Failed to get access to local media. Error name was InternalError. Continuing without sending a stream"

In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.

Severity: blocker → --
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: