Summary: | memory leak when using xterm control codes to write to titlebar | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | W. B. Maguire II <maguire> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | RedHat Enterprise Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
W. B. Maguire II
2003-07-18 00:25:44 UTC
Doh!! I forgot that the control codes wouldn't show-up. The one at the BEGINNING of the string is an Esc, which you get by typing: CTRL-V Esc (octal 033, decimal 27). The one at the END of the string is a Control-G, which you get by typing: CTRL-V CTRL-G (octal 007, decimal 7). Thanks, Bruce. You say that the memory leak shows up in Kicker... How do you know that it's a Konsole bug and not a Kicker bug? For example, that behaviour would make sense if Kicker leaks memory every time a window's title bar changes, perhaps during updating the taskbar. If you run your script inside KDE but from a normal xterm, does Kicker still leak memory? I really think this is a Kicker bug. I could not get your script to cause Kicker to leak memory when run from a generic xterm, but I think xterm is smart enough not to reset the title if it is the same string as the one you sent last time. I can get Kicker's memory to grow if I run this script from an xterm, which adds an element of randomness to the title string to work around xterm being smart: #!/bin/bash while true; do echo -ne "\033]2;${RANDOM}123456789012345678901234567890\007" done Shoot! Thanks for the help. I'll go to my Linux box right now, and try it out for myself, but it certainly sounds like you are correct! Double-Doh! I can't believe that it did not occur to me that it really *could* be Kicker. Thanks again. If I get an XTerm to cause the same memory leak, then I will re- submit this as a Kicker bug. Bruce. Yep. "awendt" was right! This is, in fact, a Kicker bug, *not* a Konsole bug. I'm sorry that I defamed the wonderful Konsole! ;-) Now, to move this baby to a *new* bug report under Kicker (after checking to make sure it's not already there somewhere!). Sorry for the noise, Bruce. |