Announcement

News: Chakra 2013.03 Benz Released: Release Notes - Download - A good place to start: Beginner's Guide - For pasting any code/info please use paste.chakra. Please read Forum Etiquette.

#1 2010-02-14 12:14:07

fettouhi
Enthusiast
Registered: 2009-01-24
Posts: 179

moodbar, amarok broken in KDEmod 4.4

Ever since I upgraded to 4.4 I can't make any new mood files for my collection. When I use the script from the amarok wiki I get the error:

[af@andre ~]$ cd Music
[af@andre Music]$ sh moodbar.sh
**                             
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())                                                           
moodbar.sh: line 20: 24002 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"                                                                   
**                                                                     
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())                                                           
moodbar.sh: line 20: 24006 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"                                                                   
**                                                                     
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())                                                           
moodbar.sh: line 20: 24010 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"                                                                   
**                                                                     
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())                                                           
moodbar.sh: line 20: 24014 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"                                                                   
**                                                                     
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())                                                           
moodbar.sh: line 20: 24018 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"                                                                   
**                                                                     
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())                                                           
moodbar.sh: line 20: 24022 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"                                                                   
**                                                                     
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())                                                           
moodbar.sh: line 20: 24026 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"                                                                   
**                                                                     
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())                                                           
moodbar.sh: line 20: 24030 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"                                                                   
**                                                                     
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())                                                           
moodbar.sh: line 20: 24034 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"                                                                   
**                                                                     
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())                                                           
moodbar.sh: line 20: 24038 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"                                                                   
**                                                                     
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())                                                           
moodbar.sh: line 20: 24042 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"                                                                   
**                                                                     
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())                                                           
moodbar.sh: line 20: 24046 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"                                                                   
**                                                                     
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())                                                           
moodbar.sh: line 20: 24050 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"                                                                   
**                                                                     
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())
moodbar.sh: line 20: 24054 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"
**
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())
moodbar.sh: line 20: 24058 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"
**
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())
moodbar.sh: line 20: 24062 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"
**
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())
moodbar.sh: line 20: 24066 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"
**
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())
moodbar.sh: line 20:  3845 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"
**
GStreamer:ERROR:gst.c:580:init_pre: assertion failed: (g_thread_get_initialized ())
moodbar.sh: line 20:  5131 Afbrudt (SIGABRT)       moodbar -o "$OUTF" "$i"

Anybody else having issues making mood files with moodbar? Old mood files work fine in amarok though.

Offline

#2 2010-02-14 18:39:58

tuxador
Member
From: algeria
Registered: 2010-01-16
Posts: 25

Re: moodbar, amarok broken in KDEmod 4.4

try to run amarok with xine backend; i guess it works well on kde (kdemod)

Offline

#3 2010-02-14 21:04:54

fettouhi
Enthusiast
Registered: 2009-01-24
Posts: 179

Re: moodbar, amarok broken in KDEmod 4.4

Nope doesn't help.

Regards

André

Offline

#4 2010-02-15 11:50:13

Marvn
Enthusiast
From: Prague
Registered: 2009-01-21
Posts: 103

Re: moodbar, amarok broken in KDEmod 4.4

i have this problem too, i'll look into it and post here if i find sth..

tuxador> this isn't problem with amarok wink

Last edited by Marvn (2010-02-15 11:52:50)

Offline

#5 2010-02-15 12:02:02

Marvn
Enthusiast
From: Prague
Registered: 2009-01-21
Posts: 103

Re: moodbar, amarok broken in KDEmod 4.4

ok, i tried to rebuild moodbar, but with no effect
btw. i don't think this is related to kde in any way, imo it's broken after saturday's gstreamer upgrade

[2010-02-13 08:31] upgraded gstreamer0.10 (0.10.25-1 -> 0.10.26-1)
[2010-02-13 08:31] upgraded gstreamer0.10-base (0.10.25-1 -> 0.10.26-1)
[2010-02-13 08:31] upgraded gstreamer0.10-base-plugins (0.10.25-1 -> 0.10.26-1)
[2010-02-13 08:31] upgraded gstreamer0.10-good (0.10.17-2 -> 0.10.18-1)
[2010-02-13 08:31] upgraded gstreamer0.10-good-plugins (0.10.17-2 -> 0.10.18-1)

i guess that we have to wait for new version of gstreamer/moodbar or downgrade these pkgs

Last edited by Marvn (2010-02-15 14:08:57)

Offline

#6 2010-02-15 13:52:46

fettouhi
Enthusiast
Registered: 2009-01-24
Posts: 179

Re: moodbar, amarok broken in KDEmod 4.4

I missed that gstreamer also was updated. I think I'll make a bug report over at arch for gstreamer.

Offline

#7 2010-02-15 14:37:02

ChemBro
Enthusiast
Registered: 2008-12-25
Posts: 199

Re: moodbar, amarok broken in KDEmod 4.4

Do you use kdemod's (old) amarok or arch's amarok?

Offline

#8 2010-02-15 15:20:53

fettouhi
Enthusiast
Registered: 2009-01-24
Posts: 179

Re: moodbar, amarok broken in KDEmod 4.4

Here is the link to the bug report I made on arch

http://bugs.archlinux.org/task/18341?pr … &sort=desc

seems like it is an issue with gstreamer and some changes that where made recently.

@ChemBro: I use the latest amarok meaning version 2.2.2.

Offline

#9 2010-02-15 17:36:55

Marvn
Enthusiast
From: Prague
Registered: 2009-01-21
Posts: 103

Re: moodbar, amarok broken in KDEmod 4.4

ok,  from this bugreport

Moodbar should be patched. In analyzer/main.c on line 264, before the call to g_option_context_new(), you should add "g_thread_init(NULL);" to fix this bug. Please file the bug upstream at moodbar also, as it's not doing things correct.

so i've edited source, recompiled and moodbar works again here. you can do as i did, or just wait until aur packager will make patch and include it in PKGBUILD

Last edited by Marvn (2010-02-15 17:41:59)

Offline

#10 2010-02-15 19:59:32

fettouhi
Enthusiast
Registered: 2009-01-24
Posts: 179

Re: moodbar, amarok broken in KDEmod 4.4

I maintain the package in AUR. If someone wants to help me fix the package that would be great. I'm not very strong in C++.

Offline

#11 2010-02-15 20:28:21

hash
[Polish translator]
From: Poland
Registered: 2008-12-19
Posts: 175

Re: moodbar, amarok broken in KDEmod 4.4

I've created a patchfile based on the posts above. You can add it to your AUR package. Please note, i haven't tested if the above fix works.

http://omploader.org/vM2tjdA/moodbar.patch

Offline

#12 2010-02-15 20:32:48

Marvn
Enthusiast
From: Prague
Registered: 2009-01-21
Posts: 103

Re: moodbar, amarok broken in KDEmod 4.4

ok, PKGBUILD

pkgname=moodbar
pkgver=0.1.2
pkgrel=6
pkgdesc="moodbar binaries and script for Amarok"
arch=(i686 x86_64)
url="http://pwsp.net/~qbob/"
license=('GPL')
depends=('gstreamer0.10' 'fftw' 'gstreamer0.10-bad-plugins' 'gstreamer0.10-good-plugins' 'gstreamer0.10-ugly-plugins' 'gstreamer0.10-ffmpeg' 'gstreamer0.10-base-plugins')
makedepends=('pkgconfig' 'make')
source=("http://pwsp.net/~qbob/${pkgname}-${pkgver}.tar.gz"
        "analyzer.patch")
md5sums=('28c8eb65e83b30f71b84be4fab949360'
         '9d21887785ed95f3deb25c1fe56d8a4d')

build() {

#  patch -Np1 -i "${srcdir}/analyzer.patch" || return 1

  cd $startdir/src/${pkgname}-${pkgver}
  cp ../analyzer.patch .
  patch -p1 -i analyzer.patch || return 1
  ./configure --prefix=`pkg-config --variable=prefix gstreamer-0.10` || return 1
  make || return 1
  make DESTDIR="$startdir/pkg/" install || return 1
}

and analyzer.patch

*** a/analyzer/main.c	2010-02-15 20:13:47.000000000 +0100
--- b/analyzer/main.c	2010-02-15 17:31:55.000000000 +0100
***************
*** 262,267 ****
--- 262,268 ----
    GOptionContext *ctx;
    GError *err = NULL;
  
+   g_thread_init(NULL);
    ctx = g_option_context_new ("[INFILE] - Run moodbar analyzer");
    g_option_context_add_group (ctx, gst_init_get_option_group ());
    g_option_context_add_main_entries (ctx, entries, NULL);

it's kinda dirty and as i see, late...but enjoy if you wish smile

Last edited by Marvn (2010-02-15 20:33:26)

Offline

#13 2010-02-15 21:50:14

fettouhi
Enthusiast
Registered: 2009-01-24
Posts: 179

Re: moodbar, amarok broken in KDEmod 4.4

Fixed the package with the analyzer patch! Many thanks to both hash ans Marvn.

http://aur.archlinux.org/packages.php?ID=6552

Offline

#14 2010-02-17 20:28:11

tetris4
[Packager-Admin]
From: Thessaloniki, Greece
Registered: 2009-12-11
Posts: 3,169
Website

Re: moodbar, amarok broken in KDEmod 4.4

I used yaourt to install this, then ran Amarok 2.2.2 and enabled moodbar but nothing happens..

It's the first time I (try to) use moodbar so am I missing smg here?

Offline

#15 2010-02-18 00:44:18

bregol
Newbie
From: The state of insanity
Registered: 2009-02-04
Posts: 6

Re: moodbar, amarok broken in KDEmod 4.4

You have to make the mood files first, as Amarok no longer tells moodbar to generate them.
http://amarok.kde.org/wiki/Moodbar#Mood … ion_Script

There are scripts here (for single core and mulit-core CPU) that will make the .mood files for you.

Offline

#16 2010-02-18 00:55:19

tetris4
[Packager-Admin]
From: Thessaloniki, Greece
Registered: 2009-12-11
Posts: 3,169
Website

Re: moodbar, amarok broken in KDEmod 4.4

yup, I had seen the script but thought Amarok would do it automatically..

thank you bregol for the info!

Offline

Board footer

Powered by FluxBB 1.4.8