gmplayer cannot be started at Ubuntu 18.04

Bug #1774829 reported by psl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mplayer (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 18.04, amd64, fresh install

```
$ gmplayer
MPlayer 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Gtk-Message: 01:32:33.570: Failed to load module "canberra-gtk-module"
Error in skin config file at line 6: PNG read error in /usr/share/mplayer/skins/default/main
Config file processing error with skin 'default'

Exiting... (Fatal error)
```

https://askubuntu.com/questions/783489/cant-use-mplayer-on-16-04-lts-x64?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

psl (slansky)
description: updated
Revision history for this message
psl (slansky) wrote :
Download full text (3.4 KiB)

I followed the advice and converted PNG files to PNG24, this is the procedure:

root@test:/usr/share/mplayer/skins/clearplayer# file *png
button_forward.png: PNG image data, 39 x 126, 8-bit colormap, non-interlaced
button_load.png: PNG image data, 39 x 126, 8-bit/color RGB, non-interlaced
button_next.png: PNG image data, 39 x 126, 8-bit/color RGB, non-interlaced
button_pause.png: PNG image data, 39 x 126, 8-bit colormap, non-interlaced
button_play.png: PNG image data, 39 x 126, 8-bit colormap, non-interlaced
button.png: PNG image data, 39 x 126, 8-bit colormap, non-interlaced
button_prev.png: PNG image data, 39 x 126, 8-bit/color RGB, non-interlaced
button_rewind.png: PNG image data, 39 x 126, 8-bit colormap, non-interlaced
button_stop.png: PNG image data, 39 x 126, 8-bit colormap, non-interlaced
font.png: PNG image data, 171 x 48, 8-bit colormap, non-interlaced
main.png: PNG image data, 380 x 115, 8-bit colormap, non-interlaced
mute.png: PNG image data, 10 x 51, 8-bit colormap, non-interlaced
pos.png: PNG image data, 27 x 45, 8-bit colormap, non-interlaced
sub.png: PNG image data, 372 x 286, 8-bit/color RGB, non-interlaced
vol.png: PNG image data, 18 x 42, 8-bit colormap, non-interlaced
waves.png: PNG image data, 6 x 154, 8-bit colormap, non-interlaced

root@test:/usr/share/mplayer/skins/clearplayer# for FILE in *.png ; do sudo convert $FILE -define png:format=png24 $FILE; done

root@desk:/usr/share/mplayer/skins/clearplayer# file *png
button_forward.png: PNG image data, 39 x 126, 8-bit/color RGB, non-interlaced
button_load.png: PNG image data, 39 x 126, 8-bit/color RGB, non-interlaced
button_next.png: PNG image data, 39 x 126, 8-bit/color RGB, non-interlaced
button_pause.png: PNG image data, 39 x 126, 8-bit/color RGB, non-interlaced
button_play.png: PNG image data, 39 x 126, 8-bit/color RGB, non-interlaced
button.png: PNG image data, 39 x 126, 8-bit/color RGB, non-interlaced
button_prev.png: PNG image data, 39 x 126, 8-bit/color RGB, non-interlaced
button_rewind.png: PNG image data, 39 x 126, 8-bit/color RGB, non-interlaced
button_stop.png: PNG image data, 39 x 126, 8-bit/color RGB, non-interlaced
font.png: PNG image data, 171 x 48, 8-bit/color RGB, non-interlaced
main.png: PNG image data, 380 x 115, 8-bit/color RGB, non-interlaced
mute.png: PNG image data, 10 x 51, 8-bit/color RGB, non-interlaced
pos.png: PNG image data, 27 x 45, 8-bit/color RGB, non-interlaced
sub.png: PNG image data, 372 x 286, 8-bit/color RGB, non-interlaced
vol.png: PNG image data, 18 x 42, 8-bit/color RGB, non-interlaced
waves.png: PNG image data, 6 x 154, 8-bit/color RGB, non-interlaced
root@test:/usr/share/mplayer/skins/clearplayer#

I can start gmplayer now, issue fixed!

$ gmplayer
MPlayer 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Gtk-Message: 01:42:09.749: Failed to load module "canberra-gtk-module"
Sk...

Read more...

Revision history for this message
Ian Molton (spyro2) wrote :

Confirmed on 18.04 and the above fix (although I changed the path to /usr/share/mplayer/skins/default on my system) worked for me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.