[webkit-dev] NPAPI plugin crashes while calling npnfuncs->invoke in GtkLauncher

souvik.datta at wipro.com souvik.datta at wipro.com
Thu Mar 15 00:13:07 PDT 2012


I am trying to load my NPAPI plugin in GtkLauncher ( built from source version-1.6.1  under Ubuntu 10.10). The plugin is used to communicate with a native shared library.  Although I am able to load the plugin ( Got NP_Initialize and NP_GetEntryPoints calls on the console ) and make successful calls to my native shared library from Java Scripts (through my plugin), but when I am trying to call a java script function "from" my plugin using :

    err = npnfuncs->invoke(npp_, console, id, args_temp,
             sizeof(args_temp) / sizeof(args_temp[0]),

I am observing a segmentation fault. This is always happenning.

Note : I have found our plug-in to work fine with Firefox.

Can some one please throw some light on this and tell me if I am missing something here?
Do I have to build by NPAPI plug-in using some webkit specific primitive?

Thanks and Regards,

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120315/2a272928/attachment.html>

More information about the webkit-dev mailing list