Totem fails to play anything

Bug #737261 reported by NickNackGus
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
totem (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Binary package hint: totem

I attempted to play my entire playlist, allowing each file to load artist info, in an attempt to delete songs I often skip. The application closed without an error message, and I have not been able to play files since, although I haven't restarted yet. Totem can open, and I can go through the menus, but it can't play anything, and running it from terminal did not help locate the problem. An example output from Terminal:
tim@Tim-Desktop-2:~$ totem
The program 'totem' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
  (Details: serial 123 error_code 2 request_code 133 minor_code 19)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
tim@Tim-Desktop-2:~$ totem --sync
The program 'totem' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
  (Details: serial 126 error_code 2 request_code 133 minor_code 19)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: totem 2.32.0-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-27.48-generic-pae 2.6.35.11
Uname: Linux 2.6.35-27-generic-pae i686
NonfreeKernelModules: fglrx
Architecture: i386
Date: Thu Mar 17 20:45:25 2011
ExecutablePath: /usr/bin/totem
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: totem

Revision history for this message
NickNackGus (nicknackgus) wrote :
Revision history for this message
IKT (ikt) wrote :

Can you play videos in vlc or mplayer?

Just want to know if this is strictly a totem issue.

Changed in totem (Ubuntu):
status: New → Incomplete
Revision history for this message
NickNackGus (nicknackgus) wrote :

I don't know. I got frustrated with my inability to find an application that could play a play-list without taking up the full screen, wound up using Rhythmbox, and restarted. Then Totem worked. Before restarting, I did attempt to use mplayer to extract the audio from a flash file, and only got a data file instead of audio. It is still doing that now. Hope this helps.

Revision history for this message
Prunus dulcis (prunus-dulcis) wrote :

Happens to me as well, and also vlc has issues in 11.04 - so it may be a more generic problem than with totem.
Happens with lots of files - this file triggers the problem too:
http://www.archive.org/download/RogerRamjetInTheCowboy/RogerRamjet008TheCowboy.ogv

totem reports on the command line:
The program 'totem' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
  (Details: serial 128 error_code 2 request_code 133 minor_code 19)

vlc reports on the command line (plays audio but does not show video):
[0x94633a4] signals interface error: signal 17 overriden (0x122d4c0)
[0x94633a4] signals interface error: /usr/lib/libQtCore.so.4(?)[(nil)]

Revision history for this message
Prunus dulcis (prunus-dulcis) wrote :

mplayer does not have any problems playing the files.

Changed in totem (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
NickNackGus (nicknackgus) wrote :

All I had to do was restart. I do occasionally have problems with my graphics, so then I installed "Compiz Fusion Icon". It stays in the task bar, and I can restart my graphics by right clicking it and selecting "reload window manager".

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Hi,

It's hard to tell whether this is still a bug. Were you able to solve the problem by installing extra plugins?

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Changed in totem (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
NickNackGus (nicknackgus) wrote :

I'm not sure if its a bug or not any more. As I said, the problem was fixed with a simple restart. I haven't had the bug about not hearing anything from totem or any other music player recently. Since this was the first time I had seen the bug, I'm not sure I can repeat it either. I also have not attempted to extract audio from video recently, so I don't know if I can do that or not.

I haven't been able to record audio from "wave out" or equivalent, but that's another bug, probably involving my hardware, as XP and Vista also unable to recording from this. This is one of the few times I tried to make Windows slightly more useful, with typical results. :)

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

I can't reproduce this on 11.04 either. I'll leave it at Incomplete unless anyone can come up with a clear set of steps for reproducing the problem in 11.04,

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Revision history for this message
John Drinkwater (johndrinkwater) wrote :

I can't add clear steps to reproduce, but it is happening to me in 11.04.

I *am* using fglrx though, like the initial reporter.

Revision history for this message
NickNackGus (nicknackgus) wrote :

I fixed the problem with a restart when it happened to me in 10.10. You can see if that fixes the problem, or volunteer to run commands to see what's wrong until you NEED to restart.

Changed in totem (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Pedro Villavicencio (pedro) wrote :

could somebody get a new backtrace? please run totem from gdb with --sync ; and break on gdk_x_error() ; then reproduce the bug and get that backtrace, thanks!.

Revision history for this message
pascal (ptrovatelli) wrote :
Download full text (5.2 KiB)

Hi,
I have the same issue.
It happens pretty often.
I usually go around by closing some programs (firefox, virtual box) sometimes that's enough. Otherwise log off / log in always fixes it.
Interestingly, I was able to reproduce this with a mp3!
VLC was working with the MP3, whereas with the movie, VLC can read audio but not video.
Totem was closing right after opening the movie or the mp3

I'm trying to get some debugging trace but it's not working. Can you help me?
I have followed this article http://wiki.debian.org/HowToGetABacktrace
I have installed totem with debugging symbols

However after building totem, I think this didn't work as expected:
dpkg -i totem-dbg_2.32.0-0ubuntu10_amd64.deb
(Lecture de la base de données... 231440 fichiers et répertoires déjà installés.)
Préparation du remplacement de totem-dbg 2.32.0-0ubuntu10 (en utilisant totem-dbg_2.32.0-0ubuntu10_amd64.deb) ...
Dépaquetage de la mise à jour de totem-dbg ...
Paramétrage de totem-dbg (2.32.0-0ubuntu10) ...

file /usr/bin/totem
/usr/bin/totem: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

So I used the totem from the building directory: this one is "not stripped":
file ./debian/totem/usr/bin/totem
./debian/totem/usr/bin/totem: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

So I run gdb
gdb ./totem-2.32.0/debian/totem/usr/bin/totem

But I cannot break on gdk_x_error:
(gdb) break gdk_x_error
Function "gdk_x_error" not defined.

I have tried answering yes to the next question but it's not helping:

Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (gdk_x_error()) pending.

(gdb) run 'somemovie.avi' --sync

[Thread debugging using libthread_db enabled]
[New Thread 0x7fffe8a52700 (LWP 30321)]
[New Thread 0x7fffe7c20700 (LWP 30322)]
[New Thread 0x7fffde6af700 (LWP 30325)]
[New Thread 0x7fffdc875700 (LWP 30326)]
[Thread 0x7fffdc875700 (LWP 30326) exited]
[New Thread 0x7fffdc875700 (LWP 30327)]
[New Thread 0x7fffd6c77700 (LWP 30328)]
[New Thread 0x7fffd24d0700 (LWP 30329)]
[New Thread 0x7fffd0d3c700 (LWP 30330)]
[New Thread 0x7fffd053b700 (LWP 30331)]
[New Thread 0x7fffcb709700 (LWP 30332)]
The program 'totem' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
  (Details: serial 107 error_code 2 request_code 133 minor_code 19)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
[Thread 0x7fffcb709700 (LWP 30332) exited]
[Thread 0x7fffd053b700 (LWP 30331) exited]
[Thread 0x7fffd0d3c700 (LWP 30330) exited]
[Thread 0x7fffdc875700 (LWP 30327) exited]
[Thread 0x7fffde6af700 (LWP 30325) exited]
[Thread 0x7fffe7c20700 (LWP 30322) exited]
[Thread 0x7fffe8a52700 (LWP 30321) exited]
[Thread 0x7fffd24d0...

Read more...

Revision history for this message
pascal (ptrovatelli) wrote :

More info on my config:
I'm using Ubuntu 11.04 with amd64 processor

uname -a
Linux 127.0.0.1 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

I have ATI graphics with the proprietary driver installed.
fglrxinfo
display: :0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 5670
OpenGL version string: 4.1.10665 Compatibility Profile Context

lspci | grep VGA
01:00.0 VGA compatible controller: ATI Technologies Inc Redwood [Radeon HD 5670]

Revision history for this message
pascal (ptrovatelli) wrote :

I realize that I have cut the gdb output: it was able to read the symbols from the binary:
Reading symbols from /home/pascal/totem_test/totem-2.32.0/debian/totem/usr/bin/totem...done.

However I think that the list of memory segments attached to the xorg process is really not normal (see memory_details.txt attached to #13)
It's 1841 chunks of the kind:
00007fcbc1290000 400K rw-s- /dev/ati/card0

After rebooting, I get about 600 of them when I play a movie but they are released when I exit the player.
Those didn't seem to be released ever

Revision history for this message
pascal (ptrovatelli) wrote :

OK last comment; regardless of the result of "smem -t", I summed the chunks from the xorg process pmap that have a "-s" flag (shared)
I get 685MB.
Like I said, I have configured a maximum of 512MB in /proc/sys/kernel/shmmax (default was 256M)

Do you think that might be the problem?
I'll try to switch to 1GB see how it goes.

Revision history for this message
pascal (ptrovatelli) wrote :

Ach sorry, shmmax is the max size of one segment.
My limits are not reached:

ipcs -l

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 524288
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1

Revision history for this message
pascal (ptrovatelli) wrote :

Hi guys.
I was able to find the process that was leaking memory thanks to xrestop: it's gtk-window-decorator
From there I found an open bug:
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/740258

Workaround by Lukáš Chmela (lukaschmela)
[QUOTE]a workaround is to replace gtk-window-

decorator with unity-window-decorator.

You can do it simply by pressing ALT+F2 and typing "gconf-editor", then navigating into "/apps/compiz-1/plugins/decor/screen0/options/" and changing the "command" key to "unity-window-decorator --replace".

Another way, however, non-persistent, is pressing ALT+F2 and typing directly "unity-window-decorator --replace &".
This way, the unity-window decorator would be replaced by the gtk one once Compiz is reloaded meaning that you would need to run this command on every login.
[/QUOTE]

Enjoy

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

[Expired for totem (Ubuntu) because there has been no activity for 60 days.]

Changed in totem (Ubuntu):
status: Incomplete → Expired
Revision history for this message
gnimsh (loochyj) wrote :

For me this was caused by an x11 error: badvalue (integer parameter out of range for operation) 0

I solved it by opening gstreamer-properties and changeing the video plugin to no Xv.

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.