这一篇介绍一种 Linux 系统下 flash 崩溃的解决办法。
环境如下:
操作系统:openSUSE 13.2 32 位
浏览器:Firefox 34 版本
状况:凡使用 flash 的页面均出现 Adobe Flash 插件已崩溃。
尝试 Chrome 浏览器,同样存在问题:
Shockwave Flash has crashed.
排查步骤如下:
打开 Firefox 附加组件页面,检查 flash 相关插件的安装情况,如下图:
我们能看到两个版本的 flash 插件:
Shockwave Flash 15.0.0.239
Shockwave Flash 11.2.202.411
两个插件的情况是:
两个都设置为 active,则 Flash 肯定崩溃
只设置一个为 active,则页面总是提示要开启 Flash
所以我估计是两个版本冲突的问题1。而据我所知,flash 在 Linux 系统下的最新版本只更新到 11.2.202.4242。
使用 zypper search 命令检查系统下安装的 flash 相关软件:
$ zypper search flash
输出结果如下:
S | Name | Summary | Type
--+-----------------------------------+----------------------------------------------------------+------------
| Adobe Flash Player | Preferences for Adobe Flash Player | application
| FlashPlayer | Flash Standalone Player | application
| btcflash | Firmware flash utility for BTC DRW1008 DVD+/-RW recorder | package
i | chromium-pepper-flash | Chromium Flash player plugin | package
| chromium-pepper-flash | Chromium Flash player plugin | srcpackage
| chromium-pepper-flash-debugsource | Debug sources for package chromium-pepper-flash | package
i | flash-player | Adobe Flash Plugin and Standalone Player | package
| flash-player | Adobe Flash Plugin and Standalone Player | srcpackage
| flash-player-gnome | Adobe Flash Plugin and Standalone Player Settings | package
i | flash-player-kde4 | Adobe Flash Plugin and Standalone Player Settings | package
| flashrom | A universal flash programming utility | package
| flashrom | A universal flash programming utility | srcpackage
i | pullin-flash-player | Placeholder for Adobe Flash PlugIn | package
| pullin-flash-player | Placeholder for Adobe Flash PlugIn | srcpackage
| texlive-flashcards | A class for typesetting flashcards | package
| texlive-flashcards | A class for typesetting flashcards | srcpackage
| texlive-flashcards-doc | Documentation for texlive-flashcards | package
| texlive-flashmovie | Directly embed flash movies into PDF files | package
| texlive-flashmovie | Directly embed flash movies into PDF files | srcpackage
| texlive-flashmovie-doc | Documentation for texlive-flashmovie | package
view rawflash hosted with by GitHub
其中 chromium-pepper-flash 比较可疑。
移除 chromium-pepper-flash:
$ sudo zypper rm chromium-pepper-flash
弹出提示如下:
The following 2 packages are going to be REMOVED: chromium-pepper-flash freshplayerplugin
The following package is going to be upgraded: flash-player
1 package to upgrade, 2 to remove. Overall download size: 11.6 MiB. Already cached: 0 B After the operation, 13.9 MiB will be freed. Continue? [y/n/p/? shows all options] (y): y (Use arrows or pgUp/pgDown keys to scroll the text by lines or pages.)
提示里说,chromium-pepper-flash 和 freshplayerplugin 将被移除,并且会升级 flash-player。
执行完以上步骤后,重启 Firefox,Flash 已可用。