Memory leak? - Mem usage bumps on Minimize

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Canderel
Sher'Tul
Posts: 1252
Joined: Mon Nov 24, 2003 2:31 pm
Location: South Africa

Memory leak? - Mem usage bumps on Minimize

#1 Post by Canderel »

I played, cast magic mapping, alt-tabbed to start reporting a bug on display issue (door was displaying as a white square), then wanted to take a screen shot, but T-Engine stopped responding and was taking up 1.3gb of memory (probably the reason it stopped responding, and also probably the reason for the white square on the doors).

I had, the Dunedan healing on, read the scroll of magic mapping (moved/run) around a bit, and quaffed a couple of light healing potions.

Here is the last part of the log:

Code: Select all

[SOUND] loading from	/data/sound/actions/read.wav	:=:	userdata: 0930C630
[LOG]	Meyrick reads a scroll!
Total encumbrance	16.09
[LOG]	You have no more #FFFFFF#scroll of magic mapping#LAST#
[ATTACK] to 	Meyrick	 :: 	17.72	1	0	::	1
checkHit	6	3.5
=> chance to hit	59.691001300806
[ATTACK] raw dam	17.72	versus	0	with APR	1
[ATTACK] after range	23
[PHYS CRIT %]	2.5
[ATTACK] after crit	23
[ATTACK] after mult	23
[PROJECTOR] res	0	1	 on dam	23
[PROJECTOR] final dam	23
[LOG]	Skeleton warrior hits Meyrick for #aaaaaa#23.00 physical damage#LAST#.
210 frames in 10.019 seconds = 20.9602 FPS
Total encumbrance	16.09
bind	HOTKEY_5	function: 090F2BE0
bind	MOVE_UP	function: 090F71B8
bind	HOTKEY_THIRD_1	function: 090F7460
bind	HOTKEY_SECOND_9	function: 090F64C0
bind	HOTKEY_SECOND_2	function: 090F2668
bind	HOTKEY_SECOND_1	function: 090FAF70
bind	HOTKEY_3	function: 090EC600
bind	HOTKEY_1	function: 090F9BC0
bind	HOTKEY_THIRD_8	function: 090F26E0
bind	HOTKEY_SECOND_5	function: 090FAC00
bind	HOTKEY_SECOND_3	function: 090F8568
bind	HOTKEY_4	function: 090F09F8
bind	HOTKEY_THIRD_9	function: 090ECAD8
bind	HOTKEY_SECOND_10	function: 090F9C60
bind	HOTKEY_SECOND_8	function: 090F8108
bind	HOTKEY_SECOND_4	function: 090F3220
bind	HOTKEY_SECOND_6	function: 090EFBC0
bind	HOTKEY_THIRD_12	function: 090F1C18
bind	HOTKEY_2	function: 090F3BD0
bind	HOTKEY_THIRD_10	function: 090FB858
bind	HOTKEY_8	function: 090F7398
bind	HOTKEY_THIRD_11	function: 090EC2E0
bind	EXIT	function: 090F5A48
bind	ACCEPT	function: 090F6678
bind	MOVE_RIGHT	function: 090F2578
bind	MOVE_LEFT	function: 090FBCE0
bind	MOVE_DOWN	function: 090EC3D0
bind	HOTKEY_SECOND_12	function: 090F8B08
bind	HOTKEY_THIRD_7	function: 090EFD28
bind	HOTKEY_7	function: 090FB218
bind	HOTKEY_THIRD_6	function: 090FBA38
bind	HOTKEY_THIRD_5	function: 090EDDE8
bind	HOTKEY_10	function: 090F2208
bind	HOTKEY_9	function: 090F1F10
bind	HOTKEY_THIRD_4	function: 090ED3E8
bind	HOTKEY_6	function: 090FAD90
bind	HOTKEY_SECOND_11	function: 090EC538
bind	HOTKEY_THIRD_2	function: 090ECFD8
bind	HOTKEY_SECOND_7	function: 090F2DC0
bind	HOTKEY_12	function: 090F7488
bind	HOTKEY_THIRD_3	function: 090FBA88
bind	HOTKEY_11	function: 090FACC8
[SOUND] loading from	/data/sound/actions/quaff.wav	:=:	userdata: 0937C8D8
[LOG]	Meyrick quaffs a 4 potion of lesser healing!
Total encumbrance	15.89
[LOG]	You have no more #FFFFFF#potion of lesser healing#LAST#
[ATTACK] to 	Meyrick	 :: 	17.72	1	0	::	1
checkHit	6	3.5
=> chance to hit	59.691001300806
[ATTACK] raw dam	17.72	versus	0	with APR	1
[ATTACK] after range	26
[PHYS CRIT %]	2.5
[ATTACK] after crit	26
[ATTACK] after mult	26
[PROJECTOR] res	0	1	 on dam	26
[PROJECTOR] final dam	26
[LOG]	Skeleton warrior hits Meyrick for #aaaaaa#26.00 physical damage#LAST#.
[LOG]	#00ff00#Talent Steady Shot is ready to use.
263227 ticks  in 10.014 seconds = 26285.9 TPS
Total encumbrance	15.89
bind	HOTKEY_5	function: 09308F80
bind	MOVE_UP	function: 092FCDE8
bind	HOTKEY_THIRD_1	function: 09306758
bind	HOTKEY_SECOND_9	function: 092FEFF8
bind	HOTKEY_SECOND_2	function: 092FFBB0
bind	HOTKEY_SECOND_1	function: 09309E80
bind	HOTKEY_3	function: 09306CF8
bind	HOTKEY_1	function: 093041D8
bind	HOTKEY_THIRD_8	function: 09300B28
bind	HOTKEY_SECOND_5	function: 092FEEB8
bind	HOTKEY_SECOND_3	function: 09306190
bind	HOTKEY_4	function: 092FC078
bind	HOTKEY_THIRD_9	function: 09303850
bind	HOTKEY_SECOND_10	function: 093040C0
bind	HOTKEY_SECOND_8	function: 09306910
bind	HOTKEY_SECOND_4	function: 092FA5E8
bind	HOTKEY_SECOND_6	function: 093068E8
bind	HOTKEY_THIRD_12	function: 092FA778
bind	HOTKEY_2	function: 09304160
bind	HOTKEY_THIRD_10	function: 092FE210
bind	HOTKEY_8	function: 09303008
bind	HOTKEY_THIRD_11	function: 093022E8
bind	EXIT	function: 093062D0
bind	ACCEPT	function: 093025B8
bind	MOVE_RIGHT	function: 09307EA0
bind	MOVE_LEFT	function: 093034B8
bind	MOVE_DOWN	function: 09306668
bind	HOTKEY_SECOND_12	function: 09306CA8
bind	HOTKEY_THIRD_7	function: 09305768
bind	HOTKEY_7	function: 092FA160
bind	HOTKEY_THIRD_6	function: 09307A90
bind	HOTKEY_THIRD_5	function: 092FEDA0
bind	HOTKEY_10	function: 09306E60
bind	HOTKEY_9	function: 09303468
bind	HOTKEY_THIRD_4	function: 092FC398
bind	HOTKEY_6	function: 093024F0
bind	HOTKEY_SECOND_11	function: 092FA818
bind	HOTKEY_THIRD_2	function: 092FE008
bind	HOTKEY_SECOND_7	function: 09301C08
bind	HOTKEY_12	function: 093053F8
bind	HOTKEY_THIRD_3	function: 092FD478
bind	HOTKEY_11	function: 092FDDB0
[LOG]	Meyrick quaffs a 3 potion of lesser healing!
Total encumbrance	15.69
[LOG]	You have no more #FFFFFF#potion of lesser healing#LAST#
skeleton warrior	354	dumb ai talents can use	Stunning Blow	36
dumb ai uses	36
[LOG]	Skeleton warrior uses Stunning Blow.
USING	table: 06ACBD58	Stunning Blow
[ATTACK] to 	Meyrick	 :: 	17.72	1	0	::	1.3
checkHit	6	3.5
=> chance to hit	59.691001300806
[LOG]	Skeleton warrior misses Meyrick.
185 frames in 10.001 seconds = 18.4981 FPS
[LOG]	Meyrick uses King's Gift.
USING	table: 06A6E6D8	King's Gift
[LOG]	Meyrick starts to regenerating heath quickly.
addTmpVal	life_regen	10.5	 :=: 	1	4
[ATTACK] to 	Meyrick	 :: 	17.72	1	0	::	1
checkHit	6	3.5
=> chance to hit	59.691001300806
[LOG]	Skeleton warrior misses Meyrick.
[LOG]	Meyrick uses Steady Shot.
USING	table: 06B27470	Steady Shot
[SHOOT WITH]	elm longbow	elm arrow
Loading tile	tactical_enemy.png
Loading tile	tactical_friend.png
Total encumbrance	15.66
[ATTACK] to 	skeleton warrior	 :: 	18.5375	5	5	::	1.72
checkHit	12.5	2.4
=> chance to hit	80.319605742049
[ATTACK] raw dam	18.5375	versus	5	with APR	5
[ATTACK] after range	24
[PHYS CRIT %]	1.3
[ATTACK] after crit	24
[ATTACK] after mult	41.28
[PROJECTOR] res	0	1	 on dam	41.28
[PROJECTOR] final dam	41.28
[LOG]	Meyrick hits skeleton warrior for #aaaaaa#41.28 physical damage#LAST#.
[SHOOT] speed	0.8	=>	800
[ATTACK] to 	Meyrick	 :: 	17.72	1	0	::	1
checkHit	6	3.5
=> chance to hit	59.691001300806
[ATTACK] raw dam	17.72	versus	0	with APR	1
[ATTACK] after range	20
[PHYS CRIT %]	2.5
[ATTACK] after crit	20
[ATTACK] after mult	20
[PROJECTOR] res	0	1	 on dam	20
[PROJECTOR] final dam	20
[LOG]	Skeleton warrior hits Meyrick for #aaaaaa#20.00 physical damage#LAST#.
302060 ticks  in 10.033 seconds = 30106.6 TPS
[LOG]	Meyrick shoots!
USING	table: 06B273A8	Shoot
[SHOOT WITH]	elm longbow	elm arrow
Total encumbrance	15.63
[ATTACK] to 	skeleton warrior	 :: 	18.5375	5	5	::	1
checkHit	12.5	2.4
=> chance to hit	80.319605742049
[ATTACK] raw dam	18.5375	versus	5	with APR	5
[ATTACK] after range	21
[PHYS CRIT %]	1.3
[ATTACK] after crit	21
[ATTACK] after mult	21
[PROJECTOR] res	0	1	 on dam	21
[PROJECTOR] final dam	21
[LOG]	Meyrick hits skeleton warrior for #aaaaaa#21.00 physical damage#LAST#.
[LOG]	Meyrick killed skeleton warrior!
8	***
[SHOOT] speed	0.8	=>	800
203 frames in 10.019 seconds = 20.2615 FPS
[LOG]	#00ff00#Talent Steady Shot is ready to use.
[LOG]	Meyrick stops regenerating health quickly.
removeTempVal	life_regen	10.5	 :=: 	4
delTmpVal	life_regen	10.5
323301 ticks  in 10.019 seconds = 32268.8 TPS
177 frames in 10.011 seconds = 17.6806 FPS
[LOG]	Ran for 3 turns (stop reason: interesting terrain).
[LOG]	Ran for 10 turns (stop reason: terrain change on left side).
320976 ticks  in 10 seconds = 32097.6 TPS
204 frames in 10.026 seco
Last edited by Canderel on Mon May 17, 2010 7:59 am, edited 1 time in total.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Memory leak?

#2 Post by darkgod »

I have noticed it once or twice but only when I switched away from the game to some other opengl using app.. Hum ..
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Canderel
Sher'Tul
Posts: 1252
Joined: Mon Nov 24, 2003 2:31 pm
Location: South Africa

Re: Memory leak?

#3 Post by Canderel »

I am on windows 7, so the window itself uses 3d for the transparency stuff.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Memory leak?

#4 Post by darkgod »

Ah .. hum

Did this happen once or often ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Memory leak?

#5 Post by darkgod »

Oh and could you check memory while playing see if it increases steps by steps or all at once ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Canderel
Sher'Tul
Posts: 1252
Joined: Mon Nov 24, 2003 2:31 pm
Location: South Africa

Re: Memory leak?

#6 Post by Canderel »

The whitening of the door (or this time it was monsters and potions) happens fairly frequently, but that in itself doesn't prompt memory usage to jump up.

It does it when it sometimes redraws the screen for some reason... Ahh, it happens 100% reoccurring when I minimize the screen. If I reopen before the memory runs out, then it regains the memory, and goes back to about 30mb of memory.

It jumps 30mb per second about, not 30mb - 1.3gb.

My guess is the white display (which can be fixed by adjusting the graphical output, but it only fixes it for the currently visible objects/monsters, if you run into a new one, it's white again) is possibly unrelated.

Interestingly, if I am in 32x32 it is white, then AGAIN when I'm in 16x16, then is fine on ASCII, and then displays, switching to ascii must fix those currently visible (when you go to 32x32 again), but whatever causes it to be white makes them white again when you encounter the next one.

Canderel
Sher'Tul
Posts: 1252
Joined: Mon Nov 24, 2003 2:31 pm
Location: South Africa

Re: Memory leak? - Mem usage bumps on Minimize

#7 Post by Canderel »

Did you find any reasons (or duplication of this bug) for this behaviour?

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Memory leak? - Mem usage bumps on Minimize

#8 Post by darkgod »

Probably in the way it redraws although it sounds weird to me, but the next version will shutdown when minimized anyway so it should alleviate the problem.
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply