Page 1 of 2

Win7 Subsonic server switches off! please help!

PostPosted: Thu Jul 07, 2011 11:46 am
by russcasey
Hi. I'm new here. I've been trialling subsonic recently as I'm getting a Chromebook soon. I'm really impressed and love it, but seem to have a weird problem that is crashing out Windows 7....

<-------------------------Subsonic Help Request---------------------->
Problem Description:
Subsonic is installed on a Win 7 machine, and I'm streaming music using the web app.
After about 30mins the Win7 machine will shut down unexpectedly. This does not happen when not using SubSonic.


Troubleshooting Steps:
None, other than not streaming avoids the problem.

Playback Application and version:
Web client

Subsonic Version: Version 4.4 (build 2172) – February 6, 2011
Server Version: jetty-6.1.x, java 1.6.0_18, Windows 7 (38.2 MB / 49.4 MB)

Hardware Platform: Windows 7 Pro, SP1

Java Memory Limit: 100Mb
Problem Filename: N/a
Output from ffmpeg -i:
Code: Select all
ffmpeg version N-31031-gf211d9d, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 26 2011 22:50:39 with gcc 4.5.3
  configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-
runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil    51. 10. 0 / 51. 10. 0
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 24. 0 /  2. 24. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0



Last ten log file lines:
Log file is blank when system restarts.

<-------------------------Subsonic Help Request---------------------->

PostPosted: Thu Jul 07, 2011 1:03 pm
by GJ51
Does the host PC "Shut Down" or is it just going to Sleep mode?

PostPosted: Thu Jul 07, 2011 1:22 pm
by Qbix
Strange...what does the event viewer in Windows shows you?

PostPosted: Thu Jul 07, 2011 1:55 pm
by GJ51
Not strange at all really, on Windows desktop you have to go into the advanced power setting and make sure that media streaming prevents the computer from going into sleep mode. that's why I asked if the system was actually shutting down as opposed to going to sleep. Spontaneous shutdowns are usually related to heat issues, going into sleep mode is usually just a matter of verifying the settings.

PostPosted: Thu Jul 07, 2011 2:01 pm
by Qbix
True...I just supposed that he was talking about a real shutdown.
If it's only a sleep-mode you're right of course, he should check his power settings.

PostPosted: Thu Jul 07, 2011 2:34 pm
by russcasey
Thanks for the comments guys - I know this is a weird one as not much can crash Win7 in this way.

The machine is my HTPC and I'm familiar with the power management controls. This is like someone pulled the power cord out. When I switch it back on again, I get the 'Windows did not shut down normally' message.

Windows Event log doesn't show anything indicative of a problem, neither does subsonic log - I set the subsonic service to manual start so it doesn't wipe the logs on startup, but there is nothing but playback records. Last 3 entries are:

Code: Select all
[2011-07-07 14:35:24,126] INFO PlaylistInputStream - admin listening to "Let Them Talk\01 - St. James Infirmary.mp3"
[2011-07-07 14:41:49,555] INFO PlaylistInputStream - admin listening to "Let Them Talk\02 - You Don't Know My Mind.mp3"
[2011-07-07 14:45:28,968] INFO PlaylistInputStream - admin listening to "Let Them Talk\03 - Six Cold Feet.mp3"



It isn't heat either. Fans kick in automatically if the temp gets too high, and this isn't happening.

PostPosted: Thu Jul 07, 2011 3:48 pm
by Qbix
You're saying that it doesn't happen when you don't use Subsonic..hmm...maybe you can try to let the Subsonic service run with a different account (ex. local admin) or something.

Maybe you can run Malwarebytes to be sure nothing is activated as soon as you start streaming.

PostPosted: Thu Jul 07, 2011 4:06 pm
by russcasey
Qbix wrote:You're saying that it doesn't happen when you don't use Subsonic..hmm...maybe you can try to let the Subsonic service run with a different account (ex. local admin) or something.

Maybe you can run Malwarebytes to be sure nothing is activated as soon as you start streaming.


Good ideas both.
I've updated the subsonic service to use a regular user account rather than local system, and am running a malwarebytes full scan right now. The system was protected with MS Security Essentials, but I agree malware would explain the symptoms.

PostPosted: Thu Jul 07, 2011 4:35 pm
by Qbix
Please let me know the outcome..

PostPosted: Thu Jul 07, 2011 5:10 pm
by GJ51
Just another 2 cents: My HTPC has had occasional unexplained shutdowns as well. I haven't had time to fully investigate yet, but I was thinking it may be related to WMC.

There's always another mystery to solve. :wink:

PostPosted: Sun Jul 10, 2011 3:54 pm
by russcasey
Wasn't malware.
Hasn't happened for the last few days, while I haven't been using SubSonic.
Any more ideas gratefully received!

PostPosted: Sun Jul 10, 2011 4:24 pm
by russcasey
russcasey wrote:Wasn't malware.
Hasn't happened for the last few days, while I haven't been using SubSonic.
Any more ideas gratefully received!


Started streaming to my new Chromebook just after that last post. My HTPC powered off without warning about 5 mins ago.

Dunno if it could be related to using Chrome as the browser doing the streaming?

PostPosted: Sun Jul 10, 2011 5:05 pm
by GJ51
Not likely, I'd look at you bios settings for PC health CPI shutdown temperature and get a util like speedfan to see if it's a heat related issue. Summertime can be tough when you start media streaming and the cpul oad starts to generate some heat, especially on an HTPC that usually has less than ideal cooling due to space design.

That would be where I would look first. If your temps are good, you might think about running some diagnostics on the memory chips. Memtest86 usually does a pretty good job there.

We built a workstation a while back that wouldn't go into and come out of sleep mode properly. Drove us crazy trying to figure out what was wrong until we loaded the memory chips one at a time until we isolated a deffective stick of ram. RMA'd the bad stick, popped in the replacement and the PC has been flawless ever since.

PostPosted: Mon Jul 11, 2011 10:41 am
by russcasey
GJ51 wrote:Not likely, I'd look at you bios settings for PC health CPI shutdown temperature and get a util like speedfan to see if it's a heat related issue. Summertime can be tough when you start media streaming and the cpul oad starts to generate some heat, especially on an HTPC that usually has less than ideal cooling due to space design.

That would be where I would look first. If your temps are good, you might think about running some diagnostics on the memory chips. Memtest86 usually does a pretty good job there.

We built a workstation a while back that wouldn't go into and come out of sleep mode properly. Drove us crazy trying to figure out what was wrong until we loaded the memory chips one at a time until we isolated a deffective stick of ram. RMA'd the bad stick, popped in the replacement and the PC has been flawless ever since.


Temps are fine. The HTPC is in a huge aluminium case with fans that kick in at the first sign of overheating. It is in a well ventilated location. There are no issues recorded in the temperature monitoring. It has performed just fine for other tasks in hotter situations.

Not a sleep issue either - it isn't sleeping, it is shutting down unexpectedly. Subsonic streaming is the only common factor I've found so far. Issue occurs when the box is idle other than streaming to 1 client.

PostPosted: Mon Jul 11, 2011 2:25 pm
by GJ51
http://www.techrepublic.com/blog/window ... ag=nl.e064

"Java Memory Limit: 100Mb"

Raise the memory allocation to 256.