Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2057 closed defect (fixed)

gmplayer crash

Reported by: star@… Owned by: ib
Priority: normal Component: GUI
Version: unspecified Severity: normal
Keywords: Cc: ib
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Hi

I've built MPlayer SVN-r34866-4.4.5 using the following configuration on a 32-bit linux Debian 6.0 Squeeze stable system...

./configure --enable-gui --prefix=/usr/local/mplayer-checkout-2012-04-16 --enable-runtime-cpudetection --enable-xvmc --enable-menu --enable-debug

the configure, make and make install are all fine and the installed mplayer executable works perfectly :-)

There is a problem though with the gmplayer startup itself (i.e. without adding a filename to the command line to play on startup).

With no existing ~/.mplayer directory, running gmplayer works fine and displays the gui along with the video window using the default blue skin.

After closing down gmplayer however, subsequent attempts to run gmplayer again result in a crash. The reason I mention ~/.mplayer is that if ~/.mplayer/gui.conf is removed before restarting gmplayer, then it starts with no problem.
After further testing, it appears that the "dvd_device=/dev/dvd" line within ~/.mplayer/gui.conf is causing the problem - if I remove that line from gui.conf and make gui.conf read-only, then gmplayer starts every single time.

I've ran gmplayer through gdb and got the following output...
(gdb) run
Starting program: /usr/local/bin/gmplayer
[Thread debugging using libthread_db enabled]
MPlayer SVN-r34866-4.4.5 (C) 2000-2012 MPlayer Team
Icon 'mplayer' (size 16) not found or unsupported format.

Program received signal SIGSEGV, Segmentation fault.
0x40c75250 in gdk_x11_drawable_get_xid () from /usr/lib/libgdk-x11-2.0.so.0
(gdb) bt
#0 0x40c75250 in gdk_x11_drawable_get_xid () from /usr/lib/libgdk-x11-2.0.so.0
#1 0x0812d82d in gtkInit () at gui/ui/widgets.c:140
#2 0x0811308a in guiInit () at gui/interface.c:98
#3 0x080e7ea0 in main (argc=1, argv=0xbffff764) at mplayer.c:3047

/usr/lib/libgdk-x11-2.0.so.0 belongs to the debian libgtk2.0-0 package which is gtk version 2.20.1-2

Hope this is enough information to make a fix. Keep up the excellent work!

Cheers
Paul.

Attachments (1)

bug2057.patch (1.2 KB ) - added by ib 12 years ago.
Proposed patch

Download all attachments as: .zip

Change History (8)

by ib, 12 years ago

Attachment: bug2057.patch added

Proposed patch

comment:1 by ib, 12 years ago

Could you please try the patch and report back?

comment:2 by ib, 12 years ago

Cc: ib@… added
Owner: changed from reimar to ib

comment:3 by star@…, 12 years ago

Hi

The patch works perfectly.

Many thanks for the super quick fix...

Cheers
Paul

comment:4 by ib, 12 years ago

Resolution: fixed
Status: newclosed

(In reply to comment #2)

The patch works perfectly.

Many thanks for the super quick fix...

Committed in svn r34868.

BTW, the patch is only half the battle. The questions is: Why do you get

Icon 'mplayer' (size 16) not found or unsupported format.

It seems that you have the icon, but it's not the original one (and of wrong format).

comment:5 by star@…, 12 years ago

Thanks for the fix.

I'm not sure about the Icon 'mplayer' warning - I can't directly see any problem when gmplayer is loaded.

Which icon is it supposed to be loading? The only size 16 icon I can find in the installation directory is this one...

file /usr/local/mplayer-checkout-2012-04-16/share/icons/hicolor/16x16/apps/mplayer.png

returns...

/usr/local/mplayer-checkout-2012-04-16/share/icons/hicolor/16x16/apps/mplayer.png: PNG image data, 16 x 16, 8-bit/color RGBA, non-interlaced

and I can successfully open that file with imagemagick display, xv, etc.

Cheers
Paul

comment:6 by ib, 12 years ago

(In reply to comment #4)

Which icon is it supposed to be loading?

The mplayer icon from your default icon theme.

The only size 16 icon I can find in the installation directory is this one...

/usr/local/mplayer-checkout-2012-04-16/share/icons/hicolor/16x16/apps/
mplayer.png

Which probably isn't in your icon theme search path, is it?

comment:7 by star@…, 12 years ago

Thanks: it wasn't, it is now and now all is fine :-)

For future reference if anyone else comes across this, I linked the six different sizes from the install directory into the system wide icons directory...

i.e. for the 16x16 icon I did this...

ln -s /usr/local/mplayer-checkout-2012-04-16/share/icons/hicolor/16x16/apps/mplayer.png /usr/share/icons/hicolor/16x16/apps/mplayer.png

[etc, etc, for the 22x22, 24x24, 32x32, 48x48 and 256x256 icons]

and then ran...

gtk-update-icon-cache /usr/share/icons/hicolor

to update the /usr/share/icons/hicolor/icon-theme.cache file

Cheers and many thanks once again.
Paul.

Note: See TracTickets for help on using tickets.