smplayer GUI hangs with 100% CPU usage when trying to play anything

Bug #878000 reported by Roman
82
This bug affects 18 people
Affects Status Importance Assigned to Milestone
smplayer (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Release: KUbuntu 11.10
smplayer version: 0.6.9-4

Smplayer is basically unusable in the new ubuntu release. When I try to play anything with it, it hangs and its GUI does not respond to any events (mouse click/move, keyboard commands). It can be only killed. However, it seems that mplayer itself is working, i.e. it plays the movie, but this process is out of any control, I can only wait until the end of the movie. Mplayer also works normally when starting it independently from the command line. When the movie is ended, mplayer stops playing, but smplayer continues to hang until killed.

In the system monitor I see that smplayer process uses 100% CPU and its memory usage grows linearly in time.

I tried to look into the smplayer and mplayer logs, but it was not very easy: when smplayer starts to play something it logs a lot of info and hangs immediatly after that. I see only the last pieces of the logs, apparently nothing unusual. I cannot even copy it in full because these log windows do not respond too.

The logs are ended by the lines:
(smplayer) BaseGui:: resizeWindow:: done: mplayerwindow->size: 400,400
(mplayer) VO: [xv] 400x400 => 400x400 Planar YV12

I tried to change the video driver and to turn on/off KWin compositing, but this makes no difference.

Revision history for this message
Roman (m01brv) wrote :

Some additional info, probably important. I have found exactly one video file in my collection that smplayer can play without freezing. It is a matroska format file (.mkv), while all others are avi. This single file is played flawlessly. But when I convert it to avi using "mencoder -oac copy -ovc copy" it causes freeze as other avi files.

Revision history for this message
Roman (m01brv) wrote :

I need to emphasize that I am using KDE 4.7.1. The issue does not depend on the video card (I tested two intel ones and nvidia, all on different computers). Video files of other formats that I tested (wmv, mpeg) cause the same freezing as avi.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in smplayer (Ubuntu):
status: New → Confirmed
Revision history for this message
Max (maxwux) wrote :

same here

Revision history for this message
Max (maxwux) wrote :

I try smplayer today
the bug fixed..

Revision history for this message
Roman (m01brv) wrote :

No, smplayer still does not work after all today updates (including KDE 4.7.2) and reboot. Same symptoms.

Revision history for this message
erik anderson (v1k1ng1001) wrote :

Having the same problem in Ubuntu 11.10 using Gnome Shell. The only difference is that standard .avi files play fine. It is only when I try to play a HD .mkv file with vdpau that the gui immediately hangs. A week ago everything worked fantastically. Yesterday's update did not help.

Revision history for this message
RickKnight (rick-knight) wrote :

Having the same problem on .avi and .wmv files. Tried installing from SMPlayer source. Same problem. Mplayer works fine.

Revision history for this message
erik anderson (v1k1ng1001) wrote :

Reinstalled Oneiric today. Smplayer will not even open with .avi. With HD .mkv, Smplayer freezes and, if left, crashes the entire desktop.

Revision history for this message
Roman (m01brv) wrote :

I found a workaround.
Go to smplayer settings and set all cache options to zero. This cured the issue for me.
This solution was inspired by the following bug in the smplayer sourceforge.net bug tracker
http://sourceforge.net/tracker/?func=detail&aid=3340564&group_id=185512&atid=913573

Revision history for this message
Roman (m01brv) wrote :

Without cache, however, smplayer offers rather poor video performace. Its remains in fact not usable anyway.

Revision history for this message
danciac (danciac-gmail) wrote :

thanks Roman, that worked for me.

Revision history for this message
wonko (oekj) wrote :

Removing ~/.config/smplayer/ as suggested here: https://bugs.launchpad.net/ubuntu/+source/smplayer/+bug/884761/comments/1 solved it for me.

Revision history for this message
Roman (m01brv) wrote :

With no workarounds, smplayer freezes even when trying to play just a sound-only file (e.g. mp3)

Revision history for this message
rvm (rvm) wrote :

I think this is actually a bug in the mplayer version included in ubuntu 11.10. When using a cache, mplayer reports a huge number of chapters:

ID_CHAPTERS=138401140

SMPlayer freezes because it is trying to populate the chapter menu with millions of items.

I added a workaround for the problem in svn r3663, so SMPlayer doesn't freeze anymore.

Revision history for this message
wonko (oekj) wrote :

Installed the latest version from rvm's ubuntu ppa-repo (ppa:rvm/smplayer), which includes rvm's workaround. Now I can watch movies with cache again - thanks a lot :D

Revision history for this message
Roman (m01brv) wrote :

Confirming, smplayer from ppa works well

Revision history for this message
Roman (m01brv) wrote :

It seems there is no any similar problem in KUbuntu 12.04 beta

madbiologist (me-again)
tags: added: kubuntu oneiric
Changed in smplayer (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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