LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-03-2008, 09:41 PM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Rep: Reputation: 38
Desktop crashes when I close Amarok


Using Slackware 12
Desktop KDE

This week I've been having problems with my Desktop.
When I close Amarok the desktop crashes. I then have to type "startx' to get the Desktop back up.
 
Old 05-03-2008, 10:03 PM   #2
Smedley
Registered User
 
Registered: Apr 2008
Distribution: Slackware
Posts: 74

Rep: Reputation: 15
Quote:
Originally Posted by JosephS View Post
Using Slackware 12
Desktop KDE

This week I've been having problems with my Desktop.
When I close Amarok the desktop crashes. I then have to type "startx' to get the Desktop back up.
What have you done lately? Installed new/upgraded packages? New video driver? Tweaked any config files? Compiz or KDE's built in translucency being used?

You need to give us more info in order to help you out.
 
Old 05-03-2008, 10:27 PM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
JosephS, is Amarok being loaded at startup automatically (ie there is a icon in your taskbar in KDE) or are you launching it manually? By "close Amarok" do you mean just clicking the "X" and therefore returning it to the taskbar or physically closing it through Engage>Quit (or right-clicking the taskbar icon>Quit or some such thing)? If it's loading automatically I would try to stop it and launch it manually and see if closing it still brings down the system. If it is being loaded manually, then try not closing it and just logging out of KDE to return to the console, followed by starting X again to see if the problem persists.

You may wish to backup your ~/.kde/share/apps/amarok folder and then deleting ~/.kde/share/apps/amarok, and then reloading it to see if that helps (ie maybe a configuration file is messed up for whatever reason) or even your entire ~/.kde folder (make sure you back them up -- then you can just replace them and your Amarok/KDE setup will return to its previous state). That will at least determine whether it's a configuration error or something else.

Smedley's questions also need to be answered. It's usually strange for things to "all of a sudden" stop working, with reproducible errors. Generally SOMETHING had to change for such a thing to occur and be reproducible.

[edit]You should also check /var/log/* to see if you find any errors (in particular, /var/log/Xorg.*). Try starting Amarok from a terminal and see if there are any errors during usage, or if anything flashes on the screen when you close it (before it brings down KDE, for example). You may also wish to try starting XFCE using `startxfce` (if you have XFCE installed, that is) and launching Amarok from there (from a terminal). If there are errors, or if still brings down XFCE, then you've got a more serious problem with Amarok (corruption of the database which can't be written to on exit? Corruption of a binary or configuration file?).[/edit]

Last edited by T3slider; 05-03-2008 at 10:31 PM.
 
Old 05-04-2008, 09:31 AM   #4
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
The only thing I've done is upgrade packages; I changed the file.new files in /etc to file.
I load Amarok manually.

Quote:
Compiz or KDE's built in translucency being used?
No idea.

Quote:
If it is being loaded manually, then try not closing it and just logging out of KDE to return to the c
onsole, followed by starting X again to see if the problem persists.
Didn't help.

Crashing has happened through
Code:
engage > quit
as well as
Code:
right clicking the icon
and choosing quit.
I tried closing Amarok last evening and this morning and it closes at times
without causing problems and at other times it crashes the Desktop.

Quote:
You may wish to backup your ~/.kde/share/apps/amarok folder and then deleting ~/.kde/share/apps/amarok
, and then reloading it to see if that helps (ie maybe a configuration file is messed up for whatever
reason) or even your entire ~/.kde folder (make sure you back them up -- then you can just replace the
m and your Amarok/KDE setup will return to its previous state). That will at least determine whether i
t's a configuration error or something else.
That didn't work.

On some applications when I start them from the terminal the program is tied to the terminal:
if I close the terminal it will close the program. Amarok went to the bash-3.1$ prompt after I
opened it and closing the terminal didn't close Amarok.

This is what I got when I started Amarok from the terminal and closed amarok:
Quote:
bash-3.1$ amarok
Amarok: [Loader] Starting amarokapp..
Amarok: [Loader] Don't run gdb, valgrind, etc. against this binary! Use amarokapp.
kdecore (KAction): WARNING: KAction::insertKAccel( kaccel = 0x815b270 ): KAccel object already contains an action name "play_pause"
QLayout "unnamed" added to QVBox "unnamed", which already has a layout
kdecore (KAction): WARNING: KAction::insertKAccel( kaccel = 0x815b270 ): KAccel object already contains an action name "play_pause"
QLayout: Adding KToolBar/mainToolBar (child of QVBox/unnamed) to layout for PlaylistWindow/PlaylistWindow
QObject::connect: Incompatible sender/receiver arguments
StarManager::ratingsColorsChanged() --> ContextBrowser::ratingOrScoreOrLabelsChanged(const QString&)
bash-3.1$ QObject::disconnect: Unexpected null parameter
QObject::connect: Cannot connect (null)::activePartChanged( KParts::Part * ) to KHTMLPart::slotActiveFrameChanged( KParts::Part * )
I looked in /var/log. Didn't see any errors, but didn't really understand it.

Thanks. I appreciate your help.
 
Old 05-04-2008, 12:28 PM   #5
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
What do you mean by "upgrading packages"? Did you upgrade to Slackware 12.1 or did you upgrade a select few packages (and where did you get these packages? Did you build them yourself?)? What packages did you upgrade? Etc. etc. (please be thorough) If you upgraded to 12.1, how did you upgrade? CD/DVD? slackpkg? rsync?

`upgradepkg --reinstall amarok-1.4.9.1-i486-1.tgz` for 12.1 or `upgradepkg --reinstall amarok-1.4.6-i486-1.tgz` for 12.0 might help if Amarok is completely screwed up (or maybe if you upgraded it the file you downloaded was corrupt -- in which case you should redownload the file).

There are tons of things that could go wrong when upgrading packages, especially since I don't know the extent of your upgrades right now.
 
Old 05-04-2008, 06:57 PM   #6
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
I'm using Slackware 12.
I was upgrading with the patches directory.
I reinstalled 'amarok-1.4.6-i486-1.tgz'.
I opened and closed amarok a number of times with no problem. I hope this solved it.

Thanks for help.
 
Old 05-10-2008, 10:06 PM   #7
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
I spoke too soon. Amarok is still crashing at times.
Is there anything else to try, or will I have to reinstall Slackware (I hope not)?
 
Old 05-10-2008, 11:58 PM   #8
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
I really don't have much more advice, unfortunately. The next time it crashes, note the time of the crash and check all of the logs in /var/log/* for any events (in ANY logs there, but especially /var/log/Xorg*) for any events that occurred around that time (plus or minus 2 or 3 minutes I guess). If you can find an error in any log, post it and hopefully it'll provide a clue to the problem -- but if you're unlucky, it may not even generate an error in the logs (that would be bad). Slackware 12.1 is out, so if you ever get really frustrated (ie you can't figure it out) you could try backing up all of your important data and installing 12.1 fresh (and then restoring your data, of course) -- but that's a big undertaking. You *could* also try upgrading, but if 12.0 isn't working 100% accurately, there may be some unpredictable side-effects if you upgrade to 12.1 (on the other hand it may fix the problem). You should backup if you want to try upgrading as well just in case. (Of course, upgrading/reinstalling 12.0/installing 12.1 fresh is a last resort unless you were going to do that anyway)

[edit]There's always the possibility that it's a corrupt database -- but I'm not sure if that would crash Amarok or not. I had some problems with resetting playcounts and disappearing ratings after using SQlite for a while (as my collection of songs grew) and so I switched to MySQL (I had to recompile Amrok using the official SlackBuild script and just add --enable-mysql as a configure option) and haven't had any problems since -- but Amarok never *crashed* on me so I don't know if switching to MySQL (or restarting the SQlite database) would help at all for you. Plus, it's a pain to have to setup your entire music collection again, especially if you use the ratings system.[/edit]

Last edited by T3slider; 05-11-2008 at 12:04 AM.
 
Old 05-12-2008, 07:19 AM   #9
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
I looked in /var/log/ when Amarok crashed again; didn't find anything. I also used
Code:
grep -i amarok /var/log/*
.

I thought I would try the suggestion you gave about data bases.
Quote:
switching to MySQL (or restarting the SQlite database)
Which script did you use?
I went to slackbuilds.org and did a search. I didn't find a script for amarok. I found the following:
Quote:
MySQL-python Development 1.2.2 12.0
mysqlcc Development 0.9.8 12.0
nss-mysql Libraries 1.0 12.0
I'm also unsure about how to restart SQlite.

If this doesn't work I'll try installing Slackware 12.1

Thanks for help.
 
Old 05-12-2008, 01:25 PM   #10
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
The amarok build script is just the official one from Pat, located here (you should download everything in this directory): http://slackware.osuosl.org/slackwar...ce/kde/amarok/

However, it references the ../KDE.options file, so you should download that: http://slackware.osuosl.org/slackwar...de/KDE.options

You should modify the local.options file and change the BUILD variable to 2 instead of 1 (so the package you create will be different than the original package naming, and so upgradepkg will work as expected). If you download everything (including KDE.options) to the same directory, a modified amarok.SlackBuild that would properly enable MySQL support is shown below:
Code:
#!/bin/sh
CWD=`pwd`
TMP=/tmp
PKG=$TMP/package-amarok

# Set the config option variables if they are not already set:
if [ -r ./KDE.options ]; then
  . ./KDE.options
fi

# The global options may be overridden here (if needed):
if [ -r ./local.options ]; then
  . ./local.options
fi

rm -rf $PKG
mkdir -p $PKG/usr

# Avoid a version number in .la files:
if [ -d /usr/lib/qt ]; then
  QTDIR=/usr/lib/qt
fi
cd $TMP
echo "Building amarok-$VERSION.tar.bz2..."
tar xjvf $CWD/amarok-$VERSION.tar.bz2

# I *hate* it when an "a" release blows off updating the directory name.  Grrrrrrrrrrrrrrrr.
# Commented out post 1.4.0a...
#cd amarok-1.4.0 || exit 1
cd amarok-$VERSION
chown -R root:root .
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc/kde \
  --enable-mysql \
  --with-xinerama \
  --with-libnjb \
  --with-libmtp \
  --with-libgpod \
  --with-libkarma \
  --disable-debug \
  --program-prefix="" \
  --program-suffix="" \
  --build=$TARGET-slackware-linux
make $NUMJOBS || exit 1
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/amarok-$VERSION
cp -a \
  AUTHORS COPYING INSTALL README TODO \
  $PKG/usr/doc/amarok-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
if [ -d $PKG/usr/man ]; then
  gzip -9 $PKG/usr/man/man?/*
fi

cd $PKG
makepkg -l y -c n ../amarok-$VERSION-$ARCH-$BUILD.tgz
All I did was change ../KDE.options to ./KDE.options (so you don't have to put KDE.options in the directory below the amarok build directory and instead can throw it in the same directory) and added --enable-mysql to the configure options.

After recompiling, run `upgradepkg amarok-1.4.6-i486-2.tgz` to upgrade the existing package with your package. To set up MySQL in Amarok, see here: http://amarok.kde.org/wiki/MySQL_HowTo (I only followed the MySQL Setup section and did not convert my old database, but you may wish to try converting the database if you wish -- though results may be unpredictable). You can also safely ignore step 1. When you've created a MySQL database and user for Amarok, you must tell Amarok to use this MySQL database. In Amarok, click "Settings">"Configure Amarok">"Collection". Set the Database option to MySQL. The hostname should be localhost, the port 3306, the database and user amarok (assuming that's what you named your user and database in MySQL) and your password should be the amarok MySQL user's password.

Good luck -- if that doesn't help I don't know what to suggest other than upgrading/installing fresh.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Amarok crashes desktop on Suse 10.1 shame SUSE / openSUSE 2 07-01-2006 02:35 PM
When an application in suse CRASHES then how do I close it?? Bob H Linux - Newbie 7 02-02-2006 03:02 AM
System crashes when i close X11 dasy2k1 Slackware 23 12-03-2005 07:28 PM
X crashes when i close a window slackinblack Linux - Software 1 12-05-2004 09:32 AM
X server crashes on close mtyrce Linux - Software 3 07-09-2004 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration