Flash keeps crashing, possibly sound problem

  • Dave M G

    Flash crashes constantly, regardless of whether or not I use Firefox, Chrome, or Chromium.

    It does not always crash, but I would estimate it crashes 4 out of 5 times when loading a page. It seems to be most likely to happen on pages that have more than one Flash item. It also happens when Flash has to make a transition of some sort. For example, when Youtube switches from an advertisement to the main video, then it might crash. Also, some sites are more likely to crash than others. Vimeo will crash with almost 100% reliability. Youtube is fairly stable, and crashes maybe one out of five times.

    I have tried uninstalling and reinstalling Flash. I have tried the Flash-Aid plugin, but none of the options it presented helped (in fact, it always ended up simply removing Flash and not finding an installation candidate).

    I think it might have something to do with how Flash is connecting to Pulse. Part of the reason I suspect sound is a problem is that I had to get help to get Flash to work with my sound before.

    As far as I understand it, all that's different about my sound system is that I go over a network to connect to a Pulse sound server on a different machine, and that I've hardcoded the server IP and port by adding a line that says PULSE_SERVER= in the file /etc/environment on the client machine. That's basically it, I think, but for more specifics, there are details here.

    Unfortunately, it seems that Flash doesn't like this set up. It's maddening to have Flash be so unstable, so I hope someone can advise on how I might diagnose and solve this problem.

  • Answers
  • Sabeer Sulaiman

    Which version do you use? Have you installed the correct version of ubuntu-restricted-extras. I had a problem more or less similar to this but got fixed when I reinstalled the correct version of U-R-E from the software center.

  • Related Question

    Stop using flash? Or improve the flash experience?
  • Detnuomnu

    I'd like to setup my Ubuntu to work without Flash (= not installed), but still be able to view videos on sites like Youtube, wisevid, etc.

    I want to try this because recently Flash has crashed a couple times. It also often 'feels' sluggish. Also a couple other flash related questions here got me thinking there might be a better way of doing things.

    So how should i do this?

    Note: Answers that have flash + work-arounds are also welcome.

  • Related Answers
  • dv3500ea

    On sites that support it, set videos to use HTML5.

    For flash only sites you could use one of the free flash implementations - Gnash and Lightspark.

    If you want to avoid flash plugins completely, you can attempt to download the video and then play with VLC. There are some programs that can help to do this. The following are available from the software repositories:

    • youtube-dl (command line) - downloads videos from youtube
    • clive (command line) - downloads videos from a number of websites
    • cclive (command line) - a C++ rewrite of clive
    • abby (graphical) - A GUI frontend to clive or cclive

    Not all video websites are supported but for some that aren't you may be able to find the URL of the video that is streaming and download it using wget or a GUI downloader such as d4x. Finding the video URL will require looking at the HTML code. To do this in chromium, you can right click next to the video and click 'inspect element'. You will be able to find the video URL within <embed></embed> tags. It will typically have a .flv or .avi extension. This will only work for websites that do not encrypt the URL (like youtube and megavideo do).

    You can 'stream' a video (play it while it is downloading) by opening VLC and using Media->Open File... and locating the video or running vlc FILE in a terminal.

    There are also browser extensions available, such as this one for firefox.

  • Bilal Akhtar

    If you want to avoid flash and still go ahead and watch YouTube videos, install LightSpark, an open-source implementation of the Flash Player that works well in Ubuntu. Just run the below commands in a terminal (Applications->Accessories->Terminal):

    sudo apt-get remove flashplugin-installer

    The above commmand is to make sure you don't have flash installed. After that, to install lightspark, run the below commands:

    sudo add-apt-repository ppa:sssup/sssup-ppa
    sudo apt-get update
    sudo apt-get install lightspark

    Then close and start your browser (Chromium/Firefox) again to begin using LightSpark

  • Axel

    you may try this too: http://tinyogg.com/

  • lukasz

    For YouTube videos you can use the minitube Install minitube

    Minitube is a YouTube desktop client. With it you can watch YouTube videos in a new way: you type a keyword, Minitube gives you an endless video stream. Minitube is not about cloning the original YouTube web interface, it aims to create a new TV-like experience.

    Minitube does not use the Flash Player.


  • John

    There is no need to install any extra software like minitube. Your totem, the default movie player in Ubuntu itself is able to play YouTube videos for you.

    Check this link. Hope this will help .


  • vinni_f

    in addition to @Bilal Akhtar answer I suggest to install the browser plugin in order to make it work on firefox & chorminium

    sudo apt-get install browser-plugin-lightspark
  • Ivo Danihelka

    You can restart the flash plug-in when the browser becomes sluggish.

    In Google Chrome:

    Task_Manager (Shift+Escape) -> End process on "Plug-in: Shockwave Flash"

    In Firefox 3.6.5+:

    killall plugin-container
  • swift

    Lightspark repository for Natty, Oneiric, Precise
    (ppa:sssup/sssup-ppa don't have last two and amd64 packages):

       sudo add-apt-repository ppa:sparkers/daily
  • maxschlepzig

    youtube-dl was already mentioned as an very convenient and open-source alternative to a flash-plugin. Other examples of site-specific flash substitute programs are:

  • sagarchalise

    The GUI downloader I use is DonwloadHelper http://www.downloadhelper.net/ Works great for me (Ubuntu 10.4 AMD64 and Firefox).

    Flash has been crashing for me lately as well (or so Firefox Tells me), but it still running anyway, just close the notification bar with the little "x". If you run Yahoo in a tab, then close that tab, that seems to eventually bring Firefox to a crawl. I stopped using Yahoo and switched to Gmail (plus my other e-mails like hotmail)...


  • Axel

    Install flash anyway... but only for the videos to "load" on the page... then, go to /tmp/ and for a video (hint: search for a video preview), and open the downloaded video in VLC for example :P
    You may want too add a "flash blocker" to your browser to prevent load flash objects unwanted...

  • bobince

    For what it's worth, since installing the new ‘preview release’ of Flash Player 10.2 I've not had a single crash (which is a great improvement; previously Flash has been wicked unstable for me on both Linux and Windows).

    I couple this with FlashBlock (for Firefox, though there is a similar add-on with the same name for Chrome) to avoid unwanted Flash ads, Flash-storage user-tracking and exploits.

  • anonymous

    At jan-2012, you may solved the problems. But, one must have in mind that Ubuntu does not upgrade software to a newer version than that in the release. If you have ubuntu 10.04 you can enter getdeb in the repositories, by this way you can upgrade to the last version of programs, although not from the ubuntu official site. By now I have FireFox 9.0.1, it works very fine. I can see videos from many sites, including youtube of course.

    64bit processors are not new at 2010, many computers manufactured by 2006 have one of those. Linux does not have problem to address 4GB of ram, but windows does, for that reason the manufacturers more recently sell their computers with 64bit windows versions, being 64bit every time more common, for that reason the absence of 64bit plugins is disappearing. Not so the monopolistic imposition of the monopoly's OS.

    Firefox 9 is also working very well under w7-64.