這一篇介紹一種 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 已可用。