#493 open
Olli

100% CPU usage on window focus

Reported by Olli | March 27th, 2011 @ 12:55 PM

Redcar uses 100% cpu if the redcar window gets focus and at least one file (no matter what) file is opened.
Three is no logoutput which points to the problem.
I checked if any additional plugin is involved by removing them but the behavior is the same.

Comments and changes to this ticket

  • Olli

    Olli March 27th, 2011 @ 12:57 PM

    I have to add i use 0.11 on Debian sid.
    Java
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)

  • Olli

    Olli March 27th, 2011 @ 01:07 PM

    It seems that it is caused by the spellchecker. If I turn it off the cpu usage is normal.

  • delisa

    delisa March 29th, 2011 @ 04:50 PM

    Redcar has a spellchecker?

  • Olli

    Olli March 29th, 2011 @ 05:07 PM

    Oh ... i meant the syntax checker ;)

  • delisa

    delisa March 29th, 2011 @ 05:18 PM

    ah okay. what type of file?

  • Olli

    Olli March 29th, 2011 @ 05:50 PM

    I am working with .rb files as well as .erb files.
    The behavior also appear on normal textfiles.

  • Daniel Lucraft

    Daniel Lucraft March 30th, 2011 @ 08:34 AM

    • State changed from “new” to “open”

    This happens on any file you open with syntax checking on? That's very odd. Can you send us a sample of one of the files it happens on anyway please?

  • Olli

    Olli March 31st, 2011 @ 12:01 PM

    It seems the behavior changed a bit. After activating the syntax highlighting again the cpu usage is high for 10 seconds on opening new files, changing tabs, clicking a bit in redcar or focusing the window. A permanent 100% usage seems not to happen anymore.
    I used simply .rb files of a rails project I'm working on.
    Nonetheless i think the cpu usage is too high because every time i focus the redcar window the syntax highlighting is checked even though nothing changed in the files I had open.
    I will keep an eye on whether the behavior i described on top still exists.

  • Daniel Lucraft

    Daniel Lucraft April 1st, 2011 @ 08:35 AM

    If you have a project open, everytime the window is focussed three things happen in the background;

    1. the entire directory tree is scanned for changed files (this can take a surprisingly long time on a large or cold repository)
    2. any changed files have their contents scanned for declarations
    3. any changed files are reindexed by lucene.

    You can look in the Task Manager to see what is happening and how long it takes.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A programmer's text editor for Gnome.

People watching this ticket

Pages