maemo.org Bugzilla – Bug 2965
Media Player doesn't see mp3 files on card (and file manager does)
Last modified: 2009-03-26 18:19:44 UTC
You need to log in before you can comment on or make changes to this bug.
SOFTWARE VERSION: (Control Panel > General > About product) latest OS 2008 version 2.2007.51-3 (updated on 2008-02-19) STEPS TO REPRODUCE THE PROBLEM: Put in 1Gb transcend MMC card fully loaded with mp3s in external/internal slot, start media player. EXPECTED OUTCOME: It says that media player should scan card and some times will pass, but i leave media player for a night and it sees nothing. Same thing was in previous OS release (2.2007.50-2) ACTUAL OUTCOME: media player doesn't see any mp3 file REPRODUCIBILITY: (always/sometimes/once) on my tablet only? EXTRA SOFTWARE INSTALLED: none, clean OS2008. OTHER COMMENTS: File manager see files, media player can play file one by one when i click on them in file manager, but it doesn't scan card. Backup application successfully backuped all on this card and after OS upgrade everything was restored from backup, so the card is working, but media player doesn't scan it. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Hi, i'v been trying to reproduce this problem but with no luck. Could you add some more info, steps or what ever what could help us to reproduce this. Thank you.
There are no specific steps to reproduce this - Media Player in my n800 doesn't scan card. I put card in internal or external slot, file manager see the card and all in it, i can play mp3 files by clicking on them in file manager and they're played by media player, but there is no files in Media Library - Media Player somehow doesn't scan my card or something. How can i add debugging to Media Player operations?
some info on this problem: i've installed Maemo Music Player Client, and if i understand it right, this client must connect to some daemon to localhost:6600 - but he doesn't connect to daemon. tell me, how media player should find music? via some daemon? i have ssh access to tablet so i'm ready to give you output of any command (that would run in tablet). for now here is "ps ax": Nokia-N800-51-3:/etc# ps ax PID Uid VSZ Stat Command 1 root 1468 SW init [2] 2 root SWN [ksoftirqd/0] 3 root SW [watchdog/0] 4 root SW< [events/0] 5 root SW< [khelper] 6 root SW< [kthread] 14 root SW< [dvfs/0] 65 root SW< [kblockd/0] 66 root SW< [kseriod] 78 root SW< [OMAP McSPI/0] 85 root SW< [ksuspend_usbd] 88 root SW< [khubd] 112 root SW [pdflush] 113 root SW [pdflush] 114 root SW< [kswapd0] 115 root SW< [aio/0] 118 root SW< [mipid_esd] 237 root SW [mtdblockd] 279 root SW< [kondemand/0] 280 root SW< [kmmcd] 291 root SW< [krfcommd] 302 root SW< [mmcqd] 330 root 1108 SW< dsme -d -l syslog -v 4 -p /usr/lib/dsme/libstartup.so 338 root 776 SW /usr/bin/bme_RX-34 340 root 564 SW /usr/sbin/kicker 368 root SW< [cx3110x] 388 root SWN [jffs2_gcd_mtd4] 420 root 1576 SW< /sbin/udevd --daemon 603 messagebus 2312 SW< /usr/bin/dbus-daemon --system 651 haldaemon 3972 SW /usr/sbin/hald 652 root 2800 SW hald-runner 681 root 2436 SW /usr/lib/hal/hald-addon-omap-gpio 682 root 2436 SW /usr/lib/hal/hald-addon-omap-gpio 683 root 2436 SW /usr/lib/hal/hald-addon-omap-gpio 684 root 2436 SW /usr/lib/hal/hald-addon-omap-gpio 697 root 2940 SW hald-addon-input: Listening on /dev/input/event2 /dev 701 root 2436 SW /usr/lib/hal/hald-addon-mmc 702 root 2436 SW /usr/lib/hal/hald-addon-mmc 704 root 2952 SW /usr/lib/hal/hald-addon-cpufreq 719 root 3168 SW /usr/sbin/sshd 726 root 3636 SW< /sbin/mce --force-syslog 728 messagebus 3324 SW /usr/lib/gconf2/gconfd-2 732 root 11016 SW< /usr/bin/Xomap -mouse tslib -nozap -dpi 96 -wr -nolis 760 user 1312 SW< /usr/sbin/temp-reaper 763 user 2048 SW< /usr/bin/dbus-daemon --session 767 user 7100 SW< /usr/lib/sapwood/sapwood-server 771 user 6520 SW< /usr/bin/matchbox-window-manager -theme echo -use_tit 777 user 7416 SW< /usr/bin/osso-media-server 784 root SW< [dsp/0] 787 root SW< [dsp/0] 790 root 2952 SW /usr/sbin/dsp_dld -p --disable-restart -c /lib/dsp/ds 796 root 2792 SW< /usr/bin/bme-dbus-proxy -N 855 root 4804 SW /usr/sbin/multimediad 860 root 2176 SW< /usr/bin/esd 889 systemui 24788 SW< /usr/bin/systemui 894 nobody 1812 SW< /usr/sbin/dnsmasq -k -i lo -a 127.0.0.1 -z 934 user 5228 SW /usr/bin/alarmd 952 root 5948 SW< /usr/sbin/hulda 953 root 3040 SW< /usr/sbin/hulda 958 user 16040 SWN /usr/bin/metalayer-crawler -F 965 user 8740 SW /usr/libexec/gnome-vfs-daemon 999 root SW< [file-storage-ga] 1003 haldaemon 2508 SW hald-addon-usb-cable: listening on /sys/devices/plat 1011 root 8720 SW< /usr/sbin/ke-recv 1028 user 19964 SW< /usr/bin/maemo-launcher --daemon --send-app-died --bo 1058 user 1448 SW< /usr/bin/hildon-input-method 1059 user 28400 SW< /usr/bin/hildon-input-method 1063 user 3916 SW< /usr/bin/clipboard-manager 1103 user 1448 SW< /usr/bin/hildon-desktop 1104 user 32872 SW< /usr/bin/hildon-desktop 1117 root 2520 SW< /usr/sbin/hcid -n -x -s 1122 root 2452 SW< /usr/lib/bluetooth/bluetoothd-service-audio 1123 root 2412 SW< /usr/lib/bluetooth/bluetoothd-service-input 1126 root 2924 SW< /usr/bin/btcond -l 1130 root 3580 SW< /usr/sbin/wlancond 1133 root 3204 SW< /usr/sbin/icd 1160 user 1448 SW< /usr/bin/osso-connectivity-ui-conndlgs 1161 user 28904 SW< /usr/bin/osso-connectivity-ui-conndlgs 1173 user 3192 SW< /usr/bin/obexsrv -l 1208 user 16308 SW /usr/bin/mediaplayer-engine 1225 messagebus 14392 SW /usr/bin/eapd 1228 root 1472 SW< /sbin/udhcpc -i wlan0 -s /etc/udhcpc/udhcpc.script -f 1250 root 5812 SW sshd: root@pts/0 1252 root 1972 SW -sh 1316 root 1960 RW ps ax Nokia-N800-51-3:/etc#
> Put in 1Gb transcend MMC card What is the exact name of the card?
All the daemons used by the media player seem to be present: > 855 root 4804 SW /usr/sbin/multimediad > 958 user 16040 SWN /usr/bin/metalayer-crawler -F > 1208 user 16308 SW /usr/bin/mediaplayer-engine
(In reply to comment #4) > > Put in 1Gb transcend MMC card > > What is the exact name of the card? > on one side it says Transcend MMC 1Gb on the other these digits: 110450 1385 6330 AB 1G 0504 i wrote a simple script, that do 'rm /home/user/.meta_storage && killall -HUP metalayer-crawler'. when i run it - crawler starts scanning and further everything is working fine.
Related to bug 2213. > i wrote a simple script, that do 'rm /home/user/.meta_storage && killall -HUP > metalayer-crawler'. when i run it - crawler starts scanning and further > everything is working fine. Isn't it enough just to kill the crawler so that it's restarted? (If not, it would seem like the metadata database had somehow corrupted)
(In reply to comment #7) > Related to bug 2213. > > > i wrote a simple script, that do 'rm /home/user/.meta_storage && killall -HUP > > metalayer-crawler'. when i run it - crawler starts scanning and further > > everything is working fine. > > Isn't it enough just to kill the crawler so that it's restarted? > > (If not, it would seem like the metadata database had somehow corrupted) no, it is not enough. i don't think that metadata database corrupted - after i run this script, metacrawler scan cards and voila - media player see all those files on my card and everything work as it should.
(In reply to comment #8) > > Isn't it enough just to kill the crawler so that it's restarted? > > > > (If not, it would seem like the metadata database had somehow corrupted) > > no, it is not enough. i don't think that metadata database corrupted - after i > run this script, metacrawler scan cards and voila - media player see all those > files on my card and everything work as it should. How do you re-produce the issue after this? Eject and re-inject the card?
(In reply to comment #9) > > no, it is not enough. i don't think that metadata database corrupted - after i > > run this script, metacrawler scan cards and voila - media player see all those > > files on my card and everything work as it should. > > How do you re-produce the issue after this? Eject and re-inject the card? well, i delete something on a card and write some new music into a card, whether doing this via usb or via cardreader (with card ejecting and reinjecting into n800) - and metalayer-crawler doesn't see new files - until i run my script.
Only reason for this we could come up with would be file system being full or the database (or its journal file) for some other reason being not writable. What "df" tells about the free space the rootfs? (normal user cannot fill it completely and crawler is run as normal user)
(In reply to comment #11) > Only reason for this we could come up with would be file system being full > or the database (or its journal file) for some other reason being not writable. > What "df" tells about the free space the rootfs? Nokia-N800-51-3:~# df -h Filesystem Size Used Available Use% Mounted on /dev/mtdblock4 2.0M 2.0M 0 100% /mnt/initfs none 512.0k 96.0k 416.0k 19% /mnt/initfs/tmp /dev/mtdblock4 251.5M 157.5M 94.0M 63% / none 512.0k 96.0k 416.0k 19% /tmp none 1.0M 16.0k 1008.0k 2% /dev tmpfs 1.0M 0 1.0M 0% /dev/shm /dev/mmcblk0p1 122.1M 112.0M 10.1M 92% /media/mmc2 /dev/mmcblk1 978.1M 812.4M 165.6M 83% /media/mmc1 how can i debug what metacrawler do? does it have some command-line switches or something? i'm familiar to unix, so i can help you here.
> /dev/mtdblock4 251.5M 157.5M 94.0M 63% / Ok, rootfs being full is not the problem. > how can i debug what metacrawler do? does it have some command-line > switches or something? i'm familiar to unix, so i can help you here. Install strace or ltrace as described here (see bottom of the page): http://maemo.org/development/tools/ Then strace e.g. the file operations that crawler does: strace -e trace=file -p <crawler PID> Both when it works and when it doesn't work. If file ops don't reveal anything, strace everything (remove -e option).
i've added to /etc/init.d/metalayer-crawler0 to starting case "-c /media/mmc1" and metacrawler scan my card with no scripts and deleting .meta_storage.
Alexander, any news here?
(In reply to comment #15) > Alexander, any news here? sorry, i was a kind of busy. yes, news - today i've upgraded to diablo, and metacrawler still doesn't see my files. will try to trace.
After last weekend's Maemo Summit, it's clear that Nokia is working on an Open Source replacement for metalayer-crawler based on Tracker, so this bug is obsolete/invalid for Fremantle. Hence I also don't expect much Metacrawler bugfixing for Diablo anymore, to be realistic. This might be frustrating for Diablo users, but ressources are unfortunately limited. I'm going to close this report as WONTFIX for Diablo (and INVALID for Fremantle) soon if nobody has strong objections.
I've the same trouble on a N810 with OS 5.2008.43-7. I removed /home/user/.meta_storage but it doesn't help. I restarted the device but nothing changes. If I open a media file by clicking it on File Manager everything I can reproduce it, but I wasn't able to refresh the Media Player library.
(In reply to comment #18) > I've the same trouble on a N810 with OS 5.2008.43-7. I removed > /home/user/.meta_storage but it doesn't help. I restarted the device but > nothing changes. If I open a media file by clicking it on File Manager > everything I can reproduce it, but I wasn't able to refresh the Media Player > library. > I realize that it was another problem. The metalayer-crawler process never starts, and when I tried to start it manually I get a Segmentation Fault. It seems not to be related with this bug.
(In reply to comment #19) > I realize that it was another problem. The metalayer-crawler process never > starts, and when I tried to start it manually I get a Segmentation Fault. It > seems not to be related with this bug. Could you file a separate bug about it and add me to CC? You could then install "strace"[1] and strace the crawler when it starts and if that doesn't tell enough, install "sp-rich-core"[1] and attach the core dump of the crawler process to that bug. [1] From the SDK tools repository, see: http://maemo.org/development/tools/ (instructions for enabling the repo are at the end of the page. Unlike the main SDK repo, it should be safe to keep this enabled also in the device.)
The closed source component metalayer-crawler will not receive any bugfixes anymore and is deprecated, hence this bug report is WONTFIX. Fremantle will use the open source component Meta Tracker instead which is already available in the (unstable) Fremantle SDK releases. Note that there is a request to open-source the source code of metalayer-crawler: bug 4082.