Please sync cedet 1.0pre4-1 from Debian

Bug #93667 reported by Albert Vilella
62
Affects Status Importance Assigned to Milestone
cedet (Ubuntu)
Fix Released
Medium
Michael Olson

Bug Description

Binary package hint: emacs

Hi,

On ubuntu edgy, I installed jde:
sudo apt-get install jde

And when I edit a simple helloword java file, the cpu is being used at 100% by emacs all the time, even when not doing anything, just with the java file opened. If I close the java file, it stops using the cpu for 2 seconds, then is back at 100%, even with no other buffers opened.

If I close emacs and restart it, edit other files not related to java, everything is fine, cpu usage under normal terms.

What kind of info can I provide that can be useful for this?

Revision history for this message
Albert Vilella (avilella) wrote :

the same happens with C language files.

Revision history for this message
Stephen Sinclair (radarsat1) wrote :

It's also been happening to me recently with Python files (using python-mode)
Is it possibly related to <a href="https://bugs.launchpad.net/ubuntu/+source/emacs21/+bug/101905">Bug #101905</a>

It may be related to "zone". Doing "M-x zone" does not cause 100% CPU usage.
However, doing "M-x zone-when-idle" and choosing 1 second caused it for me. But not every time.
I will look up how to disable zone for now.

Revision history for this message
Stephen Sinclair (radarsat1) wrote :

It seems that this problem is not related to zone. I'm pretty sure zone makes no difference to this problem.
However, I've just figured out that it only occurs (and occurs consistantly) when using emacs-snapshot-gtk. It doesn't occur if I run "/usr/bin/emacs21".

Revision history for this message
Micah Cowan (micahcowan) wrote :

Moving to emacs-snapshot per Steve. If someone is in fact experiencing it on emacs21, please add that as well, and mention what version of the emacs package you are using.

Steve, which version of the emacs-snapshot package are you using?

Changed in emacs21:
assignee: nobody → micahcowan
importance: Undecided → Medium
status: Unconfirmed → Needs Info
Revision history for this message
Terry 'Mongoose' Hendrix (mongooseichiban) wrote :

It seems the old idle-semantic bug is coming to bite our ass again? Try getting a new semantic-idle.el from cvs and see if that fixes it. Here are some useful links:

Someone that found and fixed the issue. ( I think this issue is actually been added back/fixed a couple of times since sept 2005)
http://<email address hidden>/msg12549.html

Said CVS source -- you can download it from there too. Byte compile and toss in your /usr/share/emacs-snapshot/site-lisp/semantic

http://cedet.cvs.sourceforge.net/cedet/cedet/semantic/semantic-idle.el?view=log

How I CONFIRMED:
If you missed out -- the idle parser doesn't idle properly due to bad scheduling. I have confirmed the bug is in Ubuntu feisty as well by running emacs and looking at the source.

apt-get source semantic
cd semantic
edit semantic-idle.el
Goto line 286 and compare to cvs diff above.

cheers,
Terry

Revision history for this message
Reinhard Tartler (siretart) wrote :

From: "Alexandre Vassalotti" <email address hidden>
Date: Thu, 5 Jul 2007 12:16:45 -0400

There is a fix described at:
http://www.togaware.com/linux/survivor/Emacs_Using.html

However, I think it would be better to just update the whole cadet
package to the latest release (1.0pre4), which fixes this bug and a
few others. I will try to contact the current maintainer of the debian
package to see if he's working on it, otherwise I will package it
myself.

Revision history for this message
Michael Olson (mwolson) wrote :

I worked some on these problems last night, in addition to emacs22 support. Can you hold on for another day or so while I sort through the changes? The Debian maintainer didn't actually apply a couple of the patches that he made. I will be sure to base the package on the newest cedet release, once I am certain that things are working the way they should.

Revision history for this message
Terry 'Mongoose' Hendrix (mongooseichiban) wrote : Re: [Bug 93667] Re: 100% cpu when editing a java file with jde

On 7/5/07, Michael W. Olson <email address hidden> wrote:
> I worked some on these problems last night, in addition to emacs22
> support. Can you hold on for another day or so while I sort through the
> changes? The Debian maintainer didn't actually apply a couple of the
> patches that he made. I will be sure to base the package on the newest
> cedet release, once I am certain that things are working the way they
> should.

This bug has been in for months, so I guess everyone that cares
already has it patched anyway. Waiting another day should be fine.
;)

cheers,
Terry

--
http://icculus.org/freyja
http://icculus.org/~mongoose

Revision history for this message
Michael Olson (mwolson) wrote : Re: 100% cpu when editing a java file with jde

I've uploaded the new package to REVU. Link: http://revu.tauware.de/details.py?upid=5895.

Changed in emacs-snapshot:
assignee: micahcowan → nobody
status: Incomplete → Confirmed
Revision history for this message
Emmet Hikory (persia) wrote :

Would you mind attaching the unified diff of the debian/ directories of the new and old versions to ease review? Also, the new candidate package also supports emacs22, so it ought not be uploaded until emacs22 is available in the archives. I've unsubscribed ubuntu-universe-sponsors pending these adjustments: please resubscribe once the debdiff is attached and emacs22 is available.

Changed in emacs-snapshot:
assignee: nobody → mwolson-member
status: Confirmed → In Progress
Revision history for this message
Michael Olson (mwolson) wrote :

Here you go. Note that the 1.0pre3-7 package had some changes outside of the debian/ directory. I've since removed those and placed them into debian/patches/ when applicable (if I recall correctly, though, there was only one such change, and I removed it because implemented a better solution).

Revision history for this message
Michael Olson (mwolson) wrote :

Debian now has my changes (in 1.0pre4-1), so it would be best just to sync.

Changed in cedet:
status: In Progress → Confirmed
Revision history for this message
Reinhard Tartler (siretart) wrote :

confirming. Archive admins, please sync cedet_1.0pre4-1/unstable!

Revision history for this message
Sebastien Bacher (seb128) wrote :

[Updating] cedet (1:1.0pre3-7 [Ubuntu] < 1:1.0pre4-1 [Debian])
 * Trying to add cedet...
  - <cedet_1.0pre4-1.diff.gz: downloading from http://ftp.us.debian.org/debian/>
  - <cedet_1.0pre4-1.dsc: downloading from http://ftp.us.debian.org/debian/>
  - <cedet_1.0pre4.orig.tar.gz: downloading from http://ftp.us.debian.org/debian/>
I: cedet [universe] -> speedbar_1:1.0pre3-7 [universe].
I: cedet [universe] -> ede_1:1.0pre3-7 [universe].
I: cedet [universe] -> cedet-common_1:1.0pre3-7 [universe].
I: cedet [universe] -> semantic_1:1.0pre3-7 [universe].
I: cedet [universe] -> speedbar-beta_1:1.0pre3-7 [universe].
I: cedet [universe] -> cogre_1:1.0pre3-7 [universe].
I: cedet [universe] -> eieio_1:1.0pre3-7 [universe].
I: cedet [universe] -> cedet-contrib_1:1.0pre3-7 [universe].

Changed in cedet:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.