Closed Bug 992842 Opened 11 years ago Closed 7 years ago

[Camera][B2G][Nexus 5] No camera preview in Nexus 5 FX OS build.

Categories

(Firefox OS Graveyard :: GonkIntegration, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ctai, Unassigned)

Details

Attachments

(3 files)

There is no camera preview in Nexus 5 FX OS build, only black screen. But I still can take a picture.
I just use older commit to test in Nexus-4 KK, the preview is OK. #gecko: commit 618b2c258b58ebce5a244e9d2e3c93a0e463ad45 Merge: 6b9908e c027695 Author: Wes Kocher <wkocher@mozilla.com> Date: Tue Mar 25 20:03:13 2014 -0700 Merge fx-team to m-c #gaia: commit 434acd8400468b8216341d67731b072b24c53820 Merge: 9971120 06e7df2 Author: Francisco Jordano <arcturus@ardeenelinfierno.com> Date: Wed Mar 26 08:38:13 2014 +0000 Merge pull request #17527 from nucliweb/985938-Contacts-Facebook-Export Bug 985938 - [Contacts] Select mode checkbox is being overlaped by facebook indicator
After checkout both Gaia and Gecko to comment 2 commit number, still see the black preview. Also see some error message from mm-camera. Please see below log. Need info to Michael Vine to see whether Qualcomm driver issue or not. 03-26 13:14:58.610 E/mm-camera-img( 200): img_core_get_comp:37] role 3 name qcom.cac 03-26 13:14:58.610 E/mm-camera-img( 200): img_core_get_comp:42] comp_index[0] role 0 name qcom.wavelet 03-26 13:14:58.610 E/mm-camera-img( 200): img_core_get_comp:42] comp_index[1] role 1 name qcom.hdr 03-26 13:14:58.610 E/mm-camera-img( 200): img_core_get_comp:42] comp_index[2] role 2 name qcom.faceproc 03-26 13:14:58.610 E/mm-camera-img( 200): img_core_get_comp:42] comp_index[3] role 3 name qcom.cac 03-26 13:14:58.610 E/mm-camera-img( 200): img_core_get_comp:47] find component role 3 name qcom.cac 03-26 13:14:58.610 E/mm-camera-img( 200): cac_comp_load:679] Error opening CAC library 03-26 13:14:58.610 E/mm-camera( 200): module_cac_init:1027] Error rc -6 03-26 13:14:58.610 E/mm-camera( 200): pproc_module_init:1967] cac module create failed 03-26 13:14:58.610 E/mm-camera-img( 200): img_core_get_comp:37] role 2 name qcom.faceproc 03-26 13:14:58.610 E/mm-camera-img( 200): img_core_get_comp:42] comp_index[0] role 0 name qcom.wavelet 03-26 13:14:58.610 E/mm-camera-img( 200): img_core_get_comp:42] comp_index[1] role 1 name qcom.hdr 03-26 13:14:58.610 E/mm-camera-img( 200): img_core_get_comp:42] comp_index[2] role 2 name qcom.faceproc 03-26 13:14:58.610 E/mm-camera-img( 200): img_core_get_comp:47] find component role 2 name qcom.faceproc . . . 03-26 13:15:03.340 E/mm-camera-intf( 179): mm_camera_open: opened, break out while loop 03-26 13:15:03.340 E/mm-camera-intf( 179): mm_camera_open: cannot open control fd of '/dev/video1' (Connection timed out) 03-26 13:15:03.340 E/mm-camera-intf( 179): camera_open: mm_camera_open err = -1 03-26 13:15:03.340 E/QCamera3HWI( 179): static int qcamera::QCamera3HardwareInterface::initCapabilities(int): camera_open failed 03-26 13:15:03.340 E/mm-camera-intf( 179): mm_camera_open: dev name = /dev/video2, cam_idx = 2 03-26 13:15:03.340 E/mm-camera-sensor( 200): module_sensor_start_session:577 session 2 03-26 13:15:03.519 E/Diag_Lib( 189): Diag_LSM_Init: Failed to open handle to diag driver, error = 2 03-26 13:15:03.529 E/Sensors ( 190): sns_smr_util.c(104):Unable to initialize service 259 with QCCI, timed out (2000 ms) 03-26 13:15:03.559 E/mm-camera-sensor( 200): module_sensor_init_session:471 ois device is not supported 03-26 13:15:03.559 E/mm-camera-sensor( 200): 03-26 13:15:03.569 I/mm-camera( 200): gyro_module_start_session: Enter 03-26 13:15:03.569 I/mm-camera( 200): gyro_module_start_session: Init DSPS 03-26 13:15:03.569 I/libsensor1( 200): sensor1_init_once: Setting log level to 4 03-26 13:15:03.629 I/ServiceManager( 184): Waiting for service media.audio_policy... 03-26 13:15:03.909 E/Sensors ( 190): sns_acm_mr.c(388):Error getting info for service 3 03-26 13:15:03.949 I/mm-camera( 200): gyro_module_start_session: Exit successful 03-26 13:15:03.949 I/mm-camera( 200): gyro_module_get_port: Exit successful 03-26 13:15:03.949 E/mm-camera( 200): cpp_module_start_session:352, info: starting session 2 03-26 13:15:03.969 E/mm-camera( 200): cpp_thread_func:55: cpp_thread entering the polling loop... 03-26 13:15:03.969 E/mm-camera( 200): cpp_module_start_session:422, info: cpp_thread created. 03-26 13:15:03.969 E/mm-camera( 200): cpp_module_start_session:425, info: session 2 started. 03-26 13:15:03.969 E/mm-camera( 200): c2d_module_start_session:246, info: starting session 2 03-26 13:15:03.969 E/mm-camera( 200): c2d_thread_func:39: c2d_thread entering the polling loop... 03-26 13:15:03.969 E/mm-camera( 200): c2d_module_start_session:284, info: c2d_thread created. 03-26 13:15:03.969 E/mm-camera( 200): c2d_module_start_session:306, info: session 2 started. 03-26 13:15:03.969 E/mm-camera-sensor( 200): module_module_set_session_data:2435 max delay 2 report dSelay 1 03-26 13:15:03.969 E/mm-camera( 200): module_faceproc_set_session_data:1826] Per frame control 2 1 03-26 13:15:03.969 E/mm-camera-intf( 179): mm_camera_open: opened, break out while loop 03-26 13:15:03.969 E/mm-camera( 200): mct_pipeline_process_set:command=800000b 03-26 13:15:03.969 E/mm-camera( 200): mct_pipeline_get_stream: no children 03-26 13:15:03.969 E/mm-camera( 200): mct_pipeline_process_set:1370: Couldn't find stream 03-26 13:15:03.969 E/mm-camera-sensor( 200): module_sensor_stop_session:630 session 2 03-26 13:15:04.059 E/mm-camera( 200): stats_module_stop_session: list =0xb7f7cf20, remove port =0xb7f728d8 name=stats_sink from module=0xb7f60778, name=stats 03-26 13:15:04.059 E/mm-camera( 200): stats_module_stop_session: 1 port =0xb7f728d8 name=stats_sink 03-26 13:15:04.059 E/mm-camera( 200): stats_module_stop_session: 2 port =0xb7f728d8 name=stats_sink 03-26 13:15:04.059 I/mm-camera( 200): gyro_module_stop_session: Enter 03-26 13:15:04.069 I/mm-camera( 200): gyro_module_stop_session: Deinit DSPS 03-26 13:15:04.069 I/mm-camera( 200): gyro_module_stop_session: Exit successful 03-26 13:15:04.069 E/mm-camera( 200): stats_module_stop_session: 3 port =0xb7f728d8 name=stats_sink 03-26 13:15:04.069 E/mm-camera( 200): cpp_module_stop_session:453, info: stopping session 2 ... 03-26 13:15:04.069 E/mm-camera( 200): cpp_thread_process_pipe_message:359, CPP_THREAD_MSG_ABORT: cpp_thread exiting.. 03-26 13:15:04.079 E/mm-camera( 200): cpp_module_stop_session:495, info: session 2 stopped. 03-26 13:15:04.079 E/mm-camera( 200): c2d_module_stop_session:322, info: stopping session 2 ... 03-26 13:15:04.079 E/mm-camera( 200): c2d_module_stop_session:327, info: stopping c2d_thread... 03-26 13:15:04.079 E/mm-camera( 200): c2d_module_post_msg_to_thread:381, msg.type=1 03-26 13:15:04.079 E/mm-camera( 200): c2d_thread_process_pipe_message:503, C2D_THREAD_MSG_ABORT: c2d_thread exiting.. 03-26 13:15:04.079 E/mm-camera( 200): c2d_module_stop_session:339, closing c2d subdev... 03-26 13:15:04.079 E/mm-camera( 200): c2d_module_stop_session:361, info: session 2 stopped.
Flags: needinfo?(mvines)
Sorry, I'm not sure. We aren't supporting N5 for FxOS here.
Flags: needinfo?(mvines)
Assignee: ctai → nobody
Attached file Logcat camera
Here the logcat of this commit: 2014-10-23 04:04:32 (a9d21e1a)
Attached image 2014-10-28-17-55-47.png
This is black screen preview in camera app
Attached image 2014-10-28-17-56-29.jpg
When press the central button to change app, in the camera preview can see the image
Looking at attachment 8511253 [details], something is going horribly wrong with the Camera app on the Nexus 5: E/OomLogger( 187): [Kill]: send sigkill to 22795 (Camera), adj 734, size 322091 If this message is accurate, the Camera app is being killed because it is using 322,091 4KiB pages, or ~1.3GB of memory.
Also, attachment 8513023 [details] and attachment 8513025 [details] are taken from a Nexus 7. Sorry for the confusion.
Indeed, https://bugzilla.mozilla.org/attachment.cgi?id=8513023 and https://bugzilla.mozilla.org/attachment.cgi?id=8513025 seems coming from nexus 7. All I can say is https://bugzilla.mozilla.org/attachment.cgi?id=8511253 is reliable and camera for nexus 5 is totally broken in nightly version of FFOS: no preview (even if I press the central button to change app), no photos and no movies because all buttons are as inactives.
I don't know if it could help or give some infos/hope, but this app: https://marketplace.firefox.com/app/led-flashlight?src=new works properly on my Nexus5 (nightly branch), so Camera isn't completly on Nexus5: flash works...
I spoke to eyome on IRC yesterday, and my local build of nexus-5-l works: - gecko master/f92e932543a1bb08f0ee9297659ecfa9824dc531 - gaia master/0d9a825dd27ed63f877d5140a08327cc8f91ec74 This was using: # git clone .../B2G.git # cd B2G # ./config.sh nexus-5-l # ./build.sh # ./flash.sh
(In reply to Mike Habicher [:mikeh] from comment #11) > I spoke to eyome on IRC yesterday, and my local build of nexus-5-l works: > > - gecko master/f92e932543a1bb08f0ee9297659ecfa9824dc531 > - gaia master/0d9a825dd27ed63f877d5140a08327cc8f91ec74 > > This was using: > # git clone .../B2G.git > # cd B2G > # ./config.sh nexus-5-l > # ./build.sh > # ./flash.sh I can also confirm that doing a fresh checkout, ./config nexus-5-l, and ./build.sh makes an image that allows the camera to work again on the Nexus 5. There are other issues I would love to see resolve of course such as usb mass storage not working but that is a different issue. Also BRANCH=v2.2 ./config.sh nexus-5-l is failing at the moment so no 2.2 build possible. dkl
As far as I experiment, this bug is now fixed for nexus5-l branch.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: