GitLaboratory / demovibes

Automatically exported from code.google.com/p/demovibes
0 stars 0 forks source link

New PyAdder still causes unknown stream shutdowns #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Latest pyAdder code still causes the stream to apparently shutdown
randomly. The log will always read something like:

Now playing
/home/cvgm/live_code/static/media/music/Mark_II-Matt_Gray_Remix_Amiga.mp3
Playing
/home/cvgm/live_code/static/media/music/Mark_II-Matt_Gray_Remix_Amiga.mp3
Random  0
Now playing
/home/cvgm/live_code/static/media/music/23-TDM-Turrican16orig_Rimiro_Vaca-C64.mp
3
Playing
/home/cvgm/live_code/static/media/music/23-TDM-Turrican16orig_Rimiro_Vaca-C64.mp
3
Random  0
Random  1
Playlist file name is empty, shutting down.
Ices Exiting...

With no real explanation as to what is happening.

Original issue reported on code.google.com by FishGuy8765@gmail.com on 20 Oct 2009 at 1:19

GoogleCodeExporter commented 9 years ago
Had the same problem on Nectarine, and tracked it down to some files having 
filenames
that pyAdder/ices could not understand, thus bailing out with:

Playlist file name is empty, shutting down.

Can also happen on songs that weren't correctly added to the db and thus have no
filename associated.

Also can happen, when pyAdder's pick random enqueue function returns no result:
http://code.google.com/p/demovibes/source/browse/trunk/demovibes/pyAdder.py#112

Try increasing value to 30 or even 50 - tho it'll eat substantial amount of CPU.

Original comment by ara...@gmail.com on 20 Oct 2009 at 1:38

GoogleCodeExporter commented 9 years ago
The random function should always return a song object. When loop ends it will 
just
use the last song picked.

Original comment by TheTerra...@gmail.com on 20 Oct 2009 at 1:46

GoogleCodeExporter commented 9 years ago
Is this still a problem? Added more debug logging to pyAdder, can enable very 
detailed 
logs if needed. It have namespace "pyAdder" and look for a file called 
"logging.conf" 
in the same directory. If it does not exist, it will log info or higher to 
console (not 
very helpful). Logging documentation (including logging file structure) can be 
found at 
http://docs.python.org/library/logging.html

Original comment by TheTerra...@gmail.com on 25 Nov 2009 at 10:54

GoogleCodeExporter commented 9 years ago
This isnt a major issue anymore. Stream will auto restart in case of a failure 
anyways.

Original comment by FishGuy8765@gmail.com on 3 Dec 2009 at 6:06