[mako] Size of the pictures is 1 byte if zoom level is slightly over 50%

Bug #1326101 reported by Jean-Baptiste Lallement
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
camera-app
Confirmed
High
Ugo Riboni
camera-app (Ubuntu)
Confirmed
High
Ugo Riboni

Bug Description

If zoom level is slightly over 50% then the size pictures are corrupted and their size is 1byte:

For example content of /home/phablet/Pictures:
[...]
-rw-rw-r-- 1 phablet phablet 1 Jun 3 20:58 image20140603_0010.jpg
-rw-rw-r-- 1 phablet phablet 480438 Jun 3 20:58 image20140603_0011.jpg
-rw-rw-r-- 1 phablet phablet 784018 Jun 3 20:58 image20140603_0012.jpg
-rw-rw-r-- 1 phablet phablet 1 Jun 3 20:59 image20140603_0013.jpg
[...]

TEST CASE:
1. Open the camera-app
2. Set the zoom level with the slider to slightly more than 50%
3. Take a picture

ACTUAL RESULT
The picture is corrupted and its size is 1 byte
# stat /home/phablet/Pictures/im
  File: ‘/home/phablet/Pictures/image20140603_0013.jpg’
  Size: 1 Blocks: 8 IO Block: 4096 regular file

EXPECTED RESULT
The picture is valid and correctly zoomed

summary: - picture are 1 byte size if zoom level is slightly over 50%
+ Size of the pictures is 1 byte if zoom level is slightly over 50%
Changed in camera-app:
status: New → Confirmed
importance: Undecided → Critical
Changed in camera-app:
milestone: none → rtm-freeze
Changed in camera-app:
assignee: nobody → Florian Boucault (fboucault)
Revision history for this message
Florian Boucault (fboucault) wrote : Re: Size of the pictures is 1 byte if zoom level is slightly over 50%

JB, do you mind providing a logcat of when it happens?

tags: added: rtm14
Revision history for this message
Florian Boucault (fboucault) wrote :

Also, on what device did you test?

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

I could reproduce this on mako at least. Here's the logcat:

--------- beginning of /dev/alog/main
I/audio_hw_primary( 2438): select_devices: enter - uc_id 1
I/audio_hw_primary( 2438): select_devices: VOICE_CALL is active
D/audio_hw_primary( 2438): select_devices: out_snd_device(2: speaker) in_snd_device(0: )
D/ACDB-LOADER( 2438): ACDB -> send_afe_cal
I/audio_hw_primary( 2438): select_devices: exit
I/audio_hw_primary( 2438): select_devices: enter - uc_id 1
I/audio_hw_primary( 2438): select_devices: VOICE_CALL is active
D/audio_hw_primary( 2438): select_devices: out_snd_device(2: speaker) in_snd_device(0: )
D/ACDB-LOADER( 2438): ACDB -> send_afe_cal
I/audio_hw_primary( 2438): select_devices: exit
D/libEGL ( 3783): loaded /system/lib/egl/libEGL_adreno.so
D/libEGL ( 3783): loaded /system/lib/egl/libGLESv1_CM_adreno.so
D/libEGL ( 3783): loaded /system/lib/egl/libGLESv2_adreno.so
I/Adreno-EGL( 3783): <qeglDrvAPI_eglInitialize:320>: EGL 1.4 QUALCOMM Build: I0404c4692afb8623f95c43aeb6d5e13ed4b30ddbDate: 11/06/13
W/Adreno-EGL( 3783): <qeglDrvAPI_eglSwapInterval:3795>: EGL_BAD_CONTEXT
I/ ( 3783): UASensorsAccelerometer* ua_sensors_accelerometer_new()():497
I/ ( 3783): uint32_t ua_sensors_accelerometer_get_min_delay(UASensorsAccelerometer*)():541
I/ ( 3783): UStatus ua_sensors_accelerometer_get_min_value(UASensorsAccelerometer*, float*)():554
I/ ( 3783): UStatus ua_sensors_accelerometer_get_max_value(UASensorsAccelerometer*, float*)():569
I/ ( 3783): UStatus ua_sensors_accelerometer_get_resolution(UASensorsAccelerometer*, float*)():584
I/ ( 3783): UStatus ua_sensors_accelerometer_enable(UASensorsAccelerometer*)():512
I/ ( 3783): UStatus ua_sensors_accelerometer_set_event_rate(UASensorsAccelerometer*, uint32_t)():620
V/MediaCodecLayer( 2822): void* decoding_service_create_session()
D/DecodingService( 2822): android::BnDecodingServiceSession::BnDecodingServiceSession()
D/DecodingService( 2822): static android::sp<android::BpDecodingService>& android::DecodingClient::service_instance()
D/DecodingService( 2822): Creating a new static BpDecodingService instance
D/DecodingService( 2822): Entering android::BpDecodingService::BpDecodingService(const android::sp<android::IBinder>&)
D/DecodingService( 2822): Entering virtual android::status_t android::BpDecodingService::registerSession(const android::sp<android::IDecodingServiceSession>&)
D/MediaCodecLayer( 2822): Entering android::DSSessionWrapper::DSSessionWrapper(const android::sp<android::IDecodingServiceSession>&)
I/audio_hw_primary( 2438): select_devices: enter - uc_id 1
I/audio_hw_primary( 2438): select_devices: VOICE_CALL is active
D/audio_hw_primary( 2438): select_devices: out_snd_device(2: speaker) in_snd_device(0: )
D/ACDB-LOADER( 2438): ACDB -> send_afe_cal
I/audio_hw_primary( 2438): select_devices: exit
I/audio_hw_primary( 2438): select_devices: enter - uc_id 1
I/audio_hw_primary( 2438): select_devices: VOICE_CALL is active
D/audio_hw_primary( 2438): select_devices: out_snd_device(2: speaker) in_snd_device(0: )
D/ACDB-LOADER( 2438): ACDB -> send_afe_cal
I/audio_hw_primary( 2438): select_devices: exit

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

ls -l

-rw-rw-r-- 1 phablet phablet 983382 Aug 6 14:06 image20140806_0001.jpg
-rw-rw-r-- 1 phablet phablet 1002114 Aug 6 14:25 image20140806_0002.jpg
-rw-rw-r-- 2 phablet phablet 788729 Aug 6 14:29 image20140806_0003.jpg
-rw-rw-r-- 1 phablet phablet 773958 Aug 6 14:29 image20140806_0004.jpg
-rw-rw-r-- 1 phablet phablet 1 Aug 6 16:03 image20140806_0005.jpg

Changed in camera-app:
status: Confirmed → In Progress
Revision history for this message
Florian Boucault (fboucault) wrote :

Easily reproducible on mako, not on other phones.

Changed in camera-app:
importance: Critical → High
status: In Progress → Confirmed
tags: removed: rtm14
Changed in camera-app:
milestone: rtm-freeze → none
Ugo Riboni (uriboni)
Changed in camera-app:
assignee: Florian Boucault (fboucault) → Ugo Riboni (uriboni)
summary: - Size of the pictures is 1 byte if zoom level is slightly over 50%
+ [mako] Size of the pictures is 1 byte if zoom level is slightly over 50%
Revision history for this message
Ugo Riboni (uriboni) wrote :

Mako has 60 zoom levels, and taking pictures with zoom level 29 triggers the bug.
Krillin has 16 zoom levels and none of them triggers this bug.

Changed in camera-app (Ubuntu):
assignee: nobody → Ugo Riboni (uriboni)
status: New → Confirmed
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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