You are not logged in.

#1 2011-08-24 21:31:16

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

[SOLVED] Urxvt weird behavior in awesome

Since two weeks or so I'm using Awesome as my window manager, no issues with it so far except for the one I'm going to talk. Under Awesome urxvt seems to not be refreshing some programs output like axel, which I use some times to accelerate downloads, leaving this kind of nasty output:

(left column)

tYTFmeA

Axel usual behavior is to refresh that line instead of print it again. But for reasons I don't know It's not acting like it should.

Also, if you take a look at the output of htop, you will see that urxvt is taking 20% of my RAM, something that I've never seen happening in my computer but after switching to awesome and leaving the setup you can see in the screen opened for 10 hours or so.

I don't know what files to paste, so tell me if more information is needed.

I appreciate all the help given to solve this issue, because I've found nothing about it.

EDIT: I've made some tests, wanted to check if It didn't happen in openbox or was because of some update. This weird behavior doesn't seem to happen in openbox. In addition, terminal also suffers from it. gnome-terminal does not

Last edited by ethail (2011-08-27 19:12:34)


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

#2 2011-08-25 14:33:09

Rolinh
Member
From: Switzerland
Registered: 2011-05-07
Posts: 144
Website

Re: [SOLVED] Urxvt weird behavior in awesome

Hi,

a simple question: why don't you use the daemon? This is the BIG advantage of urxvt so why not use it?
Personally, I launch the urxvt daemon through my ~/.xinitrc:

# launches urxvtd daemon
urxvtd -q -f -o

I'm also using Awesome and rxvt-unicode and I haven't seen anything wrong.

Your ~/.Xdefaults could be useful too...

Offline

#3 2011-08-25 14:52:09

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: [SOLVED] Urxvt weird behavior in awesome

Thank you for your response, Rolinh. After posting yesterday I've tried several things, even another terminal emulator to see if the same happened. I can't talk about the memory usage increase but with terminal (lxde )the display of axel that should be updated is also printed again. Not with gnome-terminal. This does not happen for urxvt or terminal if I use openbox instead of awesome

About launching urxvt as daemon, it doesn't help. All the morning with it and memory usage got to 10%.It is not like urxvt starting taking that memory, but slowly creeping towards the top of most memory consuming process list. 10% took almost 7 hours or so, the screenshot I posted yesterday was with an uptime of 15h IIRC

Here (edited) was my .Xresources:



EDIT: I don't know how to qualify this but installing rxvt-unicode-patched from the AUR got me rid at least of the axel display trouble. I'll have a look to the memory issue, but if it doesn't appear, at least its solved. The terminal issue was only a testing and is not something I care about.

I'll wait until tomorrow to see if memory problems still exist, but if they don't, I'll mark this as solved. (Meanwhile I'm going to hit my head against a wall for not testing this before)

EDIT2:

Seems that the kind of memory leak is still happening. I've run urxvtd through valgrind for half hourwith this result:

==15217== LEAK SUMMARY:
==15217==    definitely lost: 1,577 bytes in 3 blocks
==15217==    indirectly lost: 2,400 bytes in 74 blocks
==15217==      possibly lost: 5,876 bytes in 93 blocks
==15217==    still reachable: 16,764,310 bytes in 119,845 blocks
==15217==         suppressed: 0 bytes in 0 blocks
==15217== 

full report, big file (4.5 MB) here:
http://db.tt/j4ee2p6

Meanwhile I've changed my .Xresources, here it is:

! urxvt settings

!--[Title]--!

URxvt*title: urxvt
URxvt*termName: rxvt-256color
URxvt*cursorBlink: true
URxvt*urgentOnBell: true

!--[URL Select]--!
URxvt.perl-ext-common: default,url-select,matcher,tabbed,clipboard
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.urlLauncher: aurora
URxvt.underlineURLs: true

!--[Fonts]--!

!URxvt.font: -*-terminus-*-*-*-*-14-*-*-*-*-*-*-u
!URxvt.font: -*-droid sans mono-*-*-*-*-14-*-*-*-*-*-*-u
URxvt.font: xft:Monospace:autohint=true:pixelsize=12:antialias=false
!URxvt.font: xft:terminus:pixelsize=16:antialias=false
!
URxvt.scrollBar: false
URxvt.skipBuiltinGlyphs: true

!--[Urxvt Options]--!

URxvt.boldMode: false
!URxvt.imLocale: es_ES.UTF-8
URxvt.loginShell: true
URxvt.saveLines: 512
urxvt.geometry: 90x45
URxvt.borderless: true
!URxvt.xftAntialias: true
URxvt.jumpScroll: true
URxvt.tintColor: white
URxvt.internalBorder: 0
URxvt.cursorBlink: false
URxvt.cursorColor: #dd9900
URxvt.cursorColor2: #000000
URxvt.background: #FFFFFF
URxvt.foreground: #ddccbb
URxvt.colorBD: #ffffff
URxvt.colorIT: #bbbbbb
URxvt.colorUL: #999999
URxvt.underlineColor: #999999
!Xcursor.theme: CG

!## teh transparency stuff
URxvt.inheritPixmap: true
URxvt*transparent: true
URxvt.tintColor: white
URxvt.shading: 30

! terminal colors ------------------------------------------------------------


URxvt*background: #000000
URxvt*foreground: #bfbdc0

URxvt*color0: #000000
URxvt*color1: #8a110e
URxvt*color2: #669f3d
URxvt*color3: #b3751e
URxvt*color4: #493d9f
URxvt*color5: #9216a3
URxvt*color6: #198a9c
URxvt*color7: #bfbdc0

URxvt*color8: #686773
URxvt*color9: #fc5166
URxvt*color10: #63ff54
URxvt*color11: #ffd75c
URxvt*color12: #766eff
URxvt*color13: #e151ff
URxvt*color14: #57ffec
URxvt*color15: #ffffff

!colors
*foreground:            #d3d3d3
*background:            #000000
*cursorColor:		orange
*color0:		#151515
*color8:		#505450
*color1:		#bf7979
*color9:		#f4a45f
*color2:		#97b26b
*color10:		#c5f779
*color3:		#cdcda1
*color11:		#ffffaf
*color4:		#4a5463
*color12:		#7d8794
*color5:		#9c3885
*color13:		#e628ba
*color6:		#88aadd
*color14:		#99ccff
*color7:		#ffffff
*color15:		#dedede

Should I post awesome rc.lua or theme.lua too?

EDIT3:

After some research and testing leaving urxvt and urxvtd with one client with pairs of this three programs (htop, weechat, pms (this one in both)) for 10 hours pointed to pms as culprit of the leaks, however, it's urxvt the one who shows the memory usage.

I'm using gnome-terminal with pms to double check the culprit since htop got discarded because it was also running on gnome-terminal

I think this post got kind of solved.

Last edited by ethail (2011-08-27 19:12:15)


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

Board footer

Powered by FluxBB