android - Exception locking surface, java.lang.IllegalArgumentException -
i using thread handle wallpaper , using surface view. getting following error , unable solve it. there answer in told there problem in sequence of lock surfaceholder.lockcanvas()
, surfaceholder.unlockcanvasandpost(canvas)
. check , right. plese someone.. logcat below:
07-06 12:58:24.459: e/surfacetextureclient(719): queuebuffer: error queuing buffer surfacetexture, -19 07-06 12:58:24.459: e/surfacetextureclient(719): queuebuffer (handle=0x2a185508) failed (no such device) 07-06 12:58:24.470: w/system.err(719): java.lang.illegalargumentexception 07-06 12:58:24.479: w/system.err(719): @ android.view.surface.nativeunlockcanvasandpost(native method) 07-06 12:58:24.489: w/system.err(719): @ android.view.surface.unlockcanvasandpost(surface.java:457) 07-06 12:58:24.489: w/system.err(719): @ com.android.internal.view.basesurfaceholder.unlockcanvasandpost(basesurfaceholder.java:215) 07-06 12:58:24.489: w/system.err(719): @ com.shagun.sunsetlivewallpaper.backgroundselector$leafthread.run(backgroundselector.java:160) 07-06 12:58:24.630: e/surfacetextureclient(719): dequeuebuffer failed (no such device) 07-06 12:58:24.649: e/inputeventreceiver(719): channel '40ee2318 com.shagun.sunsetlivewallpaper.wallpaperservice (client)' ~ publisher closed input channel or error occurred. events=0x9 07-06 12:58:24.690: e/basesurfaceholder(719): exception locking surface 07-06 12:58:24.690: e/basesurfaceholder(719): java.lang.illegalargumentexception 07-06 12:58:24.690: e/basesurfaceholder(719): @ android.view.surface.nativelockcanvas(native method) 07-06 12:58:24.690: e/basesurfaceholder(719): @ android.view.surface.lockcanvas(surface.java:447) 07-06 12:58:24.690: e/basesurfaceholder(719): @ com.android.internal.view.basesurfaceholder.internallockcanvas(basesurfaceholder.java:184) 07-06 12:58:24.690: e/basesurfaceholder(719): @ com.android.internal.view.basesurfaceholder.lockcanvas(basesurfaceholder.java:157) 07-06 12:58:24.690: e/basesurfaceholder(719): @ com.shagun.sunsetlivewallpaper.backgroundselector$leafthread.run(backgroundselector.java:145) 07-06 12:58:24.690: w/dalvikvm(719): threadid=12: thread exiting uncaught exception (group=0x40a70930) 07-06 12:58:24.719: e/androidruntime(719): fatal exception: thread-68 07-06 12:58:24.719: e/androidruntime(719): java.lang.nullpointerexception 07-06 12:58:24.719: e/androidruntime(719): @ com.shagun.sunsetlivewallpaper.backgroundselector.drawscreen(backgroundselector.java:85) 07-06 12:58:24.719: e/androidruntime(719): @ com.shagun.sunsetlivewallpaper.backgroundselector.access$1(backgroundselector.java:80) 07-06 12:58:24.719: e/androidruntime(719): @ com.shagun.sunsetlivewallpaper.backgroundselector$leafthread.run(backgroundselector.java:148) 07-06 12:58:30.680: i/process(719): sending signal. pid: 719 sig: 9
thread.sleep(200);
that's helped me when crushed. can see more:
Comments
Post a Comment