I can reproduce this bug everytime.
You need a .SHN file to test this. If you don't have one, download here:
http://www.gdlive.com/shn/
1. Make a new playlist and add a single .shn file in it.
2. Set the order to "Repeat"
3. Start playing. When the song ends. The playlist should repeat and the song should start again. Instead you get this error:
CODE
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://H:\March102000Late\d2t03.shn" (0)
WARNING (foo_shn) : reading data failed: unknown frame type. file is probably corrupt.
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://H:\March102000Late\d2t03.shn" (0)
WARNING (foo_shn) : reading data failed: unknown frame type. file is probably corrupt.
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://H:\March102000Late\d2t03.shn" (0)
WARNING (foo_shn) : reading data failed: unknown frame type. file is probably corrupt.
INFO (CORE) : location: "file://H:\March102000Late\d2t03.shn" (0)
WARNING (foo_shn) : reading data failed: unknown frame type. file is probably corrupt.
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://H:\March102000Late\d2t03.shn" (0)
WARNING (foo_shn) : reading data failed: unknown frame type. file is probably corrupt.
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://H:\March102000Late\d2t03.shn" (0)
WARNING (foo_shn) : reading data failed: unknown frame type. file is probably corrupt.
And this error goes on as foobar tries to plays the file again and again (repeat mode).
5. Press the stop button and then press play again. The file will again start playing normally.
Notes: You can only reproduce this error with .SHN files, a single mp3 file in a playlist with repeat mode works fine.