Menu

#1698 Using high CPU after wake from suspend or hibernate

Release_1.4.6
open
None
windows
5
2019-10-10
2019-10-08
valten
No

Hi, first of all thanks for a great app!
I have a problem with my current version (1.4.6), the app works perfectly when you use it but if you keep it opened for some time (I don't know if it is timed or linked to the screensaver or ?!) it starts to use a full core of my CPU (in my case the CPU goes from a few % when I use the app to 25% - a full core - when I don't use it). This is typical of apps mining coins in the background. Is it the case with Task Coach?

Discussion

  • Aaron Wolf

    Aaron Wolf - 2019-10-08
    • status: open --> waiting
    • assigned_to: Aaron Wolf
    • Priority: 1 --> 4
     
  • Aaron Wolf

    Aaron Wolf - 2019-10-08

    There's no way Task Coach is mining bitcoins (unless some crazy chance you somehow downloaded a hacked version from some other source). I assumed this was a hyperbole to just complain about the CPU use.

    Given the open-for-some-time issue, perhaps this is a file that is getting bloated in its delta file. Try closing Task Coach, deleting any .tsk.delta files and then re-opening. If it still has this issue, try renaming (or just deleting) the .ini when Task Coach is closed and then re-open. See https://answers.launchpad.net/taskcoach/+faq/1061

    If there's still issues, it may relate to the outdated libraries, but I'll have to then see if Jerome can help investigate further.

     
  • valten

    valten - 2019-10-09

    Thanks Aaron, I have checked the SHA-1 of the install file (TaskCoach-1.4.6-win32.exe), it is the same as the one displayed here (https://sourceforge.net/projects/taskcoach/files/taskcoach/Release-1.4.6/). I'll try to delete the delta and ini file and monitor what happens next.

     
  • valten

    valten - 2019-10-09

    I have deleted the delta files. I think the 25% happen after hibernation or >1 hour without user input on the machine. I'll let you know if this happens after the delta removal.
    One thing that may or may not be related, I have errors in the log:

    Unhandled Error
    Traceback (most recent call last):
      File "twisted\internet\base.pyo", line 413, in fireEvent
      File "twisted\internet\defer.pyo", line 301, in addCallback
      File "twisted\internet\defer.pyo", line 290, in addCallbacks
      File "twisted\internet\defer.pyo", line 551, in _runCallbacks
    --- <exception caught here> ---
      File "twisted\internet\base.pyo", line 426, in _continueFiring
      File "twisted\internet\_threadedselect.pyo", line 260, in _mainLoopShutdown
      File "twisted\internet\_threadedselect.pyo", line 101, in wakeUp
      File "twisted\internet\posixbase.pyo", line 97, in wakeUp
      File "twisted\python\util.pyo", line 776, in untilConcludes
    socket.error: [Errno 10054] An existing connection was forcibly closed by the remote host
    

    Connection to what?!

     
  • valten

    valten - 2019-10-09

    Deleted by OP. Not relevant to current case.

     

    Last edit: valten 2019-10-09
  • valten

    valten - 2019-10-09

    Deleted by OP. Not relevant to current case.

     

    Last edit: valten 2019-10-09
  • valten

    valten - 2019-10-09

    Deleted by OP. Not relevant to current case.

     

    Last edit: valten 2019-10-09
  • valten

    valten - 2019-10-09

    Back to the original issue: I can confirm that putting my windows 7 PC in hibernation (where it saves to disk) while task coach is running and then waking it up, triggers the 25% CPU issue.

     
    • Aaron Wolf

      Aaron Wolf - 2019-10-09

      Are you suggesting that it isn't a problem until suspend, and then something about waking from hibernate causes the CPU issue?

      If so, does it then clear up if you close and re-open Task Coach?

       
  • valten

    valten - 2019-10-09

    1- "something about waking from hibernate causes the CPU issue" Yes.
    2- "does it then clear up if you close and re-open Task Coach?" Yes, back to normal (<1%)
    3- " it isn't a problem until suspend" I am not 100% sure that only hibernate triggers the condition. I will do more test.

     

    Last edit: valten 2019-10-09
  • Aaron Wolf

    Aaron Wolf - 2019-10-09
    • summary: Task coach mining bitcoins in the background? --> Using high CPU after wake from hibernate
     
  • valten

    valten - 2019-10-10

    I made another test by putting the PC in sleep mode (not hibernate) and I also get the CPU issue.

     
  • valten

    valten - 2019-10-10

    Note that locking the session down with Win+L and logging back in does not lead to the issue (CPU stays low).

     
  • Aaron Wolf

    Aaron Wolf - 2019-10-10
    • summary: Using high CPU after wake from hibernate --> Using high CPU after wake from suspend or hibernate
    • status: waiting --> open
    • assigned_to: Aaron Wolf --> Jérome Laheurte
    • Priority: 4 --> 5
     
  • Aaron Wolf

    Aaron Wolf - 2019-10-10

    Assigning to Jerome. I don't know if he'll figure out to do anything though. It may be that we just chalk this up to the need to update our frameworks still. That will fix many things once we finally get to it.

     

Log in to post a comment.