Publisher closed input channel or an error occurred. events=0x8

前端 未结 2 1016
天命终不由人
天命终不由人 2021-02-04 03:36

02-12 18:48:57.049: E/InputQueue-JNI(4659): channel \'2be9da40 com.forwardapps.liveItems.LiveItemsService (client)\' ~ Publisher closed input channel or an error occurred.

相关标签:
2条回答
  • 2021-02-04 04:19

    Place a try, catch block around the code that draws the canvas.

    More specifically:

    Canvas canvas = null;
    
        try {
            canvas = _surfaceHolder.lockCanvas(null);
            synchronized (_surfaceHolder) 
            {
                onDraw(canvas);
            }
    
            if(canvas != null)
            {
                _surfaceHolder.unlockCanvasAndPost(canvas);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    
    0 讨论(0)
  • 2021-02-04 04:26

    Are you actually seeing a problem, or just being troubled by the error message? This message is printed I believe when the client side of the input event pipe fails because the server has closed the connection. This could happen for example if you don't close a window when your activity is being destroyed.

    0 讨论(0)
提交回复
热议问题