Edit Info.plist. for Mac - Help Reqd (SOLVED)

Need help? Post your questions here.

Moderator: moderators

Edit Info.plist. for Mac - Help Reqd (SOLVED)

Postby alexj700 » Tue Jan 10, 2012 11:33 pm

Hi, I have just installed iSub on my iPad and my iPhone and SS in my iMac. Yesterday it worked perfectly. I have a very large music library in FLAC files (11.000 albums)

Suddenly, today I receive this message in my SS in Mac: java.lang.OutOfMemoryError. Exactly

Exception java.lang.OutOfMemoryError
Message Java heap space
Java version Apple Inc. 1.6.0_29
Operating system Mac OS X 10.6.8
Server jetty-6.1.x
Memory Used 97 of 97 MB
Stack trace java.lang.OutOfMemoryError: Java heap space

I've tried to activate the Control Panel to increase the memory to 300 or 1.000 but when I activate Control Panel in the iMac, I only can see a "dead" panel, with only info about the status, but I cannot write anything.

Please, can you help??? Many thanks in advance and regards from Canary Islands
Last edited by alexj700 on Thu Jan 12, 2012 12:25 am, edited 1 time in total.
alexj700
 
Posts: 7
Joined: Tue Jan 10, 2012 1:33 am

Re: java.lang.OutOfMemoryError in Mac

Postby BKKKPewsey » Tue Jan 10, 2012 11:36 pm

From the installation Guide for Mac

To change the port number, Java memory settings or other startup parameters, edit /Application/Subsonic.app/Contents/Info.plist.


:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: java.lang.OutOfMemoryError in Mac

Postby alexj700 » Wed Jan 11, 2012 12:05 am

Many thanks but sorry... :oops:

I don't know how to edit that file. I've tried changing to Root user, but it's impossible for me to access to that file. Anyway I think that it ought to be "Applications" no Application, but I can be wrong

Can you help, please?
alexj700
 
Posts: 7
Joined: Tue Jan 10, 2012 1:33 am

Re: java.lang.OutOfMemoryError in Mac

Postby ytechie » Wed Jan 11, 2012 1:25 am

It is applications with the 's' at the end. I have a mac, but I do not use it as a subsonic server, but I did check that applications is spelled with an 's'.
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: java.lang.OutOfMemoryError in Mac

Postby ytechie » Wed Jan 11, 2012 1:49 am

Ok. I have never done this myself, but here is how to edit files that are hidden without doing anything crazy.

Open up a terminal in Mac either by going to Applications > Utilities > Terminal or typing term into spotlight.

In the terminal, type "cd /" and press enter.

Now type "ls -la". This is the command to show you a list of the files and directories. The "-la" means to show you everything including hidden files and folders.

Start navigating to where the file is by typing "cd " followed by the next folder. If the folder or file has a space, enclose everything after "cd" in quotes.
Everything is case-sensitive.

When you get to the directory in which the file resides, type "nano " followed by the file name. If it needs permission, it will tell you, and instead type "sudo nano" followed by the file name.

Proceed to edit the file as needed. When finished, type control+x and press "y" to save.

Again, I do not have subsonic installed on my Mac, so I cannot tell you for sure that this will work, only that this is how to edit the file if it exists. :D

Have fun, but be careful! :mrgreen:
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: java.lang.OutOfMemoryError in Mac

Postby alexj700 » Wed Jan 11, 2012 4:22 pm

Million thanks. But once I opened the file, I find this

?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>Subsonic</string>
<key>CFBundleShortVersionString</key>
<string>4.6</string>
<key>CFBundleGetInfoString</key>
<string>4.6</string>
<key>CFBundleAllowMixedLocalizations</key>
<string>false</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
[ Read 63 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell

And I have no idea of what do I have to do to increase the memory of Java...

Sorry, but I feel like stupid... :-(
alexj700
 
Posts: 7
Joined: Tue Jan 10, 2012 1:33 am

Re: java.lang.OutOfMemoryError in Mac

Postby BKKKPewsey » Wed Jan 11, 2012 4:31 pm

alexj700 wrote:Sorry, but I feel like stupid...


Don't be - faced with that I would be as stumped as you :|

I thought Apples were supposed to be easier then Windows :?
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: java.lang.OutOfMemoryError in Mac

Postby alexj700 » Wed Jan 11, 2012 9:34 pm

No solution?

Any one has an iMac with Subsonic?
alexj700
 
Posts: 7
Joined: Tue Jan 10, 2012 1:33 am

Edit Info.plist. for Mac - Help Reqd

Postby BKKKPewsey » Wed Jan 11, 2012 9:43 pm

I will edit the thread title to reflect the new problem
Hope that is correct :?
:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Edit Info.plist. for Mac - Help Reqd

Postby alexj700 » Wed Jan 11, 2012 9:56 pm

Thanks once again.
alexj700
 
Posts: 7
Joined: Tue Jan 10, 2012 1:33 am

Re: Edit Info.plist. for Mac - Help Reqd

Postby alexj700 » Thu Jan 12, 2012 12:22 am

SOLVED. :D

You must open a Terminal window.

Type sudo nano /Applications/Subsonic.app/Contents/Info.plist

Type your password (you'll not see it, just write it) + Enter

You'll see this

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>Subsonic</string>
<key>CFBundleShortVersionString</key>
<string>4.6</string>
<key>CFBundleGetInfoString</key>
<string>4.6</string>
<key>CFBundleAllowMixedLocalizations</key>
<string>false</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
[ Read 63 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell


Press Ctrl + V to advance to next page

<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleIconFile</key>
<string>subsonic.icns</string>
<key>CFBundleIdentifier</key>
<string>net.sourceforge.subsonic</string>
<key>LSUIElement</key>
<string>1</string>
<key>Java</key>
<dict>
<key>MainClass</key>
<string>net.sourceforge.subsonic.booter.Main</string>
<key>JVMVersion</key>
<string>1.5+</string>
<key>ClassPath</key>
<array>
<string>$JAVAROOT/subsonic-booter-jar-with-dependencies.jar</string>
[ Read 63 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell


Press Ctrl + V to advance to next page
<array>
<string>$JAVAROOT/subsonic-booter-jar-with-dependencies.jar</string>
</array>
<key>VMOptions</key>
<string>-Xmx100m</string>
<key>Arguments</key>
<string>-mac</string>
<key>Properties</key>
<dict>
<key>subsonic.httpsPort</key>
<string>0</string>
<key>subsonic.port</key>
<string>4040</string>
<key>subsonic.war</key>
<string>Subsonic.app/Contents/Resources/subsonic.war</string>
<key>subsonic.defaultPodcastFolder</key>
<string>/Users/Shared/Podcasts</string>
<key>subsonic.contextPath</key>
<string>/</string>
[ Read 63 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell



Attention to line num. 5: " <string>-Xmx100m</string> "

Place cursor with arrows and change 100 to a bigger number. I only inserted another 0. New amount=1000 (I own 11.000 albums)

Crtl + X

Y + Enter

Open Subsonic... it works... :shock:

Many thanks for your gently help.
alexj700
 
Posts: 7
Joined: Tue Jan 10, 2012 1:33 am

Re: Edit Info.plist. for Mac - Help Reqd (SOLVED)

Postby BKKKPewsey » Thu Jan 12, 2012 3:33 am

:D
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom


Return to Help

Who is online

Users browsing this forum: No registered users and 53 guests