amarokapp/amarok doesn't start up as a normal user, but works when started as root using sudo

Bug #135365 reported by toke
4
Affects Status Importance Assigned to Milestone
amarok (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: amarok

Amarok version is 1.4.5
OS Ubuntu Feisty Fawn 7.04

amarokapp/amarok doesn't start up as a normal user, but works when started as root using sudo

amarokapp gives this:
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device

and amarok gives:
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
Amarok: [Loader] Starting amarokapp..
Amarok: [Loader] Don't run gdb, valgrind, etc. against this binary! Use amarokapp.
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device

Revision history for this message
Jeff Mitchell (jefferai) wrote :

Don't know, the output isn't helpful (note to Ubuntu guys: why do all of the people posting console output on Launchpad have those X Errors?)

Make sure your normal user has permissions to access all required resources (for instance, the /dev nodes related to ALSA, etc.)

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

unsure. Sounds like a config problem. Does the problem still occur if you move ~/.kde/share/apps/amarok/ and ~/.kde/share/config/amarok* out of the way?

Changed in amarok:
status: New → Incomplete
Revision history for this message
Jeff Mitchell (jefferai) wrote :

Also, do you get all those X Errors when starting Amarok as root?

Revision history for this message
toke (touko-herranen) wrote :

Sarah:
there is no directory amarok in ~/kde/share/apps/

And Jeff:
Yes, I do.

Revision history for this message
Jeff Mitchell (jefferai) wrote :

Is there a ~/.kde/share/config/amarokrc?

Revision history for this message
toke (touko-herranen) wrote :

Jeff, No there is not such a directory or any amarok* directory in .kde directory

Revision history for this message
Daniel Hahler (blueyed) wrote :

"X Error: BadDevice" can be ignored (bug 42553).
The error must be something different.

What does it do, if you try to start it? Just nothing?
Have you tried "strace amarokapp" to see what it tries to access?

Revision history for this message
toke (touko-herranen) wrote :

dAniel, i have tried strace amarokapp but it starts listing and won't stop until i close the console. It opens blue screen "amarok 1.4 rediscover your music fast forward" as it normally should but then it does nothing. It jams right there and does nothing.

There's a little cut of the strace amarokapp

.}) = 0
access("/home/toke/.kde/share/config/amarokrc", W_OK) = -1 ENOENT (No such file or directory)
access("/home/toke/.kde/share/config/amarokrc", F_OK) = -1 ENOENT (No such file or directory)
access("/home/toke/.kde/share/config", W_OK) = 0
lstat64("/home/toke/.kde/share/config/amarokrc", 0x80bb340) = -1 ENOENT (No such file or directory)
stat64("/home/toke/.kde/share/config/amarokrc", 0x80bb340) = -1 ENOENT (No such file or directory)
lstat64("/home/toke/.kde/share/config/amarokrc", 0x80bb340) = -1 ENOENT (No such file or directory)
stat64("/home/toke/.kde/share/config/amarokrc", 0x80bb340) = -1 ENOENT (No such file or directory)

Revision history for this message
Jeff Mitchell (jefferai) wrote :

It looks like it may not be able to write its config file. Are you sure that permissions in ~/.kde are sane?

Revision history for this message
toke (touko-herranen) wrote :

Jeff, no I'm not sure because I don't know what you mean. (I'm new to ubuntu)

Revision history for this message
Jeff Mitchell (jefferai) wrote :

Are you the owner for every single file? Do you have read-only permissions where you should have write permissions?

Try:

chown -R <yourusername>:<yourdefaultgroup> ~/.kde

See if you get any errors.

Try:

chmod -R u+rw ~/.kde/share/config
chmod -R u+w ~/.kde/share/apps

See if that makes any difference.

Revision history for this message
toke (touko-herranen) wrote :

Many Many thanks to everyone but especially to Jeff. This solved the problem. Now it works as it should be working.

Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks toke, closing as fixed.

Btw, those X BadDevice errors should also be gone now, as 42553 is fixed.

Changed in amarok:
status: Incomplete → Fix Released
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.