Author Topic: HIGH CPU usage with VC  (Read 3062 times)

0 Members and 2 Guests are viewing this topic.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 497
  • Karma: 43
    • View Profile
HIGH CPU usage with VC
« on: February 05, 2015, 12:31:09 PM »


VC has done this to me 3 times in the last 2 day's, it keeps eating up my CPU,

all 3 times it's using more then 50% of my CPU

HTPC specs: http://pcpartpicker.com/user/peglegtv/saved/#savedbuild_976566
HTPC Case:http://www.amazon.com/Black-Mini-ITX-Computer-Power-Supply/dp/B009MAZ4RS (differnt then the one on pcpartpicker, my cpu was to big for the other case  ;D)

the first and 3rd time it happened I was able to just do a full restart of VC and the CPU usage went down

the 2nd time I tried a full restart of VC but it stayed the same so I Restarted my PC and that fixed it
Not sure what is causing it

the first 2 times I was using 2.136 and the 3rd time was 2.138 and I was watching local SD Media with PTVL Add-on all 3 times

after the First full Restart I "Purge Cashe" and did another full restart

Any help would be great
Thanks

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: HIGH CPU usage with VC
« Reply #1 on: February 05, 2015, 12:42:18 PM »
This has happened to me two or three times over the past year.  Restarting was always enough to solve the problem.  Unfortunately I have no idea at all what was causing it.  It could have been a .Net or WSR issue.  When something happens so rarely I try not to worry about it since it probably has nothing to do with my code, or even if it does it is nearly impossible to track down.  Because VC also connects to so many other things, it could theoretically be caused by one of the other programs it is attached to, although this seems like a long shot.  I have definitely seen where one program crashing can bring down other programs that it is connected to.  Example, MediaMonkey crashes and causes VC to crash.

If it is happening to you on a regular basis then probably it either has something to do with your system (hardware or software) or your configuration.  I don't see how I can help if it is your system, but I can try to run your configuration to see if I can recreate the error.

Other than that I don't know what to suggest.

Edit / PS:
Normally I see 0%-2% CPU usage for VC with a max of 5% while issuing commands.
Rebuilding groups can use up to 100% for a brief period.
« Last Edit: February 05, 2015, 12:45:49 PM by jitterjames »

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 497
  • Karma: 43
    • View Profile
Re: HIGH CPU usage with VC
« Reply #2 on: February 05, 2015, 12:54:10 PM »
Okay,

I'll Keep an eye on it for now and see if repeats more, if it does then I'll send you my setup

as for the one program crash and taking down VC, I made a AutoHotKey script that will force close XBMC and VC at the same time then re-launch them after 6 seconds, I don't use it often maybe 2 times over the last year but it comes in handy so i don't have to remote desktop to fix VC when it crashes from XBMC crashing...

As I'm writing this I had an idea to send an Event to VC to have it Disconnect from Json first and have it send another event when XBMC starts to have it re-connect and see if that works, when I get some time I'll try and Make the Script and see if that works better so i don't have to Force Close VC   

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: HIGH CPU usage with VC
« Reply #3 on: February 05, 2015, 12:56:04 PM »
... I was watching local SD Media with PTVL Add-on all 3 times

What about playing other media not using PTVL?

What mic are you using?  I'm wondering if it could be due to some combination of two or more of the following:

- Microphone
- AEC
- Audio output in XBMC / WASAPI / Passthrough
- VC TTS trying to use reserved audio output

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 497
  • Karma: 43
    • View Profile
Re: HIGH CPU usage with VC
« Reply #4 on: February 05, 2015, 01:22:47 PM »
I use PTVL most of the time, other wise I'm streaming

Mic: Amulet and sometimes voxwav

not sure what AEC means sorry

Audio output in XBMC I believe is set to Default audio when I went to double check the "Audio Output Device" is blank
Hdmi out to tv then Composite (Red and White) to receiver (older receiver)

VC is doing nothing all three times that it has happened, when I looked through the event log the most recent item other then focused VC was at least 4min before my CPU Fan Kicked on (CPU fan gets loud when it kicks in sense its a smaller case)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: HIGH CPU usage with VC
« Reply #5 on: February 05, 2015, 02:02:15 PM »
AEC stands for Acoustic Echo Cancellation but it would not apply to Amulet or VoxWav.

"Default" is not really relevant because it just means it will use the Windows default output device but says nothing about how it is used.  What is relevant is whether you are using DirectSound vs. WASAPI and if you are using Passthrough.

I don't actually know if it's related to that or not, but since you mentioned that it happened consistently when watching PTVL I thought it might be a clue.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 497
  • Karma: 43
    • View Profile
Re: HIGH CPU usage with VC
« Reply #6 on: February 05, 2015, 03:02:08 PM »
sorry about that, I'm using direct sound because WASAPI messes with my game emulators, and I don't use passthrough
« Last Edit: February 05, 2015, 05:05:28 PM by PegLegTV »

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 497
  • Karma: 43
    • View Profile
Re: HIGH CPU usage with VC
« Reply #7 on: February 06, 2015, 04:02:48 PM »
Did some more testing and found that it's happening when PTVL is starting so I changed around some commands so they don't happen at the same time as starting PTVL and so far no more problems

Thanks 

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: HIGH CPU usage with VC
« Reply #8 on: February 06, 2015, 04:05:35 PM »
Mysterious but interesting!  Thanks for the update.  Hopefully your fix will work in the long run.