xbmc PRE-11.0 Git:bc57d59, cannot unmount a usb stick from where I played a file
#1
Update:
please see [LINUX] xbmc PRE-11.0 Git:50f0233, cannot unmount an usb stick after playing a file. for an updated version of this thread.

Problem: Cannot unmount a usb memory stick from where I played a media, a song, after I stopped playing.

Can unmount if xbmc is browsing only, eg. not playing anything.

Procedure followed, on xbmc-standalone up and running, Confluence skin.
  1. enable debug log
  2. Insert a usb stick
  3. Select the just automounted device in 'Video > Files'.
  4. Play a Video, stop playing with the usual commands,
  5. backspace to the main Video > Files dialog, try to unmount via 'Context Menu > Remove safely' : removed, no problem.
  6. Pull out and reinsert the usb stick,
  7. Now select the just automounted device in 'Music > Files'.
  8. Play a stream, stop playing with the usual commands,
  9. backspace to the main Music > Files dialog, try to unmount via 'Context Menu > Remove safely' : no effect.
  10. disable debug log.
Some more information:
Given mount usb stick point is:
Code:
xbmc@media-player:~/xbmc-git/xbmc$ mount
...
/dev/sdb1 on /media/usb-pen2 type ext3 (rw,nosuid,nodev,uhelper=udisks)
it seems xbmc keeps a file opened even though the player is not working, preventing the unmount:
Code:
xbmc@media-player:~$ lsof /dev/sdb1
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
xbmc.bin 2028 xbmc   40r   REG   8,17  4236000 228409 /media/usb-pen2/home/beppe/Musica/BGA/TSOTTC.ogg
It appears the file is not released by xbmc, e.g. closed, and it seems to happen for audio files only.
I don't know if it happens for file types other than '.ogg'.

Now the scene description
=========================

Hardware: Asus AT3IONT-I DELUXE

From the first line of xbmc log:
Code:
XBMC, Platform: Linux (Ubuntu 10.10, 2.6.35-25-generic x86_64). Built on Feb 19 2011 (Git:bc57d59)
Ubuntu 10.10 up to date 2011-02-18

xbmc is built from git, installed with make install.
The configure log, obtained with the following command lines:
Code:
./bootstrap
./configure --prefix=/opt/xbmc-devel --disable-debug --enable-gl --disable-gles --enable-vdpau --disable-vaapi --disable-vdadecoder --disable-openmax --disable-tegra --disable-profiling --enable-joystick --enable-xrandr --enable-goom --enable-pulse --enable-rtmp --enable-ffmpeg-libvorbis --disable-mid --enable-hal --enable-avahi --disable-asap-codec --enable-webserver --disable-libdts --disable-liba52 --disable-pulse --enable-non-free CFLAGS="" CXXFLAGS=""
xbmc@media-player:~/xbmc-git/xbmc$
can be seen here:
http://pastebin.ubuntu.com/569126

I did a:
Code:
make clean
then I rebuilt and installed with:
Code:
sudo make install'
The full xbmc log of the test run described above, with debug enabled from the UI, can be seen here:
http://pastebin.ubuntu.com/569127

Let me know if any other information is needed.
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc PRE-11.0 Git:bc57d59, cannot unmount a usb stick from where I played a file0