[Gambas-user] Memory problems with Gambas3

M. Cs. mohareve at ...626...
Sun Feb 19 23:04:50 CET 2012


I have similar issue:
I have a module and private subs in it. I'm using string arrays
declared inside that SUB. The SUB is invoked when I scan some
folders/files. The memory consumption rises during this scan by around
30 MB, which is quite normal, since I'm feeding memory with huge
amount of data. The problem is, when the SUB ends, the memory
consumption won't fall back to the previous level, although it should,
because the arrays are destroyed with closing of the SUB.

Csaba

2012/2/19, Jussi Lahtinen <jussi.lahtinen at ...626...>:
> Unfortunately I can't send the project. But I keep on trying to isolate the
> problem.
> I'm pretty sure leak is from Gambas as it is fixed by commenting out the
> three lines.
>
> Jussi
>
>
>
>
> 2012/2/19 Benoît Minisini <gambas at ...1...>
>
>> Le 19/02/2012 19:12, Jussi Lahtinen a écrit :
>> > 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
>> >
>>
>> Gambas will not prevent you from creating pictures into the X server
>> until it eats all the memory, so I must see your code so that I can know
>> if the leak is in Gambas or in your code.
>>
>> Regards,
>>
>> --
>> Benoît Minisini
>>
>>
>> ------------------------------------------------------------------------------
>> Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list