Export to GitHub

vtg - issue #136

Opening a single .vala file in MonoDevelop 2.4 causes massive CPU usage.


Posted on Jun 25, 2010 by Grumpy Cat

What steps will reproduce the problem? 1. Use MonoDevelop 2.4 and libafrodite from trunk. 2. Get this source: http://repository.maemo.org/extras-devel/pool/fremantle/free/source/e/echognomix/echognomix_0.1-5.tar.gz Extract it in a dir. 2. Open src/echognomix.vala only. The CPU usage hits the ceiling and spans on several cores (4 in my case). Memory seems to be used aplenty, didn't wait to fill it all up. Check the attached screenshot. 3. If you open the solution in the main dir, this issue doesn't happen.

What version of the product are you using? On what operating system? MonoDevelop 2.4, libafrodite from trunk, valac 0.8.1, openSUSE 11.2 64bit, the project comes with own VAPIs and is expected to be built in Scratchbox and Maemo 5, build isn't needed though.

Attachments

Comment #1

Posted on Jun 26, 2010 by Quick Ox

I just tried and I've no problem with gedit and vtg (always from trunk). Can you try in gedit with vtg? (I'm sorry but I haven't Monodevelop 2.4 at hand)

Comment #2

Posted on Jun 27, 2010 by Grumpy Cat

I filed this bug only because of a comment from Andrea Del Signore in Vala mailing list: http://mail.gnome.org/archives/vala-list/2010-June/msg00161.html

I doubt it is reproducible with vtg. However I can try with vtg later, but first I need to build it.

Comment #3

Posted on Jun 27, 2010 by Quick Ox

I'm Andrea Del Signore sejerpz :)

I'd like to try with monodevelop but compiling from sources it's not an option for me, so I've to wait when it lands on debian sid.

Comment #4

Posted on Jul 1, 2010 by Happy Panda

I use Monodevelop 2.4. It's the entire reason Andrea and I worked to get libafrodite compiling alone. :)

There is high CPU usage when a file is opened, but it's only temporary. You'll find that if you try to use completion while CPU usage is high, you'll only get a blank box with "gathering class information" in it. If you try completion again after CPU usage drops to normal, it'll work correctly.

I don't claim to know how the Vala extension for MD is implemented, but I would hazard a guess that this is what the CPU usage is spent doing; gathering class info for completion. Check it on your side and see if it eventually drops. It takes 5-10 seconds on my Aspire One netbook. I have my own vala project, so I used it instead of your file. :)

Comment #5

Posted on Jul 1, 2010 by Happy Panda

Comment deleted

Comment #6

Posted on Jul 1, 2010 by Happy Panda

Actually, nix that. Completion still isn't acting consistently inside MD. I'd assumed it was a bug in the Vala extension, but I can't contact its developer at all.

What kind of changes were made to libafrodite between vtg 0.7 and SVN trunk?

Comment #7

Posted on Jul 1, 2010 by Happy Panda

I got curious and downgraded Vala to 0.7.10 so I could install vtg 0.7.0. That actually made MD-Vala worse.

VTG itself works fine, though. So it seems that the Vala extension for MonoDevelop is simply junk. And since the developer can't be contacted, we're simply hung out to dry.

Status: New

Labels:
Type-Defect Priority-Medium