Bug 92368 - Kile hangs sometimes while editing
Summary: Kile hangs sometimes while editing
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: VHI critical
Target Milestone: ---
Assignee: Jeroen Wijnhout
URL:
Keywords:
: 114006 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-30 07:40 UTC by Christoph Thielecke
Modified: 2005-11-04 14:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
backtrace (6.04 KB, text/plain)
2005-11-01 23:16 UTC, Georg Robbers
Details
tentative patch (1.20 KB, patch)
2005-11-01 23:18 UTC, Georg Robbers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Thielecke 2004-10-30 07:40:49 UTC
Version:           1.7b2 (using KDE 3.3.1, SuSE)
Compiler:          gcc version 3.3.3 (SuSE Linux)
OS:                Linux (i686) release 2.6.9

Sometimes kile hangs (gui freeze) and nothing can be done (no save documents, etc). cpu usage is very low (< 2%). Only killing kile helps.
Comment 1 Christian Keller 2005-10-05 13:58:35 UTC
Version: 1.8.1 (KDE 3.4.2, debian testing)
Compiler: unkown
Os: Linux (i686) 2.6.13

I have the same problem. The GUI hangs and I can nothing do.
There is no CPU usage (<1%). I started kile from a console
and after this problem happend, I noticed this there:
----8<--------8<--------8<--------8<--------8<----
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  20
  Minor opcode:  0
  Resource id:  0x2a00df8
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  20
  Minor opcode:  0
  Resource id:  0x2a00df8
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  18
  Minor opcode:  0
  Resource id:  0x2a00df8
----8<--------8<--------8<--------8<--------8<----

Then I killed kile and restarted it.

Is there a signal that I could send kile that it saves
my work?
Something like SIGUSR1?

Thanks
Chris
Comment 2 Jeroen Wijnhout 2005-10-05 20:28:51 UTC
This doesn't look like a Kile bug, but worse. If you wait long enough (i.e. minutes), does that help?
Comment 3 Jeroen Wijnhout 2005-10-07 12:30:59 UTC
*** Bug 114006 has been marked as a duplicate of this bug. ***
Comment 4 Christopher 2005-10-27 23:09:49 UTC
I'm having the same problem. 
It seems that the GUI freezes while kile does an autosave of the document i'm typing in. I find the active document correctly saved at the time the GUI freezed.
AND I find the .backup file saved at the same time. The content of both files is identical.

The other documents remain unsaved until the next autosave is scheduled (10 Minutes later for me). 

When I log out of KDE before all documents in Kile are autosaved. I can choose wether i want to save these documents or not.

Hope this helps... It's not a good feeling having an editor that freezes from time to time while writing ur thesis =)

Cheers,
Christopher
Comment 5 Georg Robbers 2005-11-01 23:13:53 UTC
Same thing happened to me twice today; I'm attaching the backtrace.
It seems like the enter_loop hack in KIO::NetAccess might be the culprit, although I don't quite understand why it doesn't exit the eventloop in this particular case.
I'm tempted to think though, that something like the attached patch might "fix" it, but it's hard to test with a not-really-reproducible hang like this.
Comment 6 Georg Robbers 2005-11-01 23:16:13 UTC
Created attachment 13244 [details]
backtrace
Comment 7 Georg Robbers 2005-11-01 23:18:00 UTC
Created attachment 13245 [details]
tentative patch
Comment 8 Jeroen Wijnhout 2005-11-04 13:56:26 UTC
Hi, thanks for the patch. I actually managed to reproduce the bug, so that is good news. The bad news is that your patch didn't fix the bug. However, I'm working on a different solution that looks promising.

best,
Jeroen
Comment 9 Jeroen Wijnhout 2005-11-04 14:06:58 UTC
Fixed the bug for the next release (kile 1.9). If you are able, please test it, to make sure the bug is really gone.

best,
Jeroen