[Galaxy Tab 2 Q&A, Help & Troubleshooting] Aquous:
Hi,

I have a p5100 flashed with latest CM. When I try to play any video requiring h/w accel (this included youtube, which the below logcat is from), I get no video and these errors in logcat:

D/dalvikvm(12463): GC_EXPLICIT freed 130K, 44% free 5812K/10232K, paused 2ms+5ms, total 55ms
I/dalvikvm(12515): Could not find method android.graphics.SurfaceTexture.releaseTexImage, referenced from method org.chromium.ui.gl.SurfaceTexturePlatformWrapper.releaseTexImage
W/dalvikvm(12515): VFY: unable to resolve virtual method 960: Landroid/graphics/SurfaceTexture;.releaseTexImage ()V
D/dalvikvm(12515): VFY: replacing opcode 0x6e at 0x0010
I/VideoFling(12463): Adding remote media route controller com.google.android.apps.chrome.videofling.YouTubeMediaRouteController
D/dalvikvm( 8193): GC_CONCURRENT freed 423K, 50% free 5142K/10232K, paused 2ms+8ms, total 161ms
I/MediaRouter(12463): Found default route: MediaRouter.RouteInfo{ uniqueId=android/.support.v7.media.Q:DEFAULT_ROUTE, name=Tablet, description=null, enabled=true, connecting=false, canDisconnect=false, playbackType=0, playbackStream=3, volumeHandling=1, volume=9, volumeMax=15, presentationDisplayId=-1, extras=null, settingsIntent=null, providerPackageName=android }
I/VideoFling(12463): Adding remote media route controller com.google.android.apps.chrome.videofling.ChromeDefaultMediaRouteController
D/MediaResourceGetter(12463): ethernet/wifi connection detected
D/MediaResourceGetter(12463): resource has video
D/MediaResourceGetter(12463): extracted valid metadata: MediaMetadata[durationInMilliseconds=189684, width=640, height=360, success=true]
D/dalvikvm(12835): GC_CONCURRENT freed 508K, 59% free 4279K/10232K, paused 5ms+10ms, total 166ms
D/dalvikvm(12835): WAIT_FOR_CONCURRENT_GC blocked 21ms
I/AudioService( 1045): AudioFocus requestAudioFocus() from android.media.AudioManager@4244a708org.chromium.media.MediaPlayerListener@42328a20
D/MediaPlayer(12463): Couldn't open file on client side, trying server side
I/AwesomePlayer( 777): setDataSource_l(URL suppressed)
D/dalvikvm(12835): GC_CONCURRENT freed 511K, 59% free 4279K/10232K, paused 11ms+2ms, total 186ms
D/dalvikvm(12835): WAIT_FOR_CONCURRENT_GC blocked 13ms
I/OMXCodec( 777): [OMX.TI.DUCATI1.VIDEO.DECODER] AVC profile = 66 (Baseline), level = 30
I/OMXCodec( 777): [OMX.TI.DUCATI1.VIDEO.DECODER] video dimensions are 640 x 360
I/OMXCodec( 777): [OMX.TI.DUCATI1.VIDEO.DECODER] Crop rect is 640 x 360 @ (0, 0)
W/GraphicBufferMapper( 777): registerBuffer(0x495631a0) failed -14 (Bad address)
E/GraphicBuffer( 777): unflatten: registerBuffer failed: Bad address (-14)
W/GraphicBufferMapper( 777): registerBuffer(0x425266d0) failed -14 (Bad address)
E/GraphicBuffer( 777): unflatten: registerBuffer failed: Bad address (-14)
W/GraphicBufferMapper( 777): registerBuffer(0x49563840) failed -14 (Bad address)
E/GraphicBuffer( 777): unflatten: registerBuffer failed: Bad address (-14)
W/GraphicBufferMapper( 777): registerBuffer(0x49563318) failed -14 (Bad address)
E/GraphicBuffer( 777): unflatten: registerBuffer failed: Bad address (-14)
W/GraphicBufferMapper( 777): registerBuffer(0x42526150) failed -14 (Bad address)
E/GraphicBuffer( 777): unflatten: registerBuffer failed: Bad address (-14)
D/dalvikvm( 1045): GC_CONCURRENT freed 1979K, 54% free 16783K/35740K, paused 21ms+45ms, total 530ms
I/ActivityManager( 1045): Start proc com.facebook.orca for service com.facebook.orca/com.facebook.push.mqtt.service.MqttPushService: pid=12968 uid=10072 gids={50072, 3003, 1015, 1006, 1028}
D/dalvikvm(12835): GC_CONCURRENT freed 405K, 58% free 4307K/10232K, paused 3ms+12ms, total 102ms
W/Trace (12968): error opening trace file: No such file or directory (2)
I/dalvikvm(12835): Could not find method android.os.PowerManager.isInteractive, referenced from method com.google.android.gms.cast.d.l.k
W/dalvikvm(12835): VFY: unable to resolve virtual method 1433: Landroid/os/PowerManager;.isInteractive ()Z
D/dalvikvm(12835): VFY: replacing opcode 0x6e at 0x0039
E/OMXCodec( 777): [OMX.TI.DUCATI1.VIDEO.DECODER] ERROR(0x80001000, 0)
E/AwesomePlayer( 777): failed to start video source
E/ion ( 777): ioctl -1073460991 failed with code -1: Bad file number
E/ion ( 777): ioctl -1073460991 failed with code -1: Bad file number
E/ion ( 777): ioctl -1073460991 failed with code -1: Bad file number
E/ion ( 777): ioctl -1073460991 failed with code -1: Bad file number
E/ion ( 777): ioctl -1073460991 failed with code -1: Bad file number
E/ion ( 777): ioctl -1073460991 failed with code -1: Bad file number
E/ion ( 777): ioctl -1073460991 failed with code -1: Bad file number
D/DOMX ( 777): hardware/ti/omap4xxx/domx/espresso/domx/omx_proxy_common/src/omx_proxy_common.c:2237	PROXY_ComponentDeInit()
D/DOMX ( 777): ERROR: failed check:(eError == OMX_ErrorNone) || (eError == OMX_ErrorNoMore) - returning error: 0x80001000 - Error returned from OMX API in ducati
D/DOMX ( 777): hardware/ti/omap4xxx/domx/espresso/omx_core/src/OMX_Core.c:396	OMX_FreeHandle()
D/DOMX ( 777): ERROR: Error From ComponentDeInit..
E/MediaPlayer(12463): error (1, -2147483648)
E/MediaPlayer(12463): Error (1,-2147483648)

Error 80001000 is OMX-speak for 'out of resources', and this story is corroborated by the fact that it works for a few videos (5-10 or so) after a reboot. It thus looks like there's some improper resource management going on at the GPU side when it comes to H/W acceleration, in that it probably doesn't release some memory when it finishes playing and therefore runs out of memory after a few video files.

Is this a known issue with CM 10.1? Is there any known fix? (e.g. updated userspace libs?)

Edit: it's not just CM, also other roms, in my current case SlimKat.