Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102662 - media-sound/amarok-1.3*: crash after random interval w/ gstreamer/xine/arts engines
Summary: media-sound/amarok-1.3*: crash after random interval w/ gstreamer/xine/arts e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL: http://bugs.kde.org/show_bug.cgi?id=1...
Whiteboard: Might be fixed by -fno-inline
Keywords:
: 109762 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-15 17:39 UTC by Olivier Bilodeau
Modified: 2005-12-30 14:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Bilodeau 2005-08-15 17:39:02 UTC
Amarok 1.3 crashes after startup after a small interval of time passed even if 
i'm not playing any music.  I was able to rescan my collection so I'm pretty 
sure it's not a collection formatting issue (like mentionned on their FAQ).  I 
tried running it with the three engines I had: xine, gstreamer and aRts, 
restarting between switches and I had the same results.

same version (1.3) works fine on my x86 laptop (~x86) using gstreamer back-end

I also tried following Gentoo's Bug Reporting Guide to realize that it's working 
when I emerge it with: USE="debug" FEATURES="nostrip" so I can't really help 
further.

Suggested workaround: emerge with USE="debug" and FEATURES="nostrip" so you can 
have it working fine

Reproducible: Always
Steps to Reproduce:
1. run amarok
2. wait a small interval of time


Actual Results:  
amarok crashes with this message:
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  7
  Minor opcode:  0
  Resource id:  0x2600014


Expected Results:  
run fine

Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.5-r0, 2.6.11-
gentoo-r6becks x86_64)
=================================================================
System uname: 2.6.11-gentoo-r6becks x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /
usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/
pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo ftp://
mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib acpi alsa arts avi berkdb bitmap-fonts bonobo cdr crypt cups curl 
doc dvd dvdread eds encode esd fam fame ffmpeg flac foomaticdb fortran gd gdbm gif 
gimpprint gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib inkjar 
ipv6 java joystick jpeg junit kde lzw lzw-tiff mad matroska mikmod mng motif mozilla mp3 
mpeg ncurses nls offensive ogg oggvorbis opengl pam pdflib perl plugin png ppds python qt 
quicktime readline real ruby samba sdl slang spell ssl svg tcltk tcpd theora tiff 
truetype-fonts type1-fonts unicode usb userlocales utf8 v4l v4l2 visualization vorbis 
xine xinerama xml xml2 xmms xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-18 06:23:16 UTC
Have you tried deleting/recreating the collection from scratch ? 
 
Comment 2 Olivier Bilodeau 2005-08-18 10:01:19 UTC
just tried resetting all amarok's configuration (deleted .kde/share/apps/amarok/
* and .kde/share/config/amarokrc) and built an empty collection with the wizard.

It crashed after a few minutes outputting:
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  7
  Minor opcode:  0
  Resource id:  0x2600143

IMO this bug is amd64 specific since my x86 laptop runs fine w/ amarok 1.3.
The strange thing is that when the debug USE flag is set, it runs fine.

Dunno what to try.. if you have any ideas, go ahead
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-18 10:27:30 UTC
It works fine here on amd64... I don't really know what that error is supposed 
to mean :/ 
I'll try to search for this asap. 
Comment 4 Olivier Bilodeau 2005-08-18 10:43:07 UTC
don't lose time with this, if I'm the only one who experienced this then forget 
it

when a new version will be out, i'll try it again and report again if it's still 
broken but for now i'll keep it emerged in debug mode
Comment 5 Dan 2005-09-06 13:20:07 UTC
There are a few bugs that are mystifyings upstream with this type of problem... 
there is one with xine also... it is really hard to figure out what causes it 
when debugging symbols and the like fixes it... Any additional info that you 
could provide to upstream (This is a bug in program and not in ebuild) would be 
helpful.... #amaroK on freenode or amarok-devel@lists.sf.net  
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-09-08 15:49:18 UTC
Is still a problem with 1.3.1-r1? 
Comment 7 Olivier Bilodeau 2005-09-21 07:46:48 UTC
I'm still experiencing the same problem on amd64 with 1.3.1-r1 and I am now 
emerging 1.3.2.  I will recreate my collection and report if it's still broken.
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-09-22 10:53:04 UTC
Can you try with 1.3.2-r1 ? 
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2005-09-25 12:45:39 UTC
i just started getting this problem with 1.3.2-r1.  previous versions were okay
for me.  i keep getting this:

X Error: BadIDChoice (invalid resource ID chosen for this connection) 14
  Major opcode:  1
  Minor opcode:  0
  Resource id:  0x28002b7
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  18
  Minor opcode:  0
  Resource id:  0x28002b7
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  18
  Minor opcode:  0
  Resource id:  0x28002b7
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  18
  Minor opcode:  0
  Resource id:  0x28002b7

(etc)

X Error: BadIDChoice (invalid resource ID chosen for this connection) 14
  Major opcode:  53
  Minor opcode:  0
  Resource id:  0x28002bb
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode:  72
  Minor opcode:  0
  Resource id:  0x28002bb
X Error: BadIDChoice (invalid resource ID chosen for this connection) 14
  Major opcode:  53
  Minor opcode:  0
  Resource id:  0x28002bc
X Error: BadIDChoice (invalid resource ID chosen for this connection) 14
  Major opcode:  55
  Minor opcode:  0
  Resource id:  0x28002bd
X Error: BadGC (invalid GC parameter) 13
  Major opcode:  72
  Minor opcode:  0
  Resource id:  0x28002bd
X Error: BadGC (invalid GC parameter) 13
  Major opcode:  60
  Minor opcode:  0
  Resource id:  0x28002bd
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  2
  Minor opcode:  0
  Resource id:  0x28002b7
Xlib: unexpected async reply (sequence 0x8b81)!
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2005-09-25 12:51:39 UTC
forgot to mention, i'm using qt-3.3.4-r8 and running on a xfce4 desktop.  


Portage 2.0.52-r1 (default-linux/x86/2005.1, gcc-4.0.2-pre20050917,
glibc-2.3.5.20050722-r0, 2.6.13-ck6 i686)
=================================================================
System uname: 2.6.13-ck6 i686 Mobile Intel(R) Pentium(R) 4 CPU 3.06GHz
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [enabled]
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1, 2.16.91.0.3
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe -mfpmath=sse -fno-ident"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe -mfpmath=sse -fno-ident
-fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/dirtyepic/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa avi bash-completion berkdb bzip2 cddb cdr crypt curl
dbus dts dvd dvdr dvdread exif ffmpeg firefox flac gdbm gif gnutls gphoto2
gstreamer gtk gtk2 hal imagemagick imlib java jpeg mad mmap mmx mng motif mp3
mpeg mpi ncurses nntp nptl nsplugin ogg oggvorbis opengl pcmcia perl pic png
python qt quicktime readline ruby sdl sse sse2 ssl svg tcpd threads tiff
truetype usb vcd vorbis wifi win32codecs xml xml2 xv xvid zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS
Comment 11 Olivier Bilodeau 2005-09-25 13:24:41 UTC
(In reply to comment #8)
> Can you try with 1.3.2-r1 ? 

still the same problem with amarok 1.3.2-r1

QT-3.3.4-r3
Gnome 2.10 desktop
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-14 02:45:01 UTC
1.3.3, still nothing? 
Comment 13 Olivier Bilodeau 2005-10-15 14:44:11 UTC
(In reply to comment #12)
> 1.3.3, still nothing? 

same thing, not working on amd64 unless I USE="debug"
working ok on x86
Comment 14 Olivier Bilodeau 2005-10-26 08:09:41 UTC
still the same with 1.3.5:
- crashing after random interval on amd64 unless I emerge with USE="debug"
- working flawlessly on x86
Comment 15 Dan 2005-10-26 09:04:34 UTC
Hello, 
 
Friendly upstream bug wrangler here. 
 
Firstly, this problem sounds like a problem we have had with hyperthreading in the past, we thought 
we avoided it in 1.3.5 by locking it to the first processor.   
 
Of course, this may not apply to you at all. 
 
Could you please provide us with some more specific information with reguard to the processor you 
are using? does it have hyperthreading? is it dual core? all that fun stuff (maybe just a paste 
of /proc/cpuinfo also.) 
 
Thanks! 
 
Also, this sounds like it may be better handled upstream, as we have had many bugs like this that we 
are wrangling regularly. 
 
If you agree, feel free to open a bug at bugs.kde.org, and leave a comment here with the link to that 
bug. 
Comment 16 Olivier Bilodeau 2005-10-26 16:29:48 UTC
single core amd64, no HT (that i know of) (cat /proc/cpuinfo below)

There are a few reasons why I haven't reported this upstream..  First, bugs.kde.
org scares me, I never reported there and I don't want to do any mistakes..  
There are so many bugs and I don't want to post a duplicate..

Second, I'm not too familiar with backtracing and stuff so I don't want to slow 
anyone down by asking "how do I".. and even then, the bugs doesn't occur when I 
have debugging On so I think it'll be hard to track..

About IRC, I.. never went on IRC since 97.. I'm scared..

Anyway, I'll follow your advice and report this to bugs.kde.org as soon as I get 
sober enough (maybe a few days) I have few days off at university starting now 
so are parties..

Thanks for helping

cat /proc/cpuinfo:
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 4
model name      : AMD Athlon(tm) 64 Processor 3000+
stepping        : 8
cpu MHz         : 2000.148
cache size      : 512 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
bogomips        : 3940.35
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp
Comment 17 Olivier Bilodeau 2005-10-29 12:28:18 UTC
bug reported upstream: http://bugs.kde.org/show_bug.cgi?id=115339
Comment 18 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-02 04:21:58 UTC
Please reply to the question I've posted on the upstream bug, I'm sensing some 
more ALSA problems :| 
 
Comment 19 Stephan Verbücheln 2005-12-08 14:19:32 UTC
i think, the problem is caused by Berkley DB (sys-libs/db), but i am not sure.
Comment 20 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-17 03:38:44 UTC
Can people test rebuilding amarok with the latest version of the ebuild that appends -fno-inline?
It might be solved.

Also remember to have alsa-driver and alsa-lib in sync, using in-kernel alsa 1.0.9 and alsa-lib 1.0.10 *is* an error.
Comment 21 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-18 13:15:10 UTC
*** Bug 109762 has been marked as a duplicate of this bug. ***
Comment 22 Olivier Bilodeau 2005-12-29 13:18:47 UTC
new ebuild works for me, no more crashes

Thanks!
Comment 23 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-30 14:39:40 UTC
Considering fixed.