direct_camera_test segfaults

Bug #1298669 reported by Chris Gagnon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libhybris (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Summary:
direct_camera_test segfaults

Steps:
1. run adb shell /android/system/bin/direct_camera_test

Expected result:
test passes

Actual result:
segfaults, sometimes the test will printout camera info before it segfaults

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libhybris 0.1.0+git20131207+e452e83-0ubuntu6
Uname: Linux 3.0.0-3-maguro armv7l
ApportVersion: 2.13.2-0ubuntu4
Architecture: armhf
Date: Thu Mar 27 22:31:50 2014
InstallationDate: Installed on 2014-02-17 (38 days ago)
InstallationMedia: Ubuntu Trusty Tahr (development branch) - armhf (20140217)
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
SourcePackage: libhybris
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Chris Gagnon (chris.gagnon) wrote :
Revision history for this message
Chris Gagnon (chris.gagnon) wrote :
Download full text (3.1 KiB)

Output from test

/android/system/bin/direct_camera_test
antibanding=auto;antibanding-values=auto,50hz,60hz,off;auto-convergence=;auto-convergence-mode=;auto-exposure-lock=false;auto-exposure-lock-supported=true;auto-whitebalance-lock=false;auto-whitebalance-lock-supported=true;brightness=50;camera-name=S5K6A1GX03;contrast=100;effect=none;effect-values=none,negative,solarize,sepia,mono,whiteboard,blackboard,aqua,posterize;exif-make=Samsung;exif-model=Galaxy Nexus;exposure=auto;exposure-compensation=0;exposure-compensation-step=0.1;exposure-mode-values=auto,night,backlighting,spotlight,sports,snow,beach,aperture,small-aperture,;flash-mode=off;flash-mode-values=off;focal-length=1.95;focus-distances=Infinity,Infinity,Infinity;focus-mode=infinity;focus-mode-values=infinity;gbce=disable;horizontal-view-angle=54.8;ipp=ldc-nsf;ipp-values=off,ldc,nsf,ldc-nsf;iso=auto;iso-mode-values=auto,100,200,400,800;jpeg-quality=95;jpeg-thumbnail-height=120;jpeg-thumbnail-quality=60;jpeg-thumbnail-size-values=640x480,160x120,200x120,320x240,512x384,352x144,176x144,96x96,0x0;jpeg-thumbnail-width=160;manual-convergence-values=;max-exposure-compensation=30;max-framerate=30;max-num-detected-faces-hw=35;max-num-detected-faces-sw=0;max-num-focus-areas=0;max-num-metering-areas=10;max-zoom=60;min-exposure-compensation=-30;min-framerate=15;picture-format=jpeg;picture-format-values=yuv420sp,yuv420p,yuv422i-yuyv,rgb565,raw,jpeg;picture-size=320x240;picture-size-values=1280x1024,1152x864,1280x960,640x480,320x240;preview-format=yuv420sp;preview-format-values=yuv420sp,yuv420p,yuv422i-yuyv,yuv420p;preview-fps-range=15000,30000;preview-fps-range-values=(15000,15000),(15000,30000),(24000,30000);preview-frame-rate=30;preview-frame-rate-values=30,15;preview-size=640x480;preview-size-values=1280x720,960x720,800x480,720x576,720x480,768x576,640x480,320x240,352x288,240x160,176x144,128x96;recording-hint=;s3d-supported=;s3d2d-preview=;s3d2d-preview-values=;saturation=100;scene-mode=auto;scene-mode-values=auto,action,night,party,sunset;sensor-orientation=;sensor-orientation-values=;sharpness=100;smooth-zoom-supported=true;vertical-view-angle=42.5;video-frame-format=OMX_TI_COLOR_FormatYUV420PackedSemiPlanar;video-snapshot-supported=true;video-stabilization=false;video-stabilization-supported=true;whitebalance=auto;whitebalance-values=auto,daylight,cloudy-daylight,fluorescent,incandescent,;zoom=0;zoom-ratios=100,104,107,111,115,119,123,127,132,137,141,146,152,157,162,168,174,180,187,193,200,207,214,222,230,238,246,255,264,273,283,293,303,314,325,336,348,361,373,386,400,414,429,444,459,476,492,510,528,546,566,586,606,628,650,673,696,721,746,773,800;zoom-supported=true
Supported size: [1280,1024]
Supported size: [1152,864]
Supported size: [1280,960]
Supported size: [640,480]
Supported size: [320,240]
Supported size: [1280,720]
Supported size: [960,720]
Supported size: [800,480]
Supported size: [720,576]
Supported size: [720,480]
Supported size: [768,576]
Supported size: [640,480]
Supported size: [320,240]
Supported size: [352,288]
Supported size: [240,160]
Supported size: [176,144]
Supported size: [128,96]
Preview fps range: [15000,30000]
Current preview fps range: 30
Segmentation fault (co...

Read more...

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

This is indeed happening with Android 4.4, but in your case you're not correctly executing the test case (you should run the android executable from the android container).

To run this test case specifically:
rsalveti@evasys:~$ adb shell
root@ubuntu-phablet:/# lxc-console -nandroid -t0

Connected to tty 0
Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a itself
130|root@flo:/ # direct_camera_test
....

It crashes with a segfault because it's trying to render using framebuffer, instead of hwcomposer.

Changed in libhybris (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.