解决 Flash 全屏时 Firefox 崩溃的问题

在 Firefox 中看 Flash 时一旦点击全屏,Firefox 即刻崩溃。这个问题自打俺使用 Firefox 3.5 Beta 测试版时便已存在。先前是通过 Gcell 兄所说的禁用 Flash 硬件加速的办法来解决。最近,我了解到这其实是由 NVIDIA 驱动程序的 bug 造成的,据说 ATI 用户也有类似的问题。以下是另一种解决办法。

找到 Firefox 安装目录中的 firefox.sh,在其第二行加入:

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

或者创建一个包含如下内容的脚本:

    #!/bin/sh
    LD_PRELOAD=/usr/lib/libGL.so.1 firefox

注意:有的系统没有 libGL.so.1,而是 libGL.so,只需作相应的替换即可。

{via UbuntuForums}

Read More:

31 Comments

  1. 1 bhagavandas Commented @ 2009-07-17 11:56Reply to this comment

    好像没遇到过这个问题。

  2. 2 Kappa Commented @ 2009-07-17 12:01Reply to this comment

    gentoo下可以修改/usr/bin/firefox, 添加一行 export LD_PRELOAD=/usr/lib/libGL.so 就好了.

  3. 3 proguru Commented @ 2009-07-17 12:17Reply to this comment

    firefox 3.5.1正式发布

  4. 4 upsuper Commented @ 2009-07-17 12:21Reply to this comment

    用 LD_PRELOAD 啊……很恐怖的环境变量的说……

  5. 5 hbsld Commented @ 2009-07-17 12:22Reply to this comment

    我在archlinux上遇到了这个问题,终于解决了。

  6. 6 kkk21 Commented @ 2009-07-17 12:43Reply to this comment

    在Fedora11下用3.5BETA 或者3.5正式版,总是用着用着就死机。但换成Opera就没有问题,可惜国内的不少网站都是IE6 only,用Opera浏览时页面惨不忍睹。

  7. 7 ginkgo Commented @ 2009-07-17 13:09Reply to this comment

    lrwxrwxrwx 1 root root 10 2009-07-16 13:00 libGL.so -> libGL.so.1*

    lrwxrwxrwx 1 root root 18 2009-07-16 13:00 libGL.so.1 -> libGL.so.185.18.14*

    个人觉得用ln的方法比较好。

  8. 8 Rei Commented @ 2009-07-17 13:14Reply to this comment

    archlinux的firefox.sh位置在哪……?

  9. 9 lh Commented @ 2009-07-17 13:19Reply to this comment

    opera咋没问题

  10. 10 kilior Commented @ 2009-07-17 13:42Reply to this comment

    没这个问题的说。

    9.04

  11. 11 meto Commented @ 2009-07-17 13:47Reply to this comment

    莫非64位frifox+64位flash插件没事0_0

  12. 12 meto Commented @ 2009-07-17 13:49Reply to this comment

    firefox- - 最近心神不宁,老打错字>_<

  13. 13 young001 Commented @ 2009-07-17 13:54Reply to this comment

    我倒是没有碰到这个问题

  14. 14 leo Commented @ 2009-07-17 14:34Reply to this comment

    用了,解决了,谢谢了,平台ubuntu 9.04 version 3.5.1pre Mozilla firefox for Ubuntu canonical -1.0

    firefox.sh 在/usr/lib/firefox-3.5.1pre下面

  15. 15 Badsol Commented @ 2009-07-17 14:57Reply to this comment

    我用debian下面的iceweasel具体什么版本忘记了,在yuku上看海贼王。一全屏就一定一定的。难道也是这个问题。不过iceweasel对应的firefox版本应该是3.0.x吧。回去先试试有没有关系吧。

  16. 16 dybnu Commented @ 2009-07-17 17:41Reply to this comment

    我的firefox,用google doc还有一些dz的论坛的时候,老是崩溃,opera对这两玩意兼容不是很好,郁闷

  17. 17 wowtxp Commented @ 2009-07-17 17:55Reply to this comment

    老问题终于解决,非常感谢。 几个月前就给firefox开发者提交了BUG,没想到3.5正式发布了也没有修正,感谢Toy。

  18. 18 arch Commented @ 2009-07-17 18:22Reply to this comment

    怎么想到的解决方法

  19. 19 cnhackTNT Commented @ 2009-07-17 19:35Reply to this comment

    gentoo 的同学,用 nvidia 驱动的 libGL.so.1 应该在这个位置:

    /usr/lib/opengl/nvidia/lib/libGL.so.1

    做一下相应修改即可。

  20. 20 kent Commented @ 2009-07-17 19:37Reply to this comment

    我这问题不是崩溃。 我看youtube,正常看还行,一fullscreen,CPU就飙到顶,而且一直那样。导致快进阿,什么的都要等好久。不知道这个能解决么。有别人也这样么?(firefox)

  21. 21 macaulish Commented @ 2009-07-17 20:22Reply to this comment

    fedora 11 64 +64 flash,,完全没事

  22. 22 黑日白月 Commented @ 2009-07-17 21:49Reply to this comment

    很少用在 Firefox 中全屏看视频,一般都是用 Video download helper 下载下来再看的……

    刚特地在 tudou 中测试了下,没有出现该问题。

    Fedora 11 i686 + Firefox 3.5 + Adobe Flash 10.0.22 + nVidia 190.09

    @dybnu: 估计是个人问题吧, Firefox 是 Google Docs 推荐浏览器之一啊……

  23. 23 larz Commented @ 2009-07-18 3:03Reply to this comment

    @wowtxp: 驱动程序的BUG,你报给FX开发者当然没有回应

  24. 24 liusp Commented @ 2009-07-18 13:23Reply to this comment

    总觉得linux下的firefox的使用感觉不如windows下的firefox,这是幻觉么。。。

  25. 25 wowtxp Commented @ 2009-07-20 20:00Reply to this comment

    larz Commented @ 2009-07-18 3:03 amReply to this comment
    @wowtxp: 驱动程序的BUG,你报给FX开发者当然没有回应

    这个不是单纯的驱动程序BUG,因为同样驱动,同样flash条件下,firefox 3.10 opera konqueror全部没有问题,只有firefox3.5的flash要崩溃。

  26. 26 zmd56 Commented @ 2009-07-21 15:21Reply to this comment

    archlinux新建这个文件就可以了,然后把它链接到/usr/bin就解决了这个问题了

  27. 27 jeffYang Commented @ 2009-07-22 11:20Reply to this comment

    我的WindowsServer 2003装了FireFox3.5后,无法正常安装Flash插件,必须去华军下载一个独立安装包之后才能用。 但也就用一次,刷新一下带有Flash的页面,火狐必死无疑。另外,用IE也是如此,非常奇怪。不知道为什么。

  28. 28 zmd56 Commented @ 2009-07-23 14:11Reply to this comment

    这个没有试过,就不知道了,应该是你的Server系统的问题吧

  29. 29 HicroKee Commented @ 2009-07-24 23:02Reply to this comment

    只从换了gentoo,用emerge的firefox 3.0.1,就从来没有出过内存问题与flash问题,不知是什么原因。 那些抱怨firefox慢的同学,可以尝试把所以addons关了再试试。

    @liusp 不只firefox,就google那阵营的,有哪个能在开源平台跑得好?

  30. 30 Pepino Commented @ 2010-01-09 15:48Reply to this comment

    推荐一下现在的flash plugin的beta版,这一版开始使用OpenGL加速,大约可以缓解Flash Video的高CPU占用问题。

    Flash Video问题的原理见:

    http://phenix.5.3851666.com/?p=56

  31. 31 tocai Commented @ 2010-02-26 17:48Reply to this comment

    用Debian的时候没有遇到过,现在换了Arch问题多多