Bug 1361 - if ~/Music is an alias (not a symlink) on OSX, slimserver won't start
: if ~/Music is an alias (not a symlink) on OSX, slimserver won't start
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Platform Support
: 6.1.0
: Macintosh MacOS X 10
: P2 minor with 1 vote (vote)
: Future
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-12 11:03 UTC by Kevin Pearsall
Modified: 2011-03-16 04:18 UTC (History)
4 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Pearsall 2005-04-12 11:03:51 UTC
mkdir /Users/jan/Music: File exists at
/Users/jan/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Utils/Prefs.pm
line 115
Compilation failed in require at
/Users/jan/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Buttons/Plugins.pm
line 20.
BEGIN failed--compilation aborted at
/Users/jan/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Buttons/Plugins.pm
line 20.
Compilation failed in require at
/Users/jan/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Buttons/Common.pm
line 15.
BEGIN failed--compilation aborted at
/Users/jan/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Buttons/Common.pm
line 15.
Compilation failed in require at
/Users/jan/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Buttons/Settings.pm
line 11.
BEGIN failed--compilation aborted at
/Users/jan/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Buttons/Settings.pm
line 11.
Compilation failed in require at
/Users/jan/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Display/Display.pm
line 14.
BEGIN failed--compilation aborted at
/Users/jan/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Display/Display.pm
line 14.
Compilation failed in require at ./slimserver.pl line 205.
BEGIN failed--compilation aborted at ./slimserver.pl line 205.
Comment 1 Kevin Pearsall 2005-04-12 11:05:29 UTC
reproduced in trunk r2948, osx 10.3.8
Comment 2 Blackketter Dean 2005-06-10 17:06:31 UTC
dan to take another quick look at this
Comment 3 Blackketter Dean 2005-06-10 17:08:46 UTC
Ah this issue is fixed, at least the part where it won't start.  Dan is looking into alias support in general.
Comment 4 Amir Caspi 2006-04-01 01:16:52 UTC
Actually, this bug has resurfaced in v6.2.2 (nightly 3/31).  The exact same issue: if ~/Music is an alias, slimserver won't start and gives an error... starting slimserver in CLI mode yields:

[Bork3x:SlimServer.prefPane/Contents/server] % ./slimserver.pl
mkdir /Users/cepheid/Music: File exists at /Library/PreferencePanes/SlimServer.prefPane/Contents/server/Slim/Utils/Prefs.pm line 356

If ~/Music is a regular folder, it works fine.  If it's an alias, the above error occurs.  So, this bug should be re-opened... unless you want me to submit a NEW bug report for it?

This is with OS X 10.3.9, SlimServer v6.2.2 (nightly 3/31).
Comment 5 Amir Caspi 2006-04-20 15:08:08 UTC
Out of curiosity, is anyone still following this bug?  It should be reopened as the bug has resurfaced in v6.2.2, as I reported previously.  Should I open a new bug, or is someone following this and can reopen it for me?
Comment 6 Dan Evans 2007-09-26 17:39:05 UTC
This bug looks like it should have been reopened.  Better late than never.
Comment 7 KDF 2007-09-26 20:36:15 UTC
best to reassign to qa so it gets reviewed again.
Comment 8 Chris Owens 2007-09-26 20:37:40 UTC
Did you see this in 7, Dan?
Comment 9 Dan Evans 2007-09-27 12:38:19 UTC
I was looking for bugs related to using aliases in Mac OS and saw this one.  It appears that someone reported it reopened in comment #4 but the bug remained "fixed".  Is it in 7, I don't know.
Comment 10 Spies Steven 2007-09-27 16:03:42 UTC
I just tried this with a fresh install of SqueezeCenter 7 and the default music folder changed to an alias with both Mac OS X 10.4 & 10.5.  SqueezeCenter crashed immediately after start on both systems.  I am going to reduce the severity of this bug because it should only affect users that have changed the default music folder to an alias before installing SqueezeCenter.  This was not something that was even easy to do with Mac OS X 10.5 because I had to enable and login as root to make the change.  Is there a reason that SqueezeCenter 7 is even accessing that folder before the user has a chance to choose what music source to use?  Might be another bug.
Comment 11 Amir Caspi 2007-09-27 16:30:20 UTC
But what happens if you choose an alias as the music folder even after you've started SqueezeCenter?  It's very possible that some people might want to have SqueezeCenter pointed to an alias instead of a regular folder, e.g. if they use multiple programs all pointing to that alias and want to update only the alias (one-time) instead of all the other utilities (e.g. if they store their music folder on one or more external hard drives and switch between them).

If SqueezeCenter can't handle an alias at all, IMHO that's more severe.
Comment 12 Spies Steven 2007-09-28 09:07:05 UTC
That is correct, SqueezeCenter cannot handle Mac OS X alias at all at the moment. If a user was to choose an alias for a directory after SqueezeCenter is installed it simply will not work. It won't crash SqueezeCenter however. Related Bug 5584 covers aliases and provides a workaround. Related Bug 5552 covers scanning of the music folder before the wizard is completed leading to a crash in this instance.
Comment 13 Michael Herger 2008-02-13 08:27:58 UTC
could somebody give the patch in bug 5584 a try? It would add support for aliases on OSX.
Comment 14 Michael Herger 2009-03-02 02:18:39 UTC
change 25259 - expand music path if it's an alias, or SC will crash at startup