"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

BufferQueue RunTime Error

 

After updating my FrameMarkers project from SDK 1.5.9 to 2.0.30, I seem to be getting a strange error during runtime. Everything seems to be working correctly, but I'd like to know why it is happening.  Apparently something in the core code is trying to dequeue more buffers than allowed. Here is the logcat snippet with the errors: 02-07 14:55:36.804: D/QCAR(22309): Java_com_qualcomm_QCARSamples_FrameMarkers_FrameMarkers_setProjectionMatrix02-07 14:55:36.844: I/Adreno200-EGLSUB(22309): <ConfigWindowMatch:2087>: Format RGBA_8888.02-07 14:55:36.844: E/BufferQueue(22309): [unnamed-22309-4] dequeueBuffer: mMinUndequeuedBuffers=3 exceeded (dequeued=5)02-07 14:55:36.874: I/QCAR(22309): Creating OpenGL ES 2.0 context02-07 14:55:36.904: E/BufferQueue(22309): [unnamed-22309-4] dequeueBuffer: mMinUndequeuedBuffers=3 exceeded (dequeued=4)02-07 14:55:36.914: I/Adreno200-EGLSUB(22309): <ConfigWindowMatch:2110>: Format RGB_565.02-07 14:55:36.944: D/QCAR(22309): GLRenderer::onSurfaceCreated02-07 14:55:36.944: D/QCAR(22309): Java_com_qualcomm_QCARSamples_FrameMarkers_FrameMarkersRenderer_initRendering02-07 14:55:36.964: E/BufferQueue(22309): [unnamed-22309-4] dequeueBuffer: mMinUndequeuedBuffers=3 exceeded (dequeued=3) Here is the Android library BufferQueue.cpp snippet that is giving the error:             // See whether a buffer has been queued since the last            // setBufferCount so we know whether to perform the            // mMinUndequeuedBuffers check below.            if (mBufferHasBeenQueued) {                // make sure the client is not trying to dequeue more buffers                // than allowed.                const int avail = mBufferCount - (dequeuedCount+1);                if (avail < (mMinUndequeuedBuffers-int(mSynchronousMode))) {                    ST_LOGE("dequeueBuffer: mMinUndequeuedBuffers=%d exceeded "                            "(dequeued=%d)",                            mMinUndequeuedBuffers-int(mSynchronousMode),                            dequeuedCount);                    return -EBUSY;                }            }  Any ideas why this is happening? 

 

AlessandroB

Thu, 02/07/2013 - 22:00

Hi, are you running the FrameMarker sample "as is" ? or have you made some changes ?

what version of the NDK are you using ? (r8b, r8c, r8d, ...)

I am using the r8b Android NDK.  The FrameMarkers sample is being run mostly as-is.  I have only swapped out the models with my own (and added a few, to use 0-8).  I used the same NDK and models with the previous Vuforia SDK.

OK, sounds like it could be (possibly) related to the number / size of models you are using; the fact that the problem was not showing up with previous version does not necessarily mean that the problem was not existing (i.e.

Hi ,

When  trying  to play video file in android jelly bean using h/w decoding i am getting the following error and video is not getting played .

But using software decoder the files are getting played.