Exception happened in MediaRecorder

by Alex » Tue, 14 Apr 2009 13:01:36 GMT

Sponsored Links
   From cupcake sourcecode, camrecorder can be implemented with
mediarecorder API, and the camrecorder has implemented in package/app/
Camera.  but when I open the camera App, and click "swtich to
video" ,the application crashed.
   From the debug trace, can see that the MediaRecorder can  not be
newed(new MediaRecorder() ) successful.
   and the following function can not be called successful:
    MediaRecorderClient::MediaRecorderClient(pid_t pid)
        LOGV("Client constructor");
       mPid = pid;
       mRecorder = new PVMediaRecorder();   // the statement break
with a Exception

 and PVMediaRecorder() is defined as:

    mAuthorDriverWrapper = new AuthorDriverWrapper();

    mAuthorDriver = new AuthorDriver();

 From the opencore, the  PV_MasterOMX_Init() (in
pv_encomxmastercore.cpp) will be called, and please look at the
following source code in this function:



        pWrapper[0] = QC_OMX_Wrapper::New();
   //Holmes temp remove this {
        //pWrapper[NUMBER_OF_OMX_CORES-1] = PV_OMX_Wrapper::New(); //
initialize pointers to omx methods
        //Holmes temp remove this {

        // loop over all cores
        master_index = 0;
        OMX_STRING ComponentName = (OMX_STRING) malloc

        for (jj = 0; jj < NUMBER_OF_OMX_CORES; jj++)
            // first call OMX_Init
            Status = (*(pWrapper[jj]->GetpOMX_Init()))();





    I don't know why the statement  "pWrapper[NUMBER_OF_OMX_CORES-1] =
PV_OMX_Wrapper::New();" was deleted. and if this statement is deleted,
the pWrapper is empty, so when " Status = (*(pWrapper[jj]->GetpOMX_Init
()))();" is called, a exception  will happened , and this can be
caused the camrecorder crashed!

  but if I make the "pWrapper[NUMBER_OF_OMX_CORES-1] =
PV_OMX_Wrapper::New(); " usable, the author can not be complied
successful! and the error info is:
              PV_OMX_Wrapper::New() was not be declared

Can sb help me?

 Thanks !


Other Threads

1. usb camera interface


I'm just wondering what would be involved in connecting to an external
camera via usb from a device such as the Archos 43 which is capable of
functioning as a usb host? Evidently it is possible, because the
Archos 43 manual says it can download pictures from an external camera
using an accessory cable, but how this works in s/w I don't know. A
pointer in the right direction would be greatly appreciated.


2. trying to get Hello Android tutorial to work

I'm on Mac OS X Leopard and installed the ADT plugin into Eclipse
Galileo.  I followed all these steps to get started:


My SDK version is 2.2 API 8 revision 2 and I just used the Hello World
tutorial found here:


When I first created the Android application, I saw this error in the
Eclipse console:

[2010-11-13 18:20:43 - HelloAndroid] ERROR: Unable to open class
file /
helloandroid/R.java: No such file or directory

I commented out this line to fill in the few lines from the tutorial:


When I ran the app, it launched my emulator but all I saw was a
vertical screen on the left that said "ANDROID" and phone buttons on
the right.  I did not see the "Hello, Android" text from the

Any ideas?


3. Wifi connected but Network error appears

4. Help with Fortumo in App Payments with PhoneGap

5. BluetoothChat example problem on samsung GT I5700

6. TTS not inheritable?

7. Get the Response in Native code from JAVA service.