视频播放器无法播放720P 30fps的视频debug
2016-07-09 20:06
351 查看
分析:
分析log如下:
08-09 11:46:01.720 103 180 E gralloc.mali: ION_IOC_ALLOC fail
08-09 11:46:01.720 103 180 W GraphicBufferAllocator: alloc(1280, 720, 33, 10002900, ...) failed -12 (Out of memory)
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: Allocated buffers:
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1b950b8: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bb73b0: 1338.75 KiB | 480 ( 480) x 714 | 1 | 0x00000933
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bc0878: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bc2c20: 35.62 KiB | 480 ( 480) x 38 | 4 | 0x00000933
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bc37a0: 3000.00 KiB | 960 ( 960) x 800 | 2 | 0x00000933
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bc9d08: 35.62 KiB | 480 ( 480) x 38 | 4 | 0x00000933
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bca728: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bce100: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd08a0: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd1430: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd17e8: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd1f00: 1500.00 KiB | 480 ( 480) x 800 | 1 | 0x00000933
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd50e8: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd5278: 1338.75 KiB | 480 ( 480) x 714 | 1 | 0x00000933
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd52d0: 1500.00 KiB | 480 ( 480)
08-09 11:46:01.720 103 180 E SurfaceFlinger: GraphicBufferAlloc::createGraphicBuffer(w=1280, h=720) failed (Out of memory), handle=0x0
08-09 11:46:01.720 103 180 E SurfaceTexture: [SurfaceView] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed
08-09 11:46:01.720 106 2399 E OMXCodec: dequeueBuffer failed: Out of memory (12)
08-09 11:46:01.730 106 2402 I OmxComponentBase: OmxComponentBase : DoStateSet IN : iState (1) aDestinationState (2)
08-09 11:46:01.730 106 2403 E OMXCodec: [OMX.PV.avcdec] ERROR(0x8000101c, 1)
08-09 11:46:01.730 106 2403 E OMXCodec: [OMX.PV.avcdec] write vt_pipe, size: 2
08-09 11:46:01.730 106 2403 I OMXCodec: [OMX.PV.avcdec] ~OMXCodec in state 8
08-09 11:46:01.730 1011 1023 E MediaPlayer: error (1, -12)
08-09 11:46:01.730 106 2402 I VSP : AvcDecDeinit_OMX, 692
从上面log看GraphicBufferAllocator: alloc(1280, 720, 33, 10002900, ...) failed -12 (Out of memory)
应该是PMEM不足,建议增大pmem大小
解决方法:
加大kernel/arch/arm/mach-sc8825/include/mach/board.h中的SPRD_ION_SIZE的大小,
客户原来是10M,修改成20M不行,24M的时候OK;
分析:
分析log如下:
08-09 11:46:01.720 103 180 E gralloc.mali: ION_IOC_ALLOC fail
08-09 11:46:01.720 103 180 W GraphicBufferAllocator: alloc(1280, 720, 33, 10002900, ...) failed -12 (Out of memory)
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: Allocated buffers:
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1b950b8: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bb73b0: 1338.75 KiB | 480 ( 480) x 714 | 1 | 0x00000933
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bc0878: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bc2c20: 35.62 KiB | 480 ( 480) x 38 | 4 | 0x00000933
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bc37a0: 3000.00 KiB | 960 ( 960) x 800 | 2 | 0x00000933
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bc9d08: 35.62 KiB | 480 ( 480) x 38 | 4 | 0x00000933
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bca728: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bce100: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd08a0: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd1430: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd17e8: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd1f00: 1500.00 KiB | 480 ( 480) x 800 | 1 | 0x00000933
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd50e8: unknown | 1280 (1280) x 720 | 21 | 0x10002900
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd5278: 1338.75 KiB | 480 ( 480) x 714 | 1 | 0x00000933
08-09 11:46:01.720 103 180 D GraphicBufferAllocator: 0x1bd52d0: 1500.00 KiB | 480 ( 480)
08-09 11:46:01.720 103 180 E SurfaceFlinger: GraphicBufferAlloc::createGraphicBuffer(w=1280, h=720) failed (Out of memory), handle=0x0
08-09 11:46:01.720 103 180 E SurfaceTexture: [SurfaceView] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed
08-09 11:46:01.720 106 2399 E OMXCodec: dequeueBuffer failed: Out of memory (12)
08-09 11:46:01.730 106 2402 I OmxComponentBase: OmxComponentBase : DoStateSet IN : iState (1) aDestinationState (2)
08-09 11:46:01.730 106 2403 E OMXCodec: [OMX.PV.avcdec] ERROR(0x8000101c, 1)
08-09 11:46:01.730 106 2403 E OMXCodec: [OMX.PV.avcdec] write vt_pipe, size: 2
08-09 11:46:01.730 106 2403 I OMXCodec: [OMX.PV.avcdec] ~OMXCodec in state 8
08-09 11:46:01.730 1011 1023 E MediaPlayer: error (1, -12)
08-09 11:46:01.730 106 2402 I VSP : AvcDecDeinit_OMX, 692
从上面log看GraphicBufferAllocator: alloc(1280, 720, 33, 10002900, ...) failed -12 (Out of memory)
应该是PMEM不足,建议增大pmem大小
解决方法:
加大kernel/arch/arm/mach-sc8825/include/mach/board.h中的SPRD_ION_SIZE的大小,
客户原来是10M,修改成20M不行,24M的时候OK;
相关文章推荐
- 华为研发工程师编程题----汽水瓶
- 大神的神级js代码
- Hibernate的实体类中为什么要继承Serializable?
- Sum Root to Leaf Numbers
- hdu 5178(尺取法)
- java中ArrayList排序
- Android UI布局优化
- 华为研发工程师编程题----进制转换(pow函数,string.find())
- j2ee分布式缓存同步实现方案dlcache v1.0.0
- TCP/IP编程之connect函数详解
- leetcode: Evaluate Reverse Polish Notation
- Java StringBuffer谜题
- HDU 1240 Asteroids! (三维BFS)
- 内核日志及printk结构浅析
- PL/SQL Developer创建Job的步骤
- Activity五种数据传递方式
- markdown里如何显示HTML标签和转义字符?
- leetcode:Isomorphic Strings
- Python学习笔记之缩进
- 黑屏 判断SF是否正常工作debug 方法