Closed
Bug 1416
Opened 26 years ago
Closed 26 years ago
Crash with Adobe Acrobat Plugin
Categories
(Core Graveyard :: Plug-ins, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
M3
People
(Reporter: hjtoi-bugzilla, Assigned: amusil)
References
()
Details
I noticed the bug in ns4xPlugin methods, but I believe the cause is
elsewhere. Some initialization problem most likely.
Anyway, all the ns4xPlugin methods seem to happily use npp->ndata before
checking that npp != 0. If this happens on NT the app dies silently.
There should be an NS_ASSERTION as the first thing in each method to check npp.
This is a bit weird. This does not happen for all plugins. I have tested this
with 3 different plugins:
- ActiveCGM [CGM image] (works ok)
- Dr. DWG [DWG image] (in _status: npp == 0, silently dies)
- Acrobat [PDF file] (_useragent notices mPluginManager == 0 and asserts)
However, if I first open a document containing a CGM graphic, then the other
plugins work just fine.
This problem has also crept in sometime after the 1998-10-08 tarball because
these plugins work with that version.
You can get the above plugins from:
http://www.intercap.com/
http://www.drdwg.com
http://www.adobe.com
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•26 years ago
|
||
Looking into it...
Assignee | ||
Comment 2•26 years ago
|
||
I have a fix. It seems that we were calling into the NP_Initialize entry point
before we had set up and created the ns4xPlugin object. Hence, the
mPluginManager was not set up yet either. The plugin, in NP_Initialize, tried
to call back into the browser with NPN calls, failing because nothing was set
up.
Moving the call into the ns4xPlugin->Initialize routine fixes the problems.
I will check this in Sat because I have to go home and can't monitor the tree
status tonight.
Assignee | ||
Comment 3•26 years ago
|
||
I have a fix. It seems that we were calling into the NP_Initialize entry point
before we had set up and created the ns4xPlugin object. Hence, the
mPluginManager was not set up yet either. The plugin, in NP_Initialize, tried
to call back into the browser with NPN calls, failing because nothing was set
up.
Moving the call into the ns4xPlugin->Initialize routine fixes the problems.
I will check this in Sat because I have to go home and can't monitor the tree
status tonight.
Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•26 years ago
|
||
Fixed 11.22.98, 3:14PM
Assignee | ||
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Updated•26 years ago
|
Status: VERIFIED → REOPENED
Reporter | ||
Comment 5•26 years ago
|
||
I just had time to do a little testing, and it looks like this problem has not
been completely fixed. Namely, I can not get the Dr. DWG plugin to work, Gecko
(isn't that the new official name now:) crashes when I try to open a document
which has embedded DWG image. It does not help if other plugins have been
succesfully loaded, DWG just causes crash every time.
I notice the problem in here:
nsresult
ns4xPlugin::Initialize(nsISupports* browserInterfaces)
{
. . .
// Execution of the following line clears the call stack in the
// debugger, and access violation is reported when continuing
// with the run
if (fInitialize(&ns4xPlugin::CALLBACKS) != NS_OK)
Reporter | ||
Comment 6•26 years ago
|
||
The latest checkins by amusil improved the situation somewhat: now Dr. DWG
plugin works if some other plugin has been succesfully used before that.
However, when I step line at a time in the debugger (starting from the
ns4xPlugin functions and ending in nsObjectFrame) everything works correctly.
So maybe it is some kind of a timing issue, the plugin or Gecko being too slow
or something like that... maybe there is something wrong with threads, yikes!
Assignee | ||
Updated•26 years ago
|
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 7•26 years ago
|
||
I'll check it out...
Assignee | ||
Updated•26 years ago
|
Resolution: FIXED → ---
Summary: Plugin initialization problem(?), crashes → Crash with Dr. DWG Plugin
Assignee | ||
Comment 8•26 years ago
|
||
heikki - can you point me to a page that loads the Dr. DWG plugin (I guess a
page that has a .dwg image)?
Reporter | ||
Comment 9•26 years ago
|
||
Sorry for the long delay, I was on vacation...
I created a test page at
http://www.doczilla.com/demos/html/index.html
which has links to documents that include the three formats that I use for
testing, i.e. DWG, CGM and PDF. There is also a gzipped archive that contains
all those files on the web. The page I created will propably go away once this
bug is fixed for good.
Current situation:
Examples loaded directly from this page:
Nothing works, Gecko always crashes
Examples installed on your local machine:
PDF works
DWG works if some other plugin has been used before it; if DWG is the first
plugin that is used it crashes Gecko
CGM plugin does not display anything
Reporter | ||
Comment 10•26 years ago
|
||
*Sigh* I should have stayed on vacation...
Anyways, CGM and PDF work the same way, i.e. on local disk they work fine.
There is still the weird problem with DWG.
Network connection seems to be trickier: when the first plugin loading happens
over network, Gecko always crashes. If the first plugin is loaded from hard
disk, docs over http connection seem to work also.
On some rare occasion I seem to get everything working correctly once or twice;
when that happens there appears to be some sort of a delay over network, hard
disk or other programs may have caused some slowing down.
I have a P400 with 256k connection if that has anything to do with this.
Comment 11•26 years ago
|
||
Setting all current Open Critical and Major to M3
Comment 12•26 years ago
|
||
per leger, assigning QA contacts to all open bugs without QA contacts according
to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
Updated•26 years ago
|
QA Contact: 3849 → 4082
Comment 13•26 years ago
|
||
reassigning to Greg Lynn as QA contact
Comment 14•26 years ago
|
||
Alex advise on status of this bug; do we need more, is it still a bug, etc.
Assignee | ||
Comment 15•26 years ago
|
||
Looks like this is fixed too.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → FIXED
Comment 16•26 years ago
|
||
Dev thinks this is fixed now. Heikki can you try latest builds and see if this
is fixed for you? Above URL results in page Not Found error.
Reporter | ||
Updated•26 years ago
|
Reporter | ||
Comment 17•26 years ago
|
||
Sorry about the URL, our webserver went through reorganization and this
directory was missed. The new URL should now work.
I haven't had time to check the status of bugs I have reported but I will try to
do that early next week (Monday - Tuesday). Last week I was in California
(XTech'99), and visited Netscape as well (hi Alex & Rick!) so that is why you
did not get any response from me during the last couple of weeks...
Reporter | ||
Updated•26 years ago
|
Status: RESOLVED → REOPENED
Summary: Crash with Dr. DWG Plugin → Crash with Adobe Acrobat Plugin
Reporter | ||
Comment 18•26 years ago
|
||
Something furry is going on here. Do you all have plugins working correctly?
I can not get any of the three plugins I have been testing to work anymore. CGM
plugin comes closest, but it only displays white (I can tell the plugin loaded
because I get the plugin's menu with right-click). The viewer also finds all
the plugin DLLs (the debug messages in the DOS window show this).
DWG and PDF plugins just cause crash all the time.
It does not matter if I access files locally or from the network.
I just grabbed a latest nightly build: it works almost correctly (once
I set the PATH variable <bug #1418>). Problems: if I open PDF plugin first, it
only displays white (right-click on plugin area crashes, also back button does
not take me to previous doc after which nothing seems to work). If I open CGM
or DWG first, then everything works like a charm.
Have build options changed or something like that? Alex, send me your
environment info? Of course my build is debug and nightly build is opt,
so maybe that has something to do with this?
I am reopening this bug. I also reworded summary. I updated the URL doc.
Assignee | ||
Comment 19•26 years ago
|
||
The Adobe plugin works fine for me.
FYI - your test pages are no longer available
Assignee | ||
Comment 20•26 years ago
|
||
All of these plugins work fine for me.
Go to: http://www.drdwg.com/webviewers/netview/nvsample.htm for DWG,
http://www.intercap.com/demozone/assembly.cgm for CGM,
http://www.adobe.com/ for pdf
My build env is:
_MSC_VER 1100
CM_BLDTYPE dbg
CVS_CLIENT_PORT 2605
MODULAR_NETLIB 1
MOZ_BITS 32
MOZ_DEBUG 1
NGLAYOUT_PLUGINS 1
OS_TARGET WINNT
STANDALONE_IMAGE_LIB 1
You also need to set your MOZ_SRC, MOZ_TOOLS and CVSROOT.
Assignee | ||
Updated•26 years ago
|
Status: REOPENED → RESOLVED
Closed: 26 years ago → 26 years ago
Assignee | ||
Comment 21•26 years ago
|
||
Andrei also has this working on his build and machine.
Marking this fixed.
Comment 22•26 years ago
|
||
Will verify in morning
Reporter | ||
Comment 23•26 years ago
|
||
I have tried just about everything except reinstalling everything on my machine,
but nothing helps: my own build always crashes when Gecko opens a plugin stream
and the nightly build works except when the first plugin load is Acrobat.
I am trying to get my coworkers checking this out too, but as far as I am
concerned I am finished with plugins :(
Btw Alex, check the URL field at the top, it should point to the updated test
docs.
Comment 24•26 years ago
|
||
March 18 M3 timestamp 8pm build, apprunner, adobe and dwg plugin work for me.
Does not matter if Adobe is loaded first or 2nd. Heikki take another look with
this latest build if you could please.
Reporter | ||
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 25•26 years ago
|
||
My computer is busted: plugins simply do not work in Gecko. And after I
reinstalled sp 3 lots of other stuff stopped working as well... Ah well, the
joys of Windows.
Another guy here at Citec tried my tests and everything seems to work ok for
him.
So I am marking this verified.
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•