|
2012-11-16
, 14:00
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#52
|
Meh, I wonder how is that possible, less than 1000 lines of code and so much bugs
The Following 3 Users Say Thank You to reinob For This Useful Post: | ||
|
2012-11-16
, 14:03
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#53
|
struct alarm *a; a->snooze_timeout_tag = 0;
The Following 5 Users Say Thank You to reinob For This Useful Post: | ||
|
2012-11-16
, 14:11
|
Posts: 3,074 |
Thanked: 12,961 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#54
|
The Following 5 Users Say Thank You to freemangordon For This Useful Post: | ||
|
2012-11-16
, 14:16
|
Posts: 3,074 |
Thanked: 12,961 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#55
|
another one (not a leak but a source of getting a segmentation fault).
In gboolean alarm_snooze() you have
do I need to make it more explicit?Code:struct alarm *a; a->snooze_timeout_tag = 0;
|
2012-11-16
, 14:21
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#56
|
BTW I have the feeling that alamUI is not the only systemui plugin to leak memory. And that systemUI is not the only daemon to leak. Otherwise I can't explain to myself increasing swap usage (at least here) over the time.
|
2012-11-16
, 14:42
|
Posts: 3,074 |
Thanked: 12,961 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#57
|
The Following 10 Users Say Thank You to freemangordon For This Useful Post: | ||
|
2012-11-16
, 17:32
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#58
|
Yes, mee too.
My swap usage is increasing day by day. If I would not have extended size of swap on SD it would fill up completely (almost ).
Thanks for investigating!
#!/usr/bin/perl use strict; use warnings; my @watch = ( "/sbin/dsme", "/sbin/dsme-server", "/usr/bin/pulseaudio", "/usr/bin/Xorg", "/usr/bin/dbus-daemon", "/usr/bin/systemui", "/usr/bin/hildon-status-menu", "/usr/bin/hildon-home", "/usr/bin/hildon-desktop", "/usr/sbin/browserd" ); my %initial = (); # percentage VSZ has to change to report my $THRESHOLD = 0.0; # will check once every $INTERVAL seconds my $INTERVAL = 4; while(1) { my %current = (); open(FH, "ps -eo vsz,command |"); while(<FH>) { chomp; my @fields = split; my $vsz = $fields[0]; my $cmd = $fields[1]; # print "vsz($vsz) cmd($cmd)\n"; foreach my $daemon (@watch) { if($daemon eq $cmd) { $current{$cmd} += $vsz; } } } if(%initial) { foreach my $daemon (keys %current) { my $vsz0 = $initial{$daemon}; my $vsz1 = $current{$daemon}; my $mvar = (100.0 *($vsz1 - $vsz0)) / $vsz0; if(abs($mvar) > $THRESHOLD) { my $sign = "+"; if($vsz1 < $vsz0) { $sign = "-"; } my $now = localtime; print "[$now] $daemon, $vsz0 -> $vsz1 ($sign)\n"; } } # remove next line if absolute (from start) values are wanted %initial = %current; } else { print "Initializing..\n"; %initial = %current; } close(FH); sleep($INTERVAL); }
The Following 8 Users Say Thank You to reinob For This Useful Post: | ||
|
2012-11-16
, 19:30
|
Posts: 3,074 |
Thanked: 12,961 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#59
|
apt-cache show osso-systemui-tklock Package: osso-systemui-tklock Priority: optional Section: misc Installed-Size: 76
The Following 8 Users Say Thank You to freemangordon For This Useful Post: | ||
|
2012-11-16
, 19:56
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#60
|
However, I would say that for now it seems alarmui does not leak anymore. On the other hand swipe unlock (aka tklock) systemui plugin seems to leak 48k on 2-3 unlocks
Unfortunately there is no x86 binary, only ARM, so I am not sure I want to start REing that. A rewrite might be much easier to be done than RE.
The Following 5 Users Say Thank You to reinob For This Useful Post: | ||
Tags |
alarm clock, nokia n9 |
|
Meh, I wonder how is that possible, less than 1000 lines of code and so much bugs
Never fear. I is here.
720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900
Community SSU developer
kernel-power developer and maintainer