Mac Install - Easy - Success for a day - then trouble!

Need help? Post your questions here.

Moderator: moderators

Mac Install - Easy - Success for a day - then trouble!

Postby Chamol » Fri Jun 08, 2012 5:09 pm

New to Subsonic.
Any advice help appreciated. My excuse posting here. Being unsure what has happened! I am unsure how to search for the answer! ;-(

I installed Subsonic on my Desktop Mac as instructed after downloading the Mac installer.
All went well and had everything working within minutes. :-)

I then left home for the afternoon and while away I installed iSub on my iPad and again all worked like a dream.

That evening I created individual - Play Only - logins for three people.
I live in London UK. The three people - two live in Ireland and one in New York.

One of these people emailed me to say they could not reach the server.
Then I realised I had sent the url as .com and not .org ;-(
So I let all know my mistake.

I went to work next day and early in the afternoon I tried to Login on a Desktop via Internet Explorer
but something was wrong - I cannot remember exactly but my login process seemed to freeze! Just would not work. :-(

I tried iSub on my iPad but I got errors and again no joy!

At home that evening it also seemed problematic. I managed to load the interface and because of what was going on I suspected maybe there has been some sort of 'attack' or security breach on my Mac.

I then clicked on the section so that I could change my password etc. and thats when I immediately got the following error message.

Code: Select all
Error
Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below.
Exception   java.lang.OutOfMemoryError
Message   Java heap space
Java version   Apple Inc. 1.6.0_31
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    at org.apache.xerces.dom.DeferredDocumentImpl.createChunk(Unknown Source)    at org.apache.xerces.dom.DeferredDocumentImpl.ensureCapacity(Unknown Source)    at org.apache.xerces.dom.DeferredDocumentImpl.createNode(Unknown Source)    at org.apache.xerces.dom.DeferredDocumentImpl.createDeferredTextNode(Unknown Source)    at org.apache.xerces.parsers.AbstractDOMParser.ignorableWhitespace(Unknown Source)    at org.apache.xerces.impl.dtd.XMLDTDValidator.characters(Unknown Source)    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown Source)    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)    at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:95)    at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:132)    at org.apache.jasper.compiler.TldLocationsCache.getUriFromTld(TldLocationsCache.java:465)    at org.apache.jasper.compiler.TldLocationsCache.scanJar(TldLocationsCache.java:372)    at org.apache.jasper.compiler.TldLocationsCache.scanJars(TldLocationsCache.java:517)    at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:249)    at org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:224)    at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:526)    at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:422)    at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)    at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)    at org.apache.jasper.compiler.Parser.parse(Parser.java:126)    at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)    at org.apache.jasper.compiler.ParserController.parse(ParserController.java:116)    at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:335)    at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)    at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484)    at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)


The interface also seemed to split and I got what seemed like another / similar long error message half hidden where the list of Artist / Music / Folders should be. I shall try and include a screen shot.

Image

The Error Message was:

Code: Select all
Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below.
Exception   java.lang.OutOfMemoryError
Message   Java heap space
Java version   Apple Inc. 1.6.0_31
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    at java.util.regex.Pattern$BnM.optimize(Pattern.java:4912)    at java.util.regex.Pattern.compile(Pattern.java:1473)    at java.util.regex.Pattern.(Pattern.java:1133)    at java.util.regex.Pattern.compile(Pattern.java:823)    at java.lang.String.split(String.java:2292)    at net.sourceforge.subsonic.service.SearchService$Line.parse(SearchService.java:679)    at net.sourceforge.subsonic.service.SearchService.getIndex(SearchService.java:552)    at net.sourceforge.subsonic.service.SearchService.getStatistics(SearchService.java:295)    at net.sourceforge.subsonic.controller.LeftController.handleRequestInternal(LeftController.java:122)    at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)    at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)    at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)    at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)    at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)    at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)    at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)    at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)    at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)



I then tried to Uninstall Subsonic but could not as it said it was running! ;-(
So I restarted the Mac and uninstalled it when it restarted.

I downloaded and installed it again.
Seemed to install ok - but when I clicked to change the password I got all of the error stuff again! ;-(

Since then I have uninstalled it again as I started to panic about security etc ;-(

Any help with this would be greatly appreciated.

Many thanks in advance.

Chamol
Chamol
 
Posts: 3
Joined: Thu Jun 07, 2012 6:18 am

Re: Mac Install - Easy - Success for a day - then trouble!

Postby hakko » Fri Jun 08, 2012 5:24 pm

When you run a Java program, you pre-define how much memory it's allowed to use. The Subsonic default value is 100MB. For people with a bit of a music collection, this is too low and causes the Java OutOfMemoryError that you see, effectively stopping you from using the program.

To increase the value, open a Terminal window and type:
Code: Select all
nano /Applications/Subsonic.app/Contents/Info.plist

Scroll down to where it says -Xmx100m and replace that value with -Xmx256m or so. Save (Ctrl+O), restart Subsonic and that should hopefully work.

(On my Mac at least, the "Subsonic Control Panel" menu option from the icon in the top right corner doesn't work. But if it does, you could change the memory setting there as well, probably more easily)
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Mac Install - Easy - Success for a day - then trouble!

Postby bushman4 » Fri Jun 08, 2012 5:54 pm

EXCELLENT ANSWER!

Thanks for contributing,

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: Mac Install - Easy - Success for a day - then trouble!

Postby Chamol » Fri Jun 08, 2012 6:51 pm

Many thanks for your quick reply hakko and your time. Appreciated

I installed Subsonic again.
I went to the drop down menu and opened the Control Panel.
This is what I got.
The memory option seems to suggest Memory Used rather than an option to choose Memory size! Perhaps I should just type in 256? Unsure. ;-(

Image

I then opened a Terminal Window and got this.

Image

I pasted in what you had suggested ie:

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

Image

I assumed that I should then hit Return?
When I did that I got this!

Image

Afraid I am not a Terminal user much. :-(

You say to scroll down etc! ….. am I misunderstanding something.
You say to change the -Xmx100m

Afraid I cannot see how to do such and shall assume I am doing something wrong here?

Any further advice appreciated.
Thank you for your time.

Chamol
Chamol
 
Posts: 3
Joined: Thu Jun 07, 2012 6:18 am

Re: Mac Install - Easy - Success for a day - then trouble!

Postby hakko » Fri Jun 08, 2012 7:31 pm

Oh, sorry. Remove the dot after .plist, that was the end of the sentence, not part of the command.

like this:

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

press Enter and then it should give you a screen filled with text where you can replace -Xmx100m with -Xmx256m, save (Ctrl+O), exit (Ctrl+X) and restart Subsonic!
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Mac Install - Easy - Success for a day - then trouble!

Postby Chamol » Fri Jun 08, 2012 8:46 pm

"The need to make music, and to listen to it, is universally expressed by human beings. Music is found everywhere man is found. It is like speech, a dominant aspect of human biology." Lewis Thomas

Amazing. Success again thanks to you hakko and the forum.
I have also learned much about Terminal as I had to figure out that I needed to move the cursor with the arrow keys to edit the text etc. :oops:

Enjoyng my music now again, everywhere … even iSub on my iPad works a dream. (I had to reinstall it)

Have a good evening and many thanks again for your time.

Chamol :D

What wisdom can you find that is greater than kindness?
Jean-Jacques Rousseau
Chamol
 
Posts: 3
Joined: Thu Jun 07, 2012 6:18 am

Re: Mac Install - Easy - Success for a day - then trouble!

Postby hakko » Fri Jun 08, 2012 9:43 pm

Oh, I'm glad to hear it works! Thanks for your detailed and elaborated error reports, and for your kind words! Both you Chamol and bushman4.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Mac Install - Easy - Success for a day - then trouble!

Postby bushman4 » Tue Jun 12, 2012 2:28 pm

I edited your reply to make it clear that that command stops before the period... I used a 'code' block to make it clear.

Thanks,

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA


Return to Help

Who is online

Users browsing this forum: No registered users and 24 guests