Bug 53218 - hayes 1.2 crashes in shuffle mode
Summary: hayes 1.2 crashes in shuffle mode
Status: RESOLVED FIXED
Alias: None
Product: noatun
Classification: Unmaintained
Component: hayes (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Multimedia Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-21 03:41 UTC by Carsten Pfeiffer
Modified: 2003-01-21 18:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Pfeiffer 2003-01-21 03:41:52 UTC
Version:           2.2.0 (using KDE 3.1.9)
Compiler:          gcc version 3.2
OS:          Linux (i686) release 2.4.20

Playing the next song in shuffle mode often produces the following bt:

#6  0x449afc7d in Hayes::Playlist::getNextShuffleItem() const ()
   from /opt/kde3/lib/kde3/noatun_hayes.so
#7  0x449af9e1 in Hayes::Playlist::getNextItem(Hayes::FileTreeViewItem*, bool, bool) const () from /opt/kde3/lib/kde3/noatun_hayes.so
#8  0x449af215 in Hayes::Playlist::next() ()
   from /opt/kde3/lib/kde3/noatun_hayes.so
#9  0x4138fedb in Player::forward(bool) () from /opt/kde3/lib/libnoatun.so.0
#10 0x41391276 in Player::qt_invoke(int, QUObject*) ()

The problem is that the weighted list is empty, e.g. when the weights for all items are 0.

In that case, you can go back to the parent dir and try again to find another suitable "next item". You should probably keep a list of directories to ignore tho, to avoid an infinite loop.

Besides, the sorting seems to be broken, it always sorts in one direction (worked fine in the last version in CVS).
Comment 1 Neil Stevens 2003-01-21 17:59:18 UTC
Mod 0 hurts, yes.  This is fixed in 1.21, which you would have been on the list to test 
had your server not been bouncing mails from me. 
 
In any case, 1.21 will be out very soon. 
Comment 2 Carsten Pfeiffer 2003-01-24 17:21:56 UTC
Subject: Re:  hayes 1.2 crashes in shuffle mode

On Tuesday 21 January 2003 17:59, you wrote:

> 17:59 ------- Mod 0 hurts, yes.  This is fixed in 1.21, which you would
> have been on the list to test had your server not been bouncing mails from
> me.
>
> In any case, 1.21 will be out very soon.

Haven't had any problems yet, with the fixed version.

Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----

iQEVAwUBPjFoFaWgYMJuwmZtAQE0XQf/bTrhR/YEIoQUrG+xLmZZtuu0GiPvPyY9
0rG9YiBuIqGZNWt123Qr/SMTFPfJkfSNFd43+hFRfuizLVfE0mWSFXWKc707cpbL
RFPJKnS1KMxWfeDydPFCyaycZUF+TWsnYynK1bLEDKD5rTBHphxsUEZIcQB96qU6
0uZGxpsoetpwB0R4LzsavaP6vgH6MBKQ+vR1r4gA8y4KflewLfk9myzG8WroZ47V
nKTyfLuqEsEHrRZ84MDmEsQy5Dkncjp301j38XLsiyOcVmeiutqy4+gwUBYQ+BdX
NOHBe+mQXLEX3wHXf2Md/TqOct/ubdnXxWJYlbyv4B+3nUNztd81sg==
=Gdl5
-----END PGP SIGNATURE-----