Bitmap too large to be uploaded into a texture (1080x4467, max=4096x4096)
来源:互联网 发布:node.js哪些教程好 编辑:程序博客网 时间:2024/06/07 06:37
从手机相册里面显示图片,但是发现有的图片能显示有的图片不能显示,路径都是对的,程序也没提示任何错误。
后来通过看日志发现error message: Bitmap too large to be uploaded into a texture (4208x3120, max=4096x4096):
经过查找资料是因为当开启硬件加速的时候,GPU对于openglRender 有一个限制,这个不同的手机会有不同的限制。
简单说就是硬件加速的时候,对图片的大小有限制。不同设备可能有不同的最大值。这个问题悲催的地方是,程序貌似
没有捕获到这个exception, 结果是程序也不报错,图片也显示不出来。
一个解决的方法是禁止硬件加速
<application android:hardwareAccelerated="false" ...>
0 0
- Bitmap too large to be uploaded into a texture (1080x4467, max=4096x4096)
- Bitmap too large to be uploaded into a texture (2880x5120, max=4096x4096)
- Bitmap too large to be uploaded into a texture (1284x5582, max=4096x4096)
- W/OpenGLRenderer: Bitmap too large to be uploaded into a texture (1080x4196, max=4096x4096)
- BitmapFactory解码图片不显示(Bitmap too large to be uploaded into a texture (3120x4208, max=4096x4096)
- 4.14-1 图片太大遇到的问题,Bitmap too large to be uploaded into a texture (2340x4160, max=4096x4096)
- Android加载SD卡图片出现too large to be uploaded into a texture (4128x2322, max=4096x4096)的解决办法
- Bitmap too large to be uploaded into a texture
- Bitmap too large to be uploaded into a texture 解决方法
- Bitmap too large to be uploaded into a texture exception
- Bitmap too large to be uploaded into a texture
- Bitmap too large to be uploaded into a texture
- Bitmap too large to be uploaded into a texture
- Bitmap too large to be uploaded into a texture
- Bitmap too large to be uploaded into a texture 解决方案
- Bitmap too large to be uploaded into a texture 解决方法
- Bitmap too large to be uploaded into a texture
- 解决:Bitmap too large to be uploaded into a texture exception
- 七牛云存储编程架构模型解读
- KMP算法
- Linux服务器配置脚本备份
- ORACLE性能技巧测试:NVL与DECODE
- 系统吞吐量、TPS(QPS)、用户并发量、性能测试概念和公式
- Bitmap too large to be uploaded into a texture (1080x4467, max=4096x4096)
- 计算python执行时间
- 例题1.10 正整数序列 UVa11384
- mysql 高性能索引策略
- 南邮NOJ卡片游戏
- hive列转行 (collect_set())
- BCB 使RichEdit自适应高度
- 史玉柱:我是怎么做游戏策划的
- PCH文件操作