texImage2D can't be used with a null Bitmap

最近用到了GPUImage 去做图片的滤镜处理,但是点击滤镜item就会出现这个空指针异常,有大神知道这是什么原因吗?

09-27 11:34:04.456 E/AndroidRuntime(16446): java.lang.NullPointerException: texImage2D can't be used with a null Bitmap

09-27 11:34:04.456 E/AndroidRuntime(16446): at android.opengl.GLUtils.texImage2D(GLUtils.java:149)

09-27 11:34:04.456 E/AndroidRuntime(16446): at com.muzhi.camerasdk.library.filter.OpenGlUtils.loadTexture(OpenGlUtils.java:49)

09-27 11:34:04.456 E/AndroidRuntime(16446): at com.muzhi.camerasdk.library.filter.ifilter.IFImageFilter$1.run(IFImageFilter.java:138)

09-27 11:34:04.456 E/AndroidRuntime(16446): at com.muzhi.camerasdk.library.filter.GPUImageFilter.runPendingOnDrawTasks(GPUImageFilter.java:134)

09-27 11:34:04.456 E/AndroidRuntime(16446): at com.muzhi.camerasdk.library.filter.GPUImageFilter.onDraw(GPUImageFilter.java:106)

09-27 11:34:04.456 E/AndroidRuntime(16446): at com.muzhi.camerasdk.library.filter.GPUImageRenderer.onDrawFrame(GPUImageRenderer.java:118)

09-27 11:34:04.456 E/AndroidRuntime(16446): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1590)

09-27 11:34:04.456 E/AndroidRuntime(16446): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1286)

09-27 11:34:04.643 E/agps ( 295): [agps] ERR: [Utility] safe_write reason=[No such device]19

09-27 11:34:04.934 E/MAL-Daemon( 272): can't open socket : rild-mal (No such file or directory)[void* rilproxy_cmd_resp_thread(void*), 593]:

09-27 11:34:04.934 E/MAL-Daemon( 272): can't open socket : rild-mal-at[void* rilproxy_urc_thread(void*), 886]:

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313661): avc: denied { search } for name="mtkcooler" dev="proc" ino=4026533774 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:proc_mtkcooler:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313662): avc: denied { search } for name="1" dev="proc" ino=459 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:init:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313663): avc: denied { search } for name="2" dev="proc" ino=9668 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313664): avc: denied { search } for name="3" dev="proc" ino=9669 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313665): avc: denied { search } for name="5" dev="proc" ino=9671 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313666): avc: denied { search } for name="7" dev="proc" ino=9673 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313667): avc: denied { search } for name="8" dev="proc" ino=9674 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313668): avc: denied { search } for name="9" dev="proc" ino=9675 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313669): avc: denied { search } for name="10" dev="proc" ino=9676 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313670): avc: denied { search } for name="11" dev="proc" ino=9677 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313671): avc: denied { search } for name="12" dev="proc" ino=9678 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313672): avc: denied { search } for name="14" dev="proc" ino=9680 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313673): avc: denied { search } for name="15" dev="proc" ino=9681 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313674): avc: denied { search } for name="16" dev="proc" ino=9682 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313675): avc: denied { search } for name="18" dev="proc" ino=9684 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313676): avc: denied { search } for name="19" dev="proc" ino=9685 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313677): avc: denied { search } for name="20" dev="proc" ino=9686 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313678): avc: denied { search } for name="22" dev="proc" ino=9688 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313679): avc: denied { search } for name="23" dev="proc" ino=9689 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.039 W/StartThread(11291): type=1400 audit(0.0:5313680): avc: denied { search } for name="24" dev="proc" ino=9690 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:05.059 E/anti (11219): anti once

09-27 11:34:05.101 E/WifiTrafficPoller( 901): TRAFFIC_STATS_POLL true Token 512 num clients 6

09-27 11:34:05.102 E/WifiTrafficPoller( 901): packet count Tx=8728 Rx=11532

09-27 11:34:05.936 E/MAL-Daemon( 272): can't open socket : rild-mal (No such file or directory)[void* rilproxy_cmd_resp_thread(void*), 593]:

09-27 11:34:05.936 E/MAL-Daemon( 272): can't open socket : rild-mal-at[void* rilproxy_urc_thread(void*), 886]:

09-27 11:34:06.049 W/StartThread(11291): type=1400 audit(0.0:5313995): avc: denied { search } for name="mtkcooler" dev="proc" ino=4026533774 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:proc_mtkcooler:s0 tclass=dir permissive=0

09-27 11:34:06.049 W/StartThread(11291): type=1400 audit(0.0:5313996): avc: denied { search } for name="1" dev="proc" ino=459 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:init:s0 tclass=dir permissive=0

09-27 11:34:06.059 W/StartThread(11291): type=1400 audit(0.0:5313997): avc: denied { search } for name="2" dev="proc" ino=9668 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:06.059 W/StartThread(11291): type=1400 audit(0.0:5313998): avc: denied { search } for name="3" dev="proc" ino=9669 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

09-27 11:34:06.059 W/StartThread(11291): type=1400 audit(0.0:5313999): avc: denied { search } for name="5" dev="proc" ino=9671 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:kernel:s0 tclass=dir permissive=0

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问