2012-06-08 61 views
0

我想知道什麼錯誤=從qubuf無效的參數是什麼意思

Error = Invalid argument from qbuf 

手段。

發生這種情況時,我按下我的視頻播放器上的主頁按鈕。 這是一些新的東西,或者讓其他人看過類似的東西。

我無法對谷歌 發現什麼特別的標籤v412_utils

這顯示了Nexus S的設備上

LOG CAT

06-08 10:57:59.257: I/windowChanged(15072): surface Created init 
06-08 10:57:59.382: W/IInputConnectionWrapper(203): showStatusIcon on inactive InputConnection 
06-08 10:57:59.382: V/RenderScript_jni(203): surfaceDestroyed 
06-08 10:57:59.386: E/Surface(203): surface (identity=2589) is invalid, err=-19 (No such device) 
06-08 10:57:59.386: E/Surface(203): surface (identity=2589) is invalid, err=-19 (No such device) 
06-08 10:57:59.394: E/Surface(203): surface (identity=2589) is invalid, err=-19 (No such device) 
06-08 10:58:00.937: I/playMedia(15072): playing Video 
06-08 10:58:00.953: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:00.988: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.019: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.050: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.078: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.121: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.152: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.179: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.210: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.253: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.285: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.316: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.347: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.378: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.417: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.437: D/dalvikvm(110): GC_EXPLICIT freed 90K, 41% free 6305K/10631K, external 2194K/2740K, paused 115ms 
06-08 10:58:01.449: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.480: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.511: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.554: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.585: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.621: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.652: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.687: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.714: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.746: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.781: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.812: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.847: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.882: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.914: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.949: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:01.984: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.015: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.050: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.085: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.117: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.152: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.187: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.218: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.253: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.289: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.320: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.355: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.390: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.414: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.445: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.488: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.523: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.554: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.589: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.613: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.648: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.683: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.718: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.749: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.785: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.820: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.851: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.886: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.917: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.953: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:02.988: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.023: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.058: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.097: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.117: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.152: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.183: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.222: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.246: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.281: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.316: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.347: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.382: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.417: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.449: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.484: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.515: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.550: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.585: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.617: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.656: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.691: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.714: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.749: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.781: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.816: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.851: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.882: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.917: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.953: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:03.984: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:04.019: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:04.050: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:04.085: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:04.121: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:04.156: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:04.191: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:04.222: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:04.253: E/v4l2_utils(76): Error = Invalid argument from qbuf 
06-08 10:58:04.281: I/showRecord(15072): showing record menu 

的的onPause菜單

protected void onPause() 

{ 

    Log.i("VideoPlayer", "onPauseCalled"); 
    super.onPause(); 

    PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); 
    surfaceCreated = false; 
    focusFirst = false; 
    if(!pm.isScreenOn()) 
    { 
     pauseMedia(); 
     Log.i("onPause", " save states to be called"); 
     if(saveAllowed) 
      saveStates(); 
     view.setVisibility(View.GONE); 
     //Log.i("onPause", "visibility GOne"); 
     removeListeners(); 
     doCleanUp(); 
    } 

} 

就像我說的那樣,只有當我按回家時纔會發生噸。屏幕關閉和其他情況下工作。只需在Home Button上獲得即可。

+0

我在不同的上下文中有同樣的錯誤,我找不到解決方案,但只是請注意它不是412,它是v4l2_utils, 4L2 – Vlad

+0

什麼是上下文。但我注意到,當我得到這個qbuff錯誤時,它是因爲我正在做一些表面視圖(使用pushbuffers)而不是銷燬它(destroy的表面視圖從未被調用,因此它的緩衝區有問題)。至少這是我發現的。 – Raigex

+0

在我的情況下,這是因爲我想縮小SurfaceView到2x2 px ..和低級別的lib無法弄清楚如何正確繪製相機預覽..但你是對的,它必須與SurfaceView .. – Vlad

回答

0

我找到了我認爲的答案。 因爲我不會在轉到其他活動時暫停我的媒體或移除我的Surface View。我認爲它onResume()失敗。我允許它暫停媒體,並設置可見性以下午以外是屏幕上,它停止給我那個錯誤

相關問題