This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MmRpc_call: Error: write failed -1

Hi,


     I have an application that uses the hardware decoding functionality of  OMAP5. This application is currently using DCE 3. I've compiled DCE 4 and i'm trying to replace DCE 3 with DCE 4 in my application, but i got the following error:

 MmRpc_call: Error: write failed -1

    The code that fails is the following:

/* send message for remote execution */
    status = write(obj->fd, msg, len);

    if (status < 0) {
        printf("MmRpc_call: Error: write failed %d\n", status);
        status = MmRpc_E_FAIL;
        goto leave;
    }

     I get this error in VIDDEC3_process.

 

Thank you,

  Alexandra

  • Hi Alexandra,

    have you tried delaying the write, or check if any other transfer at this time is involved?

    Regards,

    Boyko

  • Hi Boyko,

    Yes, i tried to delay the write but i got the same error.

    The errno foe this error is  errno=22, Invalid argument

    I also put in the code some messages. This is what i get:

    MmRpc_call fd=20
    MmRpc_call msg=52a7f8
    MmRpc_call len=212
    >>>>>>>>>>>>: Engine_open call
    MmRpc_call fd=20
    MmRpc_call msg=52c978
    MmRpc_call len=212
    >>>>>>>>>>>>: VIDDEC3_create() call
    MmRpc_call fd=20
    MmRpc_call msg=52a7f8
    MmRpc_call len=212
    >>>>>>>>>>>>: VIDDEC3_control() call
    >>>>>>>>>>>>: VIDDEC3_process() call
    MmRpc_call fd=20
    MmRpc_call msg=520c90
    MmRpc_call len=260
    MmRpc_call: Error: write failed -1
    MmRpc_call: errno=22, Invalid argument
    >>>>>>>>>>>>: VIDDEC3_process() failed(-5, extendedError: 00000000, fatal 0)!
    >>>>>>>>>>> (EOK != err) sau !pictureFilled

    >>>>>>>>>>>>: VIDDEC3_process() call
    MmRpc_call fd=20
    MmRpc_call msg=520c90
    MmRpc_call len=260
    MmRpc_call: Error: write failed -1
    MmRpc_call: errno=22, Invalid argument
    >>>>>>>>>>>>: VIDDEC3_process() failed(-5, extendedError: 00000000, fatal 0)!

    What can it be the cause for this error?

    Thank you,

       Alexandra

  • Hi,

    It sounds like problem because of multithreading. Is this error interrupting the decoding functionality at all?

    Regards,
    Boyko