[All] To build a better music player

Dylan Reilly dreilly at atariland.net
Tue Mar 3 04:03:33 CET 2009


* The "cannot set suspend messages" are OK. They are there in debug
output for the sake of debugging. Pythm requests CPU resource from FSO
to halt suspending during playback. Frameworkd is smart enough to only
allow one lock per process. That message is FSO telling pythm that.

* I fixed the "volume" problem in 0.5.5. Please upgrade to that version.

* Thank you for the bug about the directory structure. I will look
into handling that better. Eventually pythm will be able to remember
things like directories on its own (without /etc/pythm.conf). I am
planning to add some sort of session memory.

* I agree that the files should be sorted by track number. Sorting by
file name was step 1. The original pythm had no sorting. This is a
known TODO.

On Mon, Mar 2, 2009 at 4:48 AM, Helge Hafting <helge.hafting at hist.no> wrote:
> Dylan Reilly wrote:
>> I am not seeing this problem. Can you look through /etc/pythm.log and
>> see if there is anything interesting in there, or send it to me?
>>
> $ pythm
> No Locale found, falling back! Error was:[Errno 2] No translation file
> found for domain: 'pythm'
> new conf
> using gstreamer backend
> /usr/lib/python2.6/site-packages/dbus/connection.py:242:
> DeprecationWarning: object.__init__() takes no parameters
>   super(Connection, self).__init__(*args, **kwargs)
> error executing:[Errno 2] No such file or directory:
> '/media/card/Music/Albums'
>
>
> (The last message is ok, I have my music in a different directory.
> Usually, navigating there is possible though. But now, the "up button"
> does nothing and the file list is empty. After quitting, this happens:)
>
> delete event occurred
> destroy signal occurred
> Exception in thread Thread-2 (most likely raised during interpreter
> shutdown):
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/threading.py", line 522, in __bootstrap_inner
>   File "/usr/lib/python2.6/site-packages/pythm/backend/backend.py",
> line 496, in run
> <type 'exceptions.TypeError'>: 'NoneType' object is not callable
> Exception in thread Thread-3 (most likely raised during interpreter
> shutdown):
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/threading.py", line 522, in __bootstrap_inner
>   File "/usr/lib/python2.6/site-packages/pythm/backend/backend.py",
> line 496, in run
> <type 'exceptions.TypeError'>: 'NoneType' object is not callable
> Exception in thread Thread-1 (most likely raised during interpreter
> shutdown):
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/threading.py", line 522, in __bootstrap_inner
>   File "/usr/lib/python2.6/site-packages/pythm/backend/backend.py",
> line 496, in run
> <type 'exceptions.TypeError'>: 'NoneType' object is not callable
>
>
> And here is /tmp/pythm.log :
> 2009-03-02 10:35:40,663 DEBUG Unable to set no suspend:
> org.freesmartphone.Usage.UserUnknown: User :1.30 did not request CPU
> before releasing it
> 2009-03-02 10:36:31,734 DEBUG Unable to set no suspend:
> org.freesmartphone.Usage.UserUnknown: User :1.30 did not request CPU
> before releasing it
>
> Nothing about my problems, but it apparently have problems turning off
> suspend. Maybe SHR changed this part?
>
> I changed the music directory in /etc/pythm.conf. This time, the album
> list came up. It'd be nice if a wrong album directory still allows one
> to go up in the directory structure - one can then navigate manually
> to were the music is. This was possible before.
>
> Playing the music still fails. I get the correct song length displayed,
> and the seconds counts up. But I can't hear anything, even if I turn the
> volume to 100%. With or without earphones makes no difference.
>
> Output from pythm:
>
>  $ pythm
> No Locale found, falling back! Error was:[Errno 2] No translation file
> found for domain: 'pythm'
> new conf
> using gstreamer backend
> /usr/lib/python2.6/site-packages/dbus/connection.py:242:
> DeprecationWarning: object.__init__() takes no parameters
>   super(Connection, self).__init__(*args, **kwargs)
>
> (pythm-bin:11766): GStreamer-WARNING **: Name volume is not unique in
> bin player, not adding
>
> (pythm-bin:11766): GStreamer-WARNING **: Name volume is not unique in
> bin player, not adding
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/logging/__init__.py", line 754, in emit
>     msg = self.format(record)
>   File "/usr/lib/python2.6/logging/__init__.py", line 637, in format
>     return fmt.format(record)
>   File "/usr/lib/python2.6/logging/__init__.py", line 425, in format
>     record.message = record.getMessage()
>   File "/usr/lib/python2.6/logging/__init__.py", line 295, in getMessage
>     msg = msg % self.args
> TypeError: not all arguments converted during string formatting
>
> (pythm-bin:11766): GStreamer-WARNING **: Element output is not in bin player
>
> The logfile now shows this:
> $ cat /tmp/pythm.log
> 2009-03-02 10:39:41,165 DEBUG Unable to set no suspend:
> org.freesmartphone.Usage.UserUnknown: User :1.31 did not request CPU
> before releasing it
> 2009-03-02 10:40:15,658 DEBUG Going to play song:
> /media/card/musikk/Pink Floyd - The Wall/02 The Thin Ice.ogg
> 2009-03-02 10:40:15,685 DEBUG Need to load the song.
> 2009-03-02 10:40:15,749 ERROR Error loading song Pink Floyd - The Thin
> Ice into player 0: Could not add element 'volume'
> 2009-03-02 10:40:19,547 DEBUG Async loading new song into player: 1
> 2009-03-02 10:40:19,554 DEBUG Async next song is:
> /media/card/musikk/Pink Floyd - The Wall/03 Another Brick In The Wall,
> Part I.ogg
> 2009-03-02 10:40:19,581 ERROR Error loading song Pink Floyd - Another
> Brick In The Wall, Part 1 into player 1: Could not add element 'volume'
> 2009-03-02 10:42:15,893 DEBUG Going to play song:
> /media/card/musikk/Pink Floyd - The Wall/03 Another Brick In The Wall,
> Part I.ogg
> 2009-03-02 10:42:15,903 DEBUG Song already loaded.
> 2009-03-02 10:42:16,084 DEBUG Unable to set no suspend:
> org.freesmartphone.Usage.UserExists: User :1.31 already requested CPU
> 2009-03-02 10:42:19,317 DEBUG Async loading new song into player: 0
> 2009-03-02 10:42:19,324 DEBUG Async next song is:
> /media/card/musikk/Pink Floyd - The Wall/02 The Thin Ice.ogg
> 2009-03-02 10:42:19,344 ERROR Error loading song Pink Floyd - The Thin
> Ice into player 0: Could not remove element 'output'
>
> Helge Hafting
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>



-- 
Dylan Maxwell Reilly




More information about the community mailing list