vexpress: Video playback fails in Gallery app

Bug #908082 reported by Tixy (Jon Medhurst) on 2011-12-23
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Won't Fix
Medium
Unassigned
linaro-landing-team-arm
Won't Fix
Medium
Unassigned

Bug Description

Attemping to play video in the gallery app, produces a blank screen. logcat shows...

 W/GraphicBufferAllocator( 655): alloc(854, 480, 842094169, 00002930, ...) failed -22 (Invalid argument)
 E/SurfaceFlinger( 655): GraphicBufferAlloc::createGraphicBuffer(w=854, h=480) failed (Invalid argument), handle=0x0
 E/SurfaceTexture( 655): [SurfaceView] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed
 W/SoftwareRenderer( 658): Surface::dequeueBuffer returned error -22

Tested on 11.12 ICS release , with video file http://samplemedia.linaro.org/VP8/big_buck_bunny_480p_VP8_VORBIS_25fps_1900K.WebM

##############################################################
The 480p video on SD card playback failed on following images:
https://android-build.linaro.org/builds/~linaro-android/staging-vexpress-a9-12.01-release/#build=3
https://android-build.linaro.org/builds/~linaro-android/vexpress-ics-gcc46-armlt-stable-open-12.02-release/#build=3
https://android-build.linaro.org/builds/~linaro-android/vexpress-ics-gcc46-armlt-stable-open-12.03-release/#build=4
https://android-build.linaro.org/builds/~linaro-android/vexpress-ics-gcc47-armlt-tracking-open/#build=71
https://android-build.linaro.org/builds/~linaro-android/vexpress-ics-gcc47-armlt-tracking-open/#build=78
https://android-build.linaro.org/builds/~linaro-android/vexpress-ics-gcc47-armlt-tracking-open/#build=83
https://android-build.linaro.org/builds/~linaro-android/vexpress-ics-gcc47-armlt-tracking-open-12.07-release/#build=1
https://android-build.linaro.org/builds/~linaro-android/vexpress-ics-gcc47-armlt-tracking-open/#build=97
https://android-build.linaro.org/builds/~linaro-android/vexpress-ics-gcc47-armlt-tracking-open/#build=104
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open/#build=7
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open/#build=16
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open-12.08-release/#build=1
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open/#build=30
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open/#build=37
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open/#build=42
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open-12.09-release/#build=3
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open/#build=57
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open/#build=65
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open/#build=71
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open-12.10-release/#build=1
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open/#build=95
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open/#build=99
https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open-12.11-release/#build=2
https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-mp/#build=185
https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-mp/#build=191
https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-mp-13.02-release/#build=2
https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-mp-13.03-release/#build=1
https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-mp/#build=250
https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-mp-13.04-release/#build=5
https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-mp/#build=291
https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-mp-13.05-release/#build=2
https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-mp/#build=325

Changed in linaro-landing-team-arm:
importance: Undecided → Medium
status: New → Triaged
Changed in linaro-android:
importance: Undecided → Medium
Tixy (Jon Medhurst) (tixy) wrote :

In the 2012.02 release, logcat shows AudioFlinger error not SurfaceFlinger error. So perhaps it's just the lack of audio on vexpress which is the problem?

See in build: https://android-build.linaro.org/builds/~linaro-android/vexpress-ics-gcc46-armlt-stable-open-12.02-release/#build=3

tags: added: linaro-android video-playback
Botao (botao-sun) wrote :

Can't play video on build:

https://android-build.linaro.org/builds/~linaro-android/vexpress-ics-gcc47-armlt-tracking-open/#build=83

The video preview in Gallery app is unavailable either. However, you still can click that "black cube" area because you know video is there.

Botao (botao-sun) wrote :
Botao (botao-sun) wrote :
Botao (botao-sun) wrote :

Same behaviour observed as comment #6 on vexpress A9 board with Linaro Jelly Bean image:

https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open/#build=30

Botao (botao-sun) on 2012-09-25
description: updated
Tixy (Jon Medhurst) (tixy) wrote :
Download full text (7.2 KiB)

Testing of the 12.09 release (https://android-build.linaro.org/builds/~linaro-android/vexpress-jb-gcc47-armlt-tracking-open-12.09-release/#build=3) shows different failure. Note, this occurs earlier than the original failure and happens before the play button or a still from the videos is displayed...

W/ImageCacheRequest( 2500): decode orig failed /local/video/item/30,MICROTHUMB
E/libEGL ( 2500): called unimplemented OpenGL ES API
V/StateManager( 2500): startStateForResult class com.android.gallery3d.app.PhotoPage, 2
D/dalvikvm( 2500): GC_CONCURRENT freed 279K, 9% free 7893K/8647K, paused 2ms+3ms, total 15ms
E/StrictMode( 2500): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
E/StrictMode( 2500): java.lang.Throwable: Explicit termination method 'close' not called
E/StrictMode( 2500): at dalvik.system.CloseGuard.open(CloseGuard.java:184)
E/StrictMode( 2500): at java.io.FileInputStream.<init>(FileInputStream.java:80)
E/StrictMode( 2500): at java.io.FileInputStream.<init>(FileInputStream.java:105)
E/StrictMode( 2500): at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:64)
E/StrictMode( 2500): at java.lang.reflect.Method.invokeNative(Native Method)
E/StrictMode( 2500): at java.lang.reflect.Method.invoke(Method.java:511)
E/StrictMode( 2500): at com.android.gallery3d.common.BitmapUtils.createVideoThumbnail(BitmapUtils.java:200)
E/StrictMode( 2500): at com.android.gallery3d.data.LocalVideo$LocalVideoRequest.onDecodeOriginal(LocalVideo.java:167)
E/StrictMode( 2500): at com.android.gallery3d.data.ImageCacheRequest.run(ImageCacheRequest.java:74)
E/StrictMode( 2500): at com.android.gallery3d.data.LocalVideo$LocalVideoRequest.run(LocalVideo.java:156)
E/StrictMode( 2500): at com.android.gallery3d.data.ImageCacheRequest.run(ImageCacheRequest.java:28)
E/StrictMode( 2500): at com.android.gallery3d.app.PhotoDataAdapter$ScreenNailJob.run(PhotoDataAdapter.java:658)
E/StrictMode( 2500): at com.android.gallery3d.app.PhotoDataAdapter$ScreenNailJob.run(PhotoDataAdapter.java:638)
E/StrictMode( 2500): at com.android.gallery3d.util.ThreadPool$Worker.run(ThreadPool.java:124)
E/StrictMode( 2500): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
E/StrictMode( 2500): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
E/StrictMode( 2500): at java.lang.Thread.run(Thread.java:856)
E/StrictMode( 2500): at com.android.gallery3d.util.PriorityThreadFactory$1.run(PriorityThreadFactory.java:43)
E/StrictMode( 2500): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
E/StrictMode( 2500): java.lang.Throwable: Explicit termination method 'close' not called
E/StrictMode( 2500): at dalvik.system.CloseGuard.open(CloseGuard.java:184)
E/StrictMode( 2500): at java.io.FileInputStream.<init>(FileInputStream.java:80)
E/StrictMode( 2500): at java.io.FileInputStream.<init>(FileInputStream.java:105)
E/StrictMode( 2500): at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:64)
E/Stric...

Read more...

Amit Khare (amit-khare) on 2012-10-04
description: updated
Amit Khare (amit-khare) on 2012-10-12
description: updated
Amit Khare (amit-khare) on 2012-10-16
description: updated
Amit Khare (amit-khare) on 2012-10-23
description: updated
summary: - vexpress-a9: Video playback fails in Gallery app
+ vexpress: Video playback fails in Gallery app
Anmar Oueja (anmar) on 2012-11-08
Changed in linaro-landing-team-arm:
status: Triaged → Won't Fix
Botao (botao-sun) on 2012-11-09
description: updated
Botao (botao-sun) on 2012-11-14
description: updated
Botao (botao-sun) on 2012-11-29
description: updated
Tixy (Jon Medhurst) (tixy) wrote :

Playing a video now gives the audio track but a black screen. Logcat shows lots of lines like:

E/BufferQueue( 1926): [SurfaceView] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count
W/SoftwareRenderer( 1929): Surface::dequeueBuffer returned error -22

this is the same symptoms as playing YouTube videos in the browser, see bug #987172

Botao (botao-sun) on 2013-02-14
description: updated
Botao (botao-sun) on 2013-02-19
description: updated
Botao (botao-sun) on 2013-02-25
description: updated
Botao (botao-sun) on 2013-03-27
description: updated
Botao (botao-sun) on 2013-04-11
description: updated
Botao (botao-sun) on 2013-04-23
description: updated
Botao (botao-sun) on 2013-05-22
description: updated
Botao (botao-sun) on 2013-05-29
description: updated
Soumya Basak (soumya-basak) wrote :

the issue observed with Linaro-android TI-panda builds
https://android-build.linaro.org/builds/~linaro-android-member-ti/panda-linaro/#build=323

with TI-Panda 4460 board:

test data:
480p http://samplemedia.linaro.org/H264/big_buck_bunny_480p_H264_AAC_25fps_1800K.MP4
1080p http://samplemedia.linaro.org/H264/big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4

480p video play , in the gallery app is fine. no regression, audio track also good.
on the other hand, 1080p video Playback of video, in the gallery app can not played successfully. audio track is good. Bug #1175457

Botao (botao-sun) on 2013-06-19
description: updated
Milosz Wasilewski (mwasilew) wrote :

Closing as won't fix. Same problem as described in https://bugs.launchpad.net/linaro-android/+bug/987172/comments/26

Changed in linaro-android:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints