Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2018 16:03:49 +0100
From:      Guido Falsi <mad@madpilot.net>
To:        Erich Dollansky <freebsd.ed.lists@sumeritec.com>
Cc:        "'ports@FreeBSD.org'" <ports@FreeBSD.org>
Subject:   Re: mousepad memory leak
Message-ID:  <7724bcc7-9c4f-c196-6348-c4a4fde0fe97@madpilot.net>
In-Reply-To: <20180121084315.7f3696a7.freebsd.ed.lists@sumeritec.com>
References:  <20180119140623.3a8116cc.freebsd.ed.lists@sumeritec.com> <5e86f329-5bda-2494-c6e7-01482b685f20@madpilot.net> <20180121084315.7f3696a7.freebsd.ed.lists@sumeritec.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01/21/2018 01:44, Erich Dollansky wrote:

>>
>> The people who are most able to help you are the XFCE guys (mousepad
>> being part of the xfce desktop). Is this issue FreeBSD specific? If
>> not you should definitely report this to the upstream developers.
>>
> We are a FreeBSD-only shop.

Great for you and FreeBSD, but understanding if the problem is FreeBSD
specific or not helps in the diagnosis.

Setting up  quick jail with some linux distribution is really a fast thing.

> 
>> I'll make a pair of tests in virtual machines to see what happens.
>>
>> Can you confirm simple steps to reproduce as follows:
>>
>> - Open 2 mousepad windows and open documents in them
> 
> No, you have to open only one document in one windows. On a machine
> with only 4GB or RAM, it happens around 10 windows with 10 documents.
> The documents are small. Not more than 4KB, plain text, no 

I did a test in two jails, one with FreeBSD and one with arch linux.

I got the same behavior, so it's not FreeBSD specific. It's not a memory
leak though. It looks more like some limitation in thee mousepad
architecture.

What I did is open mousepad from the xfce menu, open a small text file
in it (some random file from /etc), then choose "new window" from the
menu, open a file in the new window, and so on.

Up to 8 windows it's working as usual, after that it gets slower and
slower, allocation a lot of ram for every operation. It looks like the
allocated memory grows exponentially, after 10-12 windows it allocates
really a lot of memory, this could explaain the behaviour you're seeing.

Since it's doing the same in linux it looks like a bug in the upstream
software so you should report it there:

https://bugzilla.xfce.org/

I also found a bug which looks somewhat similar:

https://bugzilla.xfce.org/show_bug.cgi?id=13978


But don't describe this as a memory leak, because it does not look like
that. Closing the opened windows, while being slow, did actually release
the used memory.

I also noticed that when mousepad was working and allocating memory also
the "dconf-service" process consuming a lot of CPU. I think it's the
communication with this demon which actually has some problems.

Just to know why do you need so many windows, when tabs are available?
Since it looks like a fundamental bug in mousepad cannot you use some
other editor?

-- 
Guido Falsi <mad@madpilot.net>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7724bcc7-9c4f-c196-6348-c4a4fde0fe97>