PDA

View Full Version : infinite loop bug


shawn8
31st October 2001, 02:10
1) Create a shortcut of your root mp3 directory.
2) Then put the shortcut in a SUB-directory of the root mp3 directory.
3) Then try to enqueue the root directory into Winamp.
4) Winamp should crash

version 2.77

Sawg
31st October 2001, 02:13
Known

DJ Egg
31st October 2001, 18:10
Congratulations :rolleyes:
And you honestly think this is a Winamp bug?
Or could it just be down to complete irrationality?

Firstly, it's obviously going to create an endless loop and crash any player/program that recurses directories.
Secondly, why would anyone want a shortcut to the root folder in a subdir?

shawn8
5th November 2001, 02:25
Some collection albums have repetitive songs from other albums, so it saves space to create a link to the other album. Do you think it's natural for any programs to crash even if it's caused by 'complete irrationality'? I think the ideal program should compensate for even the most irrational acts on the part of the user. If this problem was so obvious, then the program could have easily intercepted this error and prevented it; it should not crash, because any form of crashing will frustrate the user who does not immediately spot the problem. I merely wished the program to be more flexible, and if preventing such a loop is technically difficult, you could've said so as opposed to being sarcastic and calling a customer of the software irrational for reporting a situation that caused the software to crash.

peter
5th November 2001, 10:57
some simple hack to avoid this problem (at least for playlist with self-references) would be good (go ahead and convince Justin to do that :p ).

NeoRenegade
5th November 2001, 12:18
I say anybody odd enough to do reference loops should live with the consequences as long as they do so :D

DJ Egg
5th November 2001, 21:34
Originally posted by shawn8
1) Create a shortcut of your root mp3 directory.
2) Then put the shortcut in a SUB-directory of the root mp3 directory.
Originally posted by shawn8
Some collection albums have repetitive songs from other albums, so it saves space to create a link to the other album.Inconsistent as well as irrational :p :D

Note: instance 1 and instance 2 are not one and the same!

And how does creating a shortcut save space?
All files take up a minimum of 32kb of FAT32 Disk allocation.

The simple solution would be to create playlists to link artists/albums/genres together and use these instead of shortcuts that crash programs by causing endless loops in the OS shell.

PP (aka: peter)
Playlists with self references aren't the issue here.
Yes, maybe that issue can be fixed.

However, shortcuts in subdir's to the root folder is the issue here.
This is a Windows thing, as in this case, it is Explorer feeding Winamp by enqueing a dir from the Explorer interface.
Can anything be done in the winamp code to prevent this from happening?

DJ-Egg
Eternal host of winamp forum's The Weakest Link. ;)
Goodbye! :D