2011-04-24 48 views
3
04-24 13:30:59.312: VERBOSE/RenderScript(6044): RS Thread exited 
04-24 13:30:59.320: ERROR/libEGL(6044): call to OpenGL ES API with no current context (logged once per thread) 
04-24 13:30:59.335: WARN/WallpaperService(6044): Ignoring updateSurface: destroyed 
04-24 13:30:59.335: WARN/WindowManager(108): Window [email protected] is already added 
04-24 13:30:59.355: DEBUG/dalvikvm(6083): GC_EXTERNAL_ALLOC freed 23K, 52% free 2598K/5379K, external 1625K/2137K, paused 55ms 
04-24 13:30:59.425: DEBUG/GLWallpaperService(6083): onSurfaceDestroyed() 
04-24 13:30:59.496: WARN/InputQueue-JNI(6044): Input channel is not initialized. 
04-24 13:30:59.515: DEBUG/AndroidRuntime(6044): Shutting down VM 
04-24 13:30:59.539: WARN/dalvikvm(6044): threadid=1: thread exiting with uncaught exception (group=0x40015560) 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044): FATAL EXCEPTION: main 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044): java.lang.RuntimeException: Failed to register input channel. Check logs for details. 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044):  at android.view.InputQueue.nativeRegisterInputChannel(Native Method) 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044):  at android.view.InputQueue.registerInputChannel(InputQueue.java:92) 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044):  at android.service.wallpaper.WallpaperService$Engine.updateSurface(WallpaperService.java:521) 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044):  at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:904) 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044):  at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61) 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044):  at android.os.Handler.dispatchMessage(Handler.java:99) 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044):  at android.os.Looper.loop(Looper.java:123) 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044):  at android.app.ActivityThread.main(ActivityThread.java:3683) 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044):  at java.lang.reflect.Method.invokeNative(Native Method) 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044):  at java.lang.reflect.Method.invoke(Method.java:507) 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 
04-24 13:30:59.640: ERROR/AndroidRuntime(6044):  at dalvik.system.NativeStart.main(Native Method) 

我開發它採用所謂的Andengine(andengine.org)一個開源遊戲引擎Livewallpaper設置古怪異常,現在工作得很好,除了有時,當用戶設置我的Livewallpaper爲牆紙,將拋出一個異常,說「無法註冊輸入頻道,檢查日誌中的詳細信息」,但是更加棘手的是Livewallpaper仍然有效並且沒有退出。當Livewallpaper Android中

任何想法可能會導致這個問題,或者我該如何解決它?

+0

(1)你是否檢查「日誌」? (2)您是否在以「由......引起」的堆棧跟蹤中進行第二輪? – Aleadam 2011-04-24 05:52:47

+0

@Aleadam不,只有一輪堆棧跟蹤。我發現與這個問題有關的唯一日誌是「調用OpenGL ES API沒有當前上下文(每個線程記錄一次)」,因爲我上面列出 – CarlLee 2011-04-24 06:01:59

+0

@Aleadam也「輸入通道未初始化」 – CarlLee 2011-04-24 06:02:52

回答

2

對不起,我只能找到InputQueue「爲應用程序接收傳入的輸入事件提供了一種機制,目前只能從本機代碼使用」。

在引擎中檢查GLSurfaceView類。這可能會給你的什麼是錯的壁紙

一個線索您可能還需要檢查爲什麼發生這種情況:

04-24 13:30:59.320: ERROR/libEGL(6044): call to OpenGL ES API with no current context (logged once per thread) 
+1

非常感謝,我想到了它與啓動Pro有關,在用戶將我設置爲壁紙之後沒有釋放硬件。如果我更改爲android原始主屏幕,則異常消失。 – CarlLee 2011-04-24 06:25:18

+0

Launcher Pro有其問題。我已經看到了一些奇怪的錯誤(雖然恕我直言仍然是最好的發射器)。我會考慮給他們發送一個錯誤報告,以便他們可以嘗試修復它並儘早釋放hw。 – Aleadam 2011-04-24 06:32:39

+0

是的,但我不確定原因是什麼,但這肯定是他們的問題,所以我會給他們發送一個錯誤報告。 – CarlLee 2011-04-24 07:25:13

相關問題