mplayer-plugin/firefox/mozilla and pthread_testcancel (Was: Re: advice please)

Melvyn Sopacua freebsd.stable at melvyn.homeunix.org
Tue Dec 20 14:40:31 PST 2005


On Tuesday 20 December 2005 23:20, dick hoogendijk wrote:
> On Tue, 20 Dec 2005 22:46:30 +0100
>
> Melvyn Sopacua <freebsd.stable at melvyn.homeunix.org> wrote:
> > On Tuesday 20 December 2005 22:01, dick hoogendijk wrote:
> > > On Tue, 20 Dec 2005 21:49:21 +0100
> > >
> > > Melvyn Sopacua <freebsd.stable at melvyn.homeunix.org> wrote:
> > > > On Tuesday 20 December 2005 21:36, dick hoogendijk wrote:
> > > > > I used to be able to play (windows) mplayer2 files and *.mov
> > > > > files with my native mozilla browser and mplayerplug-in
> > > > > installed. Lately that does not work anymore. Mozilla just
> > > > > crashes, firefox starts up the mplayerplug-in and than stops
> > > > > (hangs).
> > > >
> > > > Did this start after upgrading firefox to 1.5?
> > > > Related:
> > > > does:
> > > > find /usr/X11R6/include/firefox /usr/X11R6/include/mozilla -type
> > > > f \ -print |xargs grep nsPluginThread
> > > >
> > > > yield any results?
> > >
> > > I can't remember if the firefox upgrade was related. I _do_ upgrade
> > > both browsers if portupgrade says there is a newer version. I do
> > > have the latest firefox installed also.
> > >
> > > The results for the above find command:
> > >
> > > /usr/X11R6/include/mozilla/oji/nsIThreadManager.h:typedef struct
> > > _nsPluginThread
> > > nsPluginThread; /usr/X11R6/include/mozilla/oji/nsIThreadManager.h:
> > > GetCurrentThread(nsPluginThread* *threadID) =
> > > 0; /usr/X11R6/include/mozilla/oji/nsJVMManager.h:
> > > GetCurrentThread(nsPluginThread* *threadID);
> >
> > Hmm, so Mozilla still provides compatibility for oji java plugins,
> > where firefox doesn't.
> > I just took a quick look at mplayerplugin source and can't find any
> > references to PRThread. The plugin uses the provided top-level
> > interfaces. Did you recompile the plugin?
>
> I recompiled mozilla, firefox and the plugin I recompiled a couple of
> times. To no use. Mozilla just crashes, firefox shows the
> "plugin-window" and does nothing. I never used the option "without-gui"
> btw.
>
> > I just installed it and it doesn't really work for me (opens a new
> > window iso playing in the designated space, probably because I didn't
> > compile mplayer using WITHOUT_GUI), but doesn't crash anything either.
> > I tried the apple movie trailers.
>
> Yeah, only difference it that when I try to open an movie trailer,
> mozilla coredumps and firefox stops with a blank plugin-window. Hope
> that somebody knows how to solve this. I liked mplayerplug-in very
> much. It seems the only way to have some multimedia with
> mozilla/firefox. Plus, it *used* to work ;-(

Well, I know now that my mplayer/.config was the cause of it not playing in 
it's own space. I used vo=gl2,xv. xv is the one that plays in the designated 
space.

However, I've got problems too, if I use the stop command or go to another 
page while the plugin is still loaded - gdb shows:

Url: http://www.apple.com/trailers/fox/x3/
Action: click one of the HD teasers then click stop:

[Switching to Thread 0x8bce400 (LWP 100139)]
0x28a80952 in pthread_testcancel () from /usr/lib/libpthread.so.2
(gdb) where
#0  0x28a80952 in pthread_testcancel () from /usr/lib/libpthread.so.2
#1  0x2a17f52a in playNode () 
from /usr/X11R6/lib/browser_plugins/mplayerplug-in-qt.so
#2  0x2a181a1c in playPlaylist () 
from /usr/X11R6/lib/browser_plugins/mplayerplug-in-qt.so
#3  0x28a722f9 in pthread_create () from /usr/lib/libpthread.so.2
#4  0x28b1f367 in _ctx_start () from /lib/libc.so.6

Url: http://www.apple.com/trailers/fox/x3/
Action: click medium on the 'normal' trailers, play it, stop if you want, then 
click backbutton:
[Switching to Thread 0x8901800 (LWP 100094)]
0x28a822bb in __error () from /usr/lib/libpthread.so.2
(gdb) where
#0  0x28a822bb in __error () from /usr/lib/libpthread.so.2
#1  0x28a80905 in pthread_testcancel () from /usr/lib/libpthread.so.2
#2  0x2a17f52a in playNode () 
from /usr/X11R6/lib/browser_plugins/mplayerplug-in-qt.so
#3  0x2a181a1c in playPlaylist () 
from /usr/X11R6/lib/browser_plugins/mplayerplug-in-qt.so
#4  0x28a722f9 in pthread_create () from /usr/lib/libpthread.so.2
#5  0x28b1f367 in _ctx_start () from /lib/libc.so.6

-- 
Melvyn Sopacua
freebsd.stable at melvyn.homeunix.org

FreeBSD 6.0-STABLE
Qt: 3.3.5
KDE: 3.4.3


More information about the freebsd-stable mailing list