google-nativeclient

Chrome Nacl Video Decoder creation crash


I'm trying to create video decoder using Pepper api. I compiled and ran the pepper example video decoder api (in the sdk) and sample works fine. I'm trying to create a video decoder of my own but while i'm calling to create function my nacl library is crashing. I using the following c code:

    PPB_VideoDecoder_1_1 tmpdecoder;
    PP_Resource decoderon = 
    tmpdecoder.Create(instance->pp_instance());  

The crash happened during the call to Create method.

How do i know why this call is crashing? Is there any exception i can somehow see? (instance is obviously initialized)


Solution

  • The reason for the crash was calling pepper api in a thread different than main thread