Closed
Bug 334905
Opened 20 years ago
Closed 13 years ago
nsObjectFrame::StopPlugin should not call plugin code during frame tree destruction
Categories
(Core Graveyard :: Plug-ins, defect)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: dbaron, Unassigned)
Details
Attachments
(1 file)
|
8.92 KB,
text/plain; charset=utf-8
|
Details |
I found a stack in talkback that shows the Java plugin calling back into Gecko in the middle of frame tree destruction, which may or may not be the cause of the crash. That still seems to me like it shouldn't happen. This means that we need to find some (earlier!?) time to stop plugins.
| Reporter | ||
Updated•20 years ago
|
Severity: normal → critical
| Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
This is a known MRJ issue -- it spins the event loop from frame construction too, and we have bugs on that for sure. We could try doing all plugin stuff async as much as we can, I suppose, but what we really need is to document what plugins are allowed to do inside which calls from Gecko.
Comment 3•20 years ago
|
||
The talkback log is pretty useless.
David, please attach a crashreporterd log for this crash (if you can).
Comment 4•20 years ago
|
||
There are several places where the Java Embedding Plugin needs to spin
the main thread's event loop:
https://bugzilla.mozilla.org/show_bug.cgi?id=324281#c6
Starting the JVM synchronously (as discussed at bug 309122) will allow
me to get rid of some of these, but not all of them.
As of JEP 0.9.5+c (which fixed bug 324281), I've managed to find a way
to stop PL_ProcessPendingEvents() from being re-entered. But
apparently there are still some cases where Gecko can (in some sense)
be re-entered. There's probably not anything I can do about this.
(The JEP's current version is 0.9.5+d.)
Comment 5•20 years ago
|
||
> Starting the JVM synchronously ...
This should (of course) be "Starting the JVM _asynchronously_ ..."
Comment 6•13 years ago
|
||
Does this still occur? Stopping plugins can still spin the event loop, but we've wallpapered over a lot of the issues that causes.
Comment 7•13 years ago
|
||
Yeah, probably not during frame destruction since we moved the widget handling stuff to content.
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Updated•4 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•