Monday, October 30, 2006

Ubuntu Firefox Flash Crash - this fix works for me

If you go an look through Malone, there is a clear swarm of bugs being opened about Firefox crashing with Flash. A classic example is GMail crashing if flash is installed.

There are a couple of suggestions that work for different people, but the one that works for me is to add
export XLIB_SKIP_ARGB_VISUALS=1
to /usr/bin/firefox. This is the script that starts the firefox application. Now, I'm not entirely sure what this environment variable is skipping, but it works for me on my Thinkpad 600E running Xubuntu Edgy.

/usr/bin/firefox will need to be edited as root; i.e. you will need to do something like sudo vi /usr/bin/firefox. I normally scroll down to the line that starts with
MOZ_PROGRAM=...
and add it in the line below that. Just becasue there's a blank line there.

If this doesn't help, then try
  • turning Composite off in /etc/X11/xorg.conf; or
  • switch screen depth from 16 to 24 bits. Also, edit /etc/X11/xorg.conf to do this.

Technorati Tags: , , ,

15 comments:

Ioannis said...

Well done!!!

The proplem solved just by changing the default screen depth from 16 to 24.

Thanxs.

Joe said...

i didn't realize gmail used flash. What is this "sound.swf"? I turned off javascript and used my gmail in basic mode because I was too lazy and I just wanted to check my mail.

Ádám said...

Thank's dude, it really worked for me, great and easy solution ;)

Lachlan said...

I already had screen depth of 24 bits and was getting the crash.

But
export XLIB_SKIP_ARGB_VISUALS=1
in the firefox script did the trick.

Thanks!

Lachlan said...

Oh wait, I was wrong... it still crashes when you close the window.

Sam Fechier said...

Worked for me too. Great thanks .

K said...

i'm using ubuntu 8.04, and had the same problem with flash crashing firefox, none of the fixes posted everywhere worked for me, however setting the visual effects (system->preferences->apperance) to NONE solved this problem. So you may try this. K.

Demoli said...

Adding this line fixed the issue for me on 8.04 with Firefox 3 beta 5.

Thanks for the fix

umnomequalquer said...

Thank you, I was getting pissed off by that crash.
I'm using Hardy and Firefox 2.0.0.15 and seems ok now.

shinobi said...

My computer is not over clocked.

However, I reduced its speed by 200 MHz and never had a FF crash again.

I user Adobe Flash Shockwave Flash 9.0 r124 on Ubuntu 8.04 with FF 2.0.0.15.

Steve said...

Thanks, I guess my firefox doesn't crash anymore while watching videos on youtube. It was really frustrating to open opera whenever I wanted to watch a video on youtube. I also recommend installing flashblock add one for those who want to get rid of annoying flash ads that spike cpu. I just enabled youtube to play flash and for other websites flash doesn't start unless I want. Web browsing is very pleasant these days.

andrei said...

try installing FIREFOX 2.0 .... that work's perfect:D

Glenn said...

for anyone else that might stumble across this blog like I did. go here :http://ubuntuforums.org/showpost.php?p=5587712&postcount=472
all your problems with flash and firefox should disappear.

iandbige said...

LINUX SOLUTION: Ian Stewart says For Ubuntu

The instructions should give you what you need to know to do this. This is the only thing that would get rid of this bug for me.

0) rename .mozilla in your home dir to .mymozilla

0.1) download a fresh linux "tgz" from the mozilla.com

1) untar it to a folder somewhere.

2) check out the symlinks

--- here is the ones on my system --
hulkeypoo@wmi-ipstb-m01:~$ ls -l /usr/bin/fire*
lrwxrwxrwx 1 root root 11 2008-12-11 09:57 /usr/bin/firefox -> firefox-3.0
lrwxrwxrwx 1 root root 24 2008-11-28 16:34 /usr/bin/firefox-2 -> ../lib/firefox/firefox-2
-rwxr-xr-x 1 root root 4466 2008-11-13 10:01 /usr/bin/firefox-2-config
lrwxrwxrwx 1 root root 31 2008-12-11 09:57 /usr/bin/firefox-3.0 -> ../lib/firefox-3.0.4/firefox.sh

------
3) note the symlink dir (mine is ../lib/firefox-3.0.4 or /usr/lib/firefox-3.0.4)

4) go to that dir and move all the files to a backup dir

5) copy the downloaded (and untarred) firefox contents to this dir

6) remove and re-create (update) the above symlinks in /usr/bin
example: ln -s firefox-3.0 firefox and ln -s ../lib/firefox-3.0.4/firefox.sh firefox-3.0

7) copy your bookmarks from the renamed .mozilla file .mymozilla


NOTE: for novice users, you could rename the .mozilla file, uninstall using apt-get remove firefox and reinstall using apt-get install firefox, and then copy your bookmarks from the renamed .mozilla file, but I didn't try this so please post again if this works

davidel said...

The solution, after having tried pretty much everything, was simply to delete the '.macromedia' directory.
After that, I had no more problems with FF 3.0.5 and 3.0.6 and Flash 10.