搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

A deadlock in the main thread of plugin-container. When will the correction be ported?

  • 1 个回答
  • 2 人有此问题
  • 1 次查看
  • 最后回复者为 the-edmeister

more options

I have been working on an NPAPI plugin. Now it works nicely on Windows and Mac OS X but on Linux/Firefox I get a deadlock.

The deadlock occurs because the main thread tries to write to the wakeup_pipe in the MessagePumpForUI class and the wakeup_pipe eventually runs full.

Other threads such the the worker threads in my plugin are also writing to this pipe via the NPN_PluginThreadAsync browser interface.

It seems like a bad idea that the NPN_PluginThreadAsync can block at all, but it does happen since the main thread is both a reader and writer on the wakeup_pipe.

Ideally the writes on the wakeup_pipe should be non-blocking.

In the meantime chromium.org has created a correction for this error:

http://src.chromium.org/viewvc/chrome?view=revision&revision=177821

When will this correction be available in Firefox on linux?

I have been working on an NPAPI plugin. Now it works nicely on Windows and Mac OS X but on Linux/Firefox I get a deadlock. The deadlock occurs because the main thread tries to write to the wakeup_pipe in the MessagePumpForUI class and the wakeup_pipe eventually runs full. Other threads such the the worker threads in my plugin are also writing to this pipe via the NPN_PluginThreadAsync browser interface. It seems like a bad idea that the NPN_PluginThreadAsync can block at all, but it does happen since the main thread is both a reader and writer on the wakeup_pipe. Ideally the writes on the wakeup_pipe should be non-blocking. In the meantime chromium.org has created a correction for this error: http://src.chromium.org/viewvc/chrome?view=revision&revision=177821 When will this correction be available in Firefox on linux?

所有回复 (1)

more options

This forum is for user to user support.

File a Bug report about that issue to get the developer's attention.
https://bugzilla.mozilla.org/

https://developer.mozilla.org/en/Bug_writing_guidelines