Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old June 19th, 2009   #1
VCoolio
Dipped in Ubuntu
 
VCoolio's Avatar
 
Join Date: Feb 2009
Location: Netherlands
Beans: 546
Ubuntu 9.10 Karmic Koala
Send a message via MSN to VCoolio
Re: Firefox crash ONLY when clicking fullscreen youtube

Solved: load the flash plugin before firefox or swiftfox. It's a NVidia driver issue. (edit: not only... ATI users seem to benefit from this too).
Easiest fix: modify the startup script of your browser, e.g. in case of Minefield (firefox-3.6):

gksudo gedit /usr/lib/firefox-3.6a1pre/firefox.sh

Find your browser script in the same area, somewhere in /usr/lib/yourbrowser; (edit: other possible locations are like /usr/local/lib/firefox-3.5/firefox or for install with ubuntuzilla it is /opt/firefox/firefox; using a run-mozilla.sh file if that is available also seems to work);
then add as 2nd (NOT 1st) line:
Code:
export LD_PRELOAD=/usr/lib/libGL.so.1
I'm not sure if this will keep working after an update of the browser (then do it again).

This doesn't seem to work for 64-bit; you'll need to rightclick flash video and disable hardware acceleration (thx Garyhans).

If you now have the problem that when you press full screen in youtube you see your compiz animation for opening a window, it very briefly shows video full screen (less than a second) and then the full screen window closes, then do the following (thx Danbo19): in compiz config settings manager go to Effects > Animation > Open Animation > Add and add "!(name=firefox)" (without "", but with !).
###########
SCRIPT OPTION
###########
If this doesn't work or you don't like this solution try the following:
I couldn't get it done in a launcher command but I used the script option (copypaste in gedit and save):

Code:
#!/bin/sh
## replace firefox-3.6 with what you use, e.g. firefox, firefox-3.5, swiftfox
LD_PRELOAD=/usr/lib/libGL.so.1 firefox-3.6
or when you run from an extracted tarball:

Code:
#!/bin/sh
export LD_PRELOAD=/usr/lib/libGL.so.1
/path/to/firefox
Now to run your browser make a launcher with as a command:
sh /path/to/script

Last edited by VCoolio; July 21st, 2009 at 11:30 AM..
VCoolio is offline   Reply With Quote
Old June 22nd, 2009   #2
jmdsdf
5 Cups of Ubuntu
 
Join Date: Sep 2008
Location: Kingston, Canada
Beans: 35
Kubuntu 9.10 Karmic Koala
Send a message via ICQ to jmdsdf Send a message via AIM to jmdsdf Send a message via MSN to jmdsdf Send a message via Yahoo to jmdsdf
Re: Firefox crash ONLY when clicking fullscreen youtube

Adding:

export LD_PRELOAD=/usr/lib/libGL.so.1

To the second line of /usr/lib/firefox-3.5/firefox.sh worked perfectly with the latest release candidate of Firefox! A big thank you! I was sick of using the Compiz enhanced zoom feature as a work around. Again, thanks!
jmdsdf is offline   Reply With Quote
Old June 24th, 2009   #3
ankle
Spilled the Beans
 
Join Date: Apr 2006
Beans: 13
Re: Firefox crash ONLY when clicking fullscreen youtube

Finally! Thanks VCoolio.

(BTW, I have ATI, not nVidia, but still had this problem until now)
ankle is offline   Reply With Quote
Old June 30th, 2009   #4
infoaddicted
First Cup of Ubuntu
 
Join Date: May 2009
Beans: 2
Re: Firefox crash ONLY when clicking fullscreen youtube

Thanks VCoolio! That worked for me!
infoaddicted is offline   Reply With Quote
Old July 2nd, 2009   #5
el-mar01
A Carafe of Ubuntu
 
Join Date: Feb 2008
Location: Melbourne, Australia
Beans: 97
Re: Firefox crash ONLY when clicking fullscreen youtube

Thanks a lot VCoolio, its unbeleivable that Mozilla didn't pick this HUGE bug up during development, come on Mozilla !! people use Firefox on other platforms other than Windows !!
el-mar01 is offline   Reply With Quote
Old July 2nd, 2009   #6
lovinglinux
Ubuntu addict and loving it
 
lovinglinux's Avatar
 
Join Date: Aug 2008
Location: Caprica City
Beans: 4,894
Ubuntu 9.10 Karmic Koala
Re: Firefox crash ONLY when clicking fullscreen youtube

Quote:
Originally Posted by VCoolio View Post
Solved: load the flash plugin before firefox or swiftfox. It's a NVidia driver issue. (edit: not only... ATI users seem to benefit from this too).
Easiest fix: modify the startup script of your browser, e.g. in case of Minefield (firefox-3.6):

gksudo gedit /usr/lib/firefox-3.6a1pre/firefox.sh

Find your browser script in the same area, somewhere in /usr/lib/yourbrowser;
then add as 2nd (NOT 1st) line:
export LD_PRELOAD=/usr/lib/libGL.so.1

I'm not sure if this will keep working after an update of the browser (then do it again).

If this doesn't work or you don't like this solution try the following:
I couldn't get it done in a launcher command but I used the script option (copypaste in gedit and save):

Code:
#!/bin/sh
## replace firefox-3.6 with what you use, e.g. firefox, firefox-3.5, swiftfox
LD_PRELOAD=/usr/lib/libGL.so.1 firefox-3.6
or when you run from an extracted tarball:

Code:
#!/bin/sh
export LD_PRELOAD=/usr/lib/libGL.so.1
/path/to/firefox
Now to run your browser make a launcher with as a command:
sh /path/to/script
I don't have /usr/lib/firefox-3.5/firefox.sh

I have compiled Firefox and it was installed at /usr/local/lib/firefox-3.5 and there is no firefox.sh there. The only similar file available is plain firefox, but it doesn't work. Do you how do I find it or if this can be done another way?
lovinglinux is offline   Reply With Quote
Old July 2nd, 2009   #7
VCoolio
Dipped in Ubuntu
 
VCoolio's Avatar
 
Join Date: Feb 2009
Location: Netherlands
Beans: 546
Ubuntu 9.10 Karmic Koala
Send a message via MSN to VCoolio
Re: Firefox crash ONLY when clicking fullscreen youtube

search in /usr/bin or try the script option I gave as alternative.
__________________
VCoolio is offline   Reply With Quote
Old July 2nd, 2009   #8
hamidoo
First Cup of Ubuntu
 
Join Date: Apr 2009
Beans: 10
Re: Firefox crash ONLY when clicking fullscreen youtube

Many thx man!
It worked with Mozilla's Firefox 3.5 tar ball (the one downloaded from mozilla).
I just added the line:
Code:
export LD_PRELOAD=/usr/lib/libGL.so.1
after the line:
Code:
moz_libdir=/usr/local/lib/firefox-3.5
And it worked like a charm!
hamidoo is offline   Reply With Quote
Old July 2nd, 2009   #9
lovinglinux
Ubuntu addict and loving it
 
lovinglinux's Avatar
 
Join Date: Aug 2008
Location: Caprica City
Beans: 4,894
Ubuntu 9.10 Karmic Koala
Re: Firefox crash ONLY when clicking fullscreen youtube

Quote:
Originally Posted by hamidoo View Post
Many thx man!
It worked with Mozilla's Firefox 3.5 tar ball (the one downloaded from mozilla).
I just added the line:
Code:
export LD_PRELOAD=/usr/lib/libGL.so.1
after the line:
Code:
moz_libdir=/usr/local/lib/firefox-3.5
And it worked like a charm!
Thank you. That worked like a charm for me too.
lovinglinux is offline   Reply With Quote
Old July 3rd, 2009   #10
sdowney717
May the Ubuntu Be With You!
 
sdowney717's Avatar
 
Join Date: Dec 2006
My beans are hidden!
Re: Firefox crash ONLY when clicking fullscreen youtube

simply for 3.5 did this
gksudo gedit /usr/lib/firefox-3.5/firefox.sh

added line

Code:
MOZDIR=$HOME/.mozilla
LIBDIR=/usr/lib/firefox-3.5
export LD_PRELOAD=/usr/lib/libGL.so.1
APPVER=3.5
META_NAME=
GDB=/usr/bin/gdb
DROPPED=abandoned
sdowney717 is offline   Reply With Quote

Bookmarks

Tags
crash, firefox, fullscreen, poopie, youtube

Thread Tools
Display Modes

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


All times are GMT -4. The time now is 01:16 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry