[Gambas-user] Memory problems with Gambas3
Jussi Lahtinen
jussi.lahtinen at ...626...
Sat Feb 25 23:06:57 CET 2012
I can't manage to isolate the problem and I can't send the source.
Right now I'm using following workaround;
Draw.Begin(tmpPic)
Draw.Image(imgKoko, 0, 0)
Draw.Image(imgKarVe, 0, 0)
Draw.Picture(picKohdistin, I.KarX - 12, I.KarY - 12)
Draw.End()
Draw.Picture(tmpPic, 0, 0)
So, using temporary picture the problem disappears.
But the situation is not very satisfying. So any debugging tips?
How to gather information about what happen? Is there something I can do
with gdb, etc?
Or is there some debugging dispatch for gbx3?
Jussi
On Sun, Feb 19, 2012 at 20:12, Jussi Lahtinen <jussi.lahtinen at ...626...>wrote:
> Hi!
> I was debugging huge project to find out why it's execution is slowed down
> to unusable, when suddenly screen went blank and I was logged out.
> Reason found from logs: Killed process 1264 (Xorg) total-vm:6406864kB,
> anon-rss:2751124kB, file-rss:784kB
> So I ran out of memory. This shouldn't happen, the project I'm working
> with doesn't need even nearly that much memory.
>
> I can prevent this happening when I comment out content of draw event from
> drawingarea.
> Right now there are only three lines, which shouldn't cause cumulative
> memory usage:
> Draw.Image(imgKoko, 0, 0)
> Draw.Image(imgKarVe, 0, 0)
> Draw.Picture(picKohdistin, I.KarX - 12, I.KarY - 12)
>
> As I said the project is huge, and so far I haven't be able to isolate
> what causes the problem.
> All I know is that in certain form, every time draw event is raised, it
> causes Xorg to take more memory.
>
> Valgrind log is attached.
>
> Any ideas?
>
> Jussi
>
More information about the User
mailing list