Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-26-04, 08:05 AM   #1
salute
Registered User
 
Join Date: May 2004
Posts: 5
Default Problems with Mozilla OpenGL Plugin

Hi,

I am developing an OpenGL Plugin for Mozilla (using GLX). Generally there are two possibilites to get an OpenGL Window in the WebBrowser:

1. Acquire GLX Context for Mozilla generated plugin window.
2. Swallowing of an X11 application.

I tried it with the first method. The OpenGL Scene shows up and works perfectly ... but when I switch to another page (Unload of plugin (shared library)) then libglcore.so.1 is not unloaded. Thus when attempting to visit the page again mozilla crashes.

What could be the problem with the plugin? Is it a driver problem? When using MesaGL everything works perfectly. Or could it be that there is an issue with the dynamic loading/unloading of the plugin?

I use Suse 9.0, NVIDIA Driver IA32 53.36.

If it can help further I can give you more information about my system and/or the source code of the plugin.

Any help is appreciated!
Giovanni Salute
salute is offline   Reply With Quote
Old 05-26-04, 08:50 AM   #2
Kamel
Hardware Mass Murderer
 
Kamel's Avatar
 
Join Date: Oct 2003
Location: Jacksonville, FL
Posts: 1,035
Send a message via ICQ to Kamel Send a message via AIM to Kamel Send a message via MSN to Kamel Send a message via Yahoo to Kamel Send a message via Skype™ to Kamel
Default Re: Problems with Mozilla OpenGL Plugin

interesting idea. i am no developer myself, but with the symptoms you described, it sounds like mozilla is choking when trying to unload the so... what i am *guessing* is happening is when mozilla tries to unload the module, either the so is malfunctioning or the mozilla plugin window is. and what i'm guessing is causing the crash is trying to load a second instance of the same thing. it's inefficiant to do this, but i would try making it stay in the memory and not load once it goes to the website... just for trouble shooting of course.

also try different versions (if possible). afaik the plugin support is the same between moz/firefox/galeon. i would try all 3 and see if the results are the same.

good luck, that's about all i can say... sorry if i wasn't helpful; again, i'm no developer
__________________
hardware murdered so far: geforce 5900u, deceised: sat on it. geforce 6600gt deceised: improperly mounted heatsink. 3 asus a7n8x-e deluxe motherboards, deceised: unsure. mobile amd xp2600 processor, deceised: chipped core due to compusa heatsink. dfi lanparty ultra b, deceised: unsure, third memory bank went out. samsung cd burner 48x40x48, deceised: unsure, will only read pressed cd's very slowly. samsung TH552C dvd burner (dual layer), deceised: same as other samsung . 10gb seagate 5200rpm drive, deceised: tried fixing a pin that was pushed into the drive by inserting an ide cable upside down. 40gb maxtor drive, deceised: maxtor manufacturer. 80gb western digital, deceised: unnatural causes. swan xt10, deceised: brutal pre-meditated murder, even video taped (it wasn't y2k compliant). logitech mx510, deceised: death by electricution. ati remote wonder, deceised: death by electricution.
Kamel is offline   Reply With Quote
Old 05-26-04, 09:01 AM   #3
salute
Registered User
 
Join Date: May 2004
Posts: 5
Default Re: Problems with Mozilla OpenGL Plugin

> it sounds like mozilla is choking when trying to unload the so.

I'm just wondering why it works with software OpenGL drivers ...

> and what i'm guessing is causing the crash is trying to load a second
> instance of the same thing. it's inefficiant to do this, but i would try
> making it stay in the memory and not load once it goes to the
> website...

This actually works. As long as one site with the plugin is opened it
works. But when unloading the plugin ... it fails.

Thanks anyway for the hints.

Giovanni Salute
salute is offline   Reply With Quote
Old 05-26-04, 10:15 AM   #4
salute
Registered User
 
Join Date: May 2004
Posts: 5
Default Re: Problems with Mozilla OpenGL Plugin

OK ... now I could make the plugin stable.

The solution was not to use glu commands:

I replaced gluPerspective with glFrustum. So all OpenGL libs including
libglcore.so.1 (NVIDIA) unload correctly. My question now is whether this
is a Mozilla Problem or a NVIDIA Problem ... As I mentioned before there was no problem when using MesaGL. Who should I contact for further proceeding?

Giovanni Salute
salute is offline   Reply With Quote
Old 05-26-04, 10:40 AM   #5
Kamel
Hardware Mass Murderer
 
Kamel's Avatar
 
Join Date: Oct 2003
Location: Jacksonville, FL
Posts: 1,035
Send a message via ICQ to Kamel Send a message via AIM to Kamel Send a message via MSN to Kamel Send a message via Yahoo to Kamel Send a message via Skype™ to Kamel
Default Re: Problems with Mozilla OpenGL Plugin

heh, sorry. i guess i misunderstood the problem.

as far as who to contact, i'm really not sure -- however, if you have irc, you may be able to find help in #nvidia on irc.freenode.net

good luck.
__________________
hardware murdered so far: geforce 5900u, deceised: sat on it. geforce 6600gt deceised: improperly mounted heatsink. 3 asus a7n8x-e deluxe motherboards, deceised: unsure. mobile amd xp2600 processor, deceised: chipped core due to compusa heatsink. dfi lanparty ultra b, deceised: unsure, third memory bank went out. samsung cd burner 48x40x48, deceised: unsure, will only read pressed cd's very slowly. samsung TH552C dvd burner (dual layer), deceised: same as other samsung . 10gb seagate 5200rpm drive, deceised: tried fixing a pin that was pushed into the drive by inserting an ide cable upside down. 40gb maxtor drive, deceised: maxtor manufacturer. 80gb western digital, deceised: unnatural causes. swan xt10, deceised: brutal pre-meditated murder, even video taped (it wasn't y2k compliant). logitech mx510, deceised: death by electricution. ati remote wonder, deceised: death by electricution.
Kamel is offline   Reply With Quote
Old 05-26-04, 12:39 PM   #6
kgroombr
Using Linux Since 1995
 
Join Date: Sep 2002
Posts: 130
Default Re: Problems with Mozilla OpenGL Plugin

Blender (http://www.blender.org) had a plugin like this that worked fine with Mozilla (at least a few years ago when I played with it).

Not sure if it is opensource, but it may be and it might save you some work.

Ken
__________________
Kenton A. Groombridge
kgroombr@comcast.net
http://home.comcast.net/~kgroombr/
kgroombr is offline   Reply With Quote
Old 05-26-04, 04:11 PM   #7
salute
Registered User
 
Join Date: May 2004
Posts: 5
Default Re: Problems with Mozilla OpenGL Plugin

I had the same problems with the Blender plugin.

The code has not been updated since 2001 ... but there seems to be a problem with the shared libs. Next step is to try it with an ATI card. I suppose when it will work with the software driver (MesaGL) and also with another graphic card (ATI) then the probability is even higher that there is a problem with NVIDIA. Probably the shared libs are not unloaded in the correct order. But I think I have no influence how the libs are unloaded.

Any further comments are aprreciated!
Giovanni Salute
salute is offline   Reply With Quote
Old 05-27-04, 03:41 PM   #8
pzgren
Registered User
 
pzgren's Avatar
 
Join Date: Jan 2004
Posts: 107
Default Re: Problems with Mozilla OpenGL Plugin

Is it no possible to try it with the OGL Java Bindings?

https://jogl-demos.dev.java.net/

Marcus
__________________
Fedora Core 6
Notebook: DELL Inspiron 9400 - Core Duo T2400 - 17" WUXGA 7800 Go 256MB - 2 GB DDR2 667 MHz -
PC: AMD64 3200 - 1 GB Infi. PC400 - MSI K8N Neo Platinum NForce3 250GB - 80GB SATA Samsung - SB Live! 5.1 - GF 6600GT AGP
pzgren is offline   Reply With Quote

Old 05-28-04, 02:22 PM   #9
salute
Registered User
 
Join Date: May 2004
Posts: 5
Default Re: Problems with Mozilla OpenGL Plugin

I have already already an sdk in C++ ... so switching to java is not really an option.
salute is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenGL book Airstrip1 Software Development 2 08-12-12 08:55 AM
Unity 5.12 Fixes Ubuntu OpenGL Performance Problems News Archived News Items 0 06-11-12 01:20 PM
Major WineX prob... I think it has to do with the vidcard... Linewbie NVIDIA Linux 20 10-09-02 09:58 PM
OpenGL SDK compilation problems gib bogle NVIDIA Linux 2 09-18-02 09:15 AM
resolution problems the fat bastid NVIDIA Linux 4 09-15-02 09:40 PM

All times are GMT -5. The time now is 07:04 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.