September 24, 2008

Firefox 3.0.2: The Wmode Fix

Firefox 3.0.2 is now out. Lots of security fixes. But for Linux users, the most interesting item that slipped through is "the wmode fix"-- Firefox 3.0.2 fixes the problem of instant, repeatable crashes on a number of windowless-enabled websites. Upgrade quickly, at least for that reason. It's probably most readily available through your package manager.

Also, I neglected to mention that a new Flash Player release candidate (designated 10.0.12.10) is available for download. You shouldn't notice much difference with this RC vs. the previous RC. Of course, I expect there will be users for whom this RC changes everything, whether for better or worse. That's just how it is in this Linux game.

Links:

August 21, 2008

Random Blog Post

I found this random blog post just now. What has my coworker Tinic been up to?

cURL Tradeoffs

Sometimes, the Flash Player needs to do HTTP stuff. Most of the time, it's enough for the Flash Player to use plugin/browser functions (NPAPI) to achieve this. However, it is occasionally necessary to go above and beyond what NPAPI provides. While the Windows and Mac versions have standard platform APIs to call upon for that little something extra in the HTTP department, the closest thing that Linux has to a standard is the longstanding cURL library.

We started using cURL during the Flash Player 9 development cycle. At the time, we did not assess that cURL was widespread enough to link to it dynamically. So we included it in the binary, as permitted by the cURL license.

During the Flash Player 10 development cycle, we decided to make cURL the end user's responsibility, i.e., dynamically link to cURL, just as we do with a number of other libraries. In doing so, it's one less thing for us to manage internally. Plus, end users can manage cURL-related updates and bug fixes themselves. But wouldn't you know, there are problems with this approach. There are 2 versions of libcurl.so floating about in the wild: libcurl.so.3 (corresponding to cURL < 7.16) and libcurl.so.4 (corresponding to cURL >= 7.16). Most modern distributions come with the latter. But a few stragglers (that we are still committed to support) are still using the former.

A few possible solutions:

  1. Build and distribute 2 separate binaries, one for libcurl.so.3 and one for libcurl.so.4, thus doubling our own internal testing efforts. Heh, naw, I don't think so.
  2. Place a hard requirement in the binary to link to libcurl.so.3. Many distros that have libcurl.so.4 have a symlink from libcurl.so.3.
  3. Place a hard requirement in the binary to link to libcurl.so.4, thereby freezing out any distros that still use libcurl.so.3.
  4. Manually load the required cURL functions at runtime.
  5. Sprinkle magic open source pixie dust on the Flash Player (solves all problems, don't ya know). Can you say "nonstarter"?

For the most recent release candidate of Flash Player 10, we opted for choice 2. This seemed to work for most distros except, most notably, Fedora systems which did not feature the symlink from .so.3 -> .so.4. Apparently, there's another reason not to rely on this method, though. The cURL functions are reportedly version-checked so that if the Flash Player links to libcurl.so.3, we are not certain we will actually be getting the most recent code present in libcurl.so.4.

The next thing we are going to try is option 4-- manually load the library, the same as we already do with ALSA and OpenGL. We will use dlopen() and dlsym() to load required functions from libcurl.so.4. If that library is not there, fall back to libcurl.so.3. Look for this behavior in the next release. If that library is not there... why not? Oh, and refuse to load the Flash Player in that circumstance.

I know many users are frustrated that we seem to be spending time on what might be perceived as minor issues when there are certain "bigger picture" items that are a little more visible. Believe me, we share that sentiment. Maybe one day, more of these little items will be standardized so we don't have to use so much developer time making sure 1% of the Flash feature set works correctly on Linux.

August 13, 2008

Windowless Mode Fix

As a reminder, Firefox 3.0.1 has a known crash problem with a wide variety of windowless mode SWFs. This has already been fixed in the Mozilla code tree and alpha builds are available for download. However, if you would prefer to wait until a new official Firefox release, you may wish to disable windowless mode in the Flash Player. You can do this (on any platform) by setting WindowlessDisable=true in the mms.cfg (which lives in /etc/adobe on Unix platforms).

August 12, 2008

Secrets Of The mms.cfg File

Did you know that the Adobe Flash Player honors a few configuration files on the user's local file system? There are 2 such files:

  1. mm.cfg: user-local configuration file; lives in user's home directory on Unix systems and is largely only useful when using content debugger versions of the Player
  2. mms.cfg: system-wide configuration file, designed to allow administrators to set policy for all users on a system; lives in /etc/adobe on Unix systems

There is a lengthy guide available that describes all of the various administration features and what the mms.cfg can do for you.

The reason I bring this up is that there is a new option in mms.cfg that will be of use to Linux users: "OverrideGPUValidation". Pursuant to the need to have such stringent rules for validating whether the Linux Flash Player can use the GPU. If you wish to force the Flash Player to bypass its GPU validity checks, add "OverrideGPUValidation=true" (without the quotes) to your mms.cfg.

But please don't expect the option to be a magical speed boost option for the Flash Player as a whole. Reread the original post on the matter to understand where GPU acceleration helps and where it doesn't. And if you are planning to ask about Xv support, read the post again until the message clicks.

Adobe Flash Player For Linux

Recently Commented On

Powered by a blogging system that's not as good as WordPress but still tries really hard