Page 1 of 1

Tasclient out of memory error on loading minimaps

Posted: 06 Sep 2010, 11:57
by Beherith
Tasclient throws an out of memory error when trying to load my minimaps, which makes sense, since I have 800+ maps.
Satirik, if you could fix this, it would be awesome!

Re: Tasclient out of memory error on loading minimaps

Posted: 06 Sep 2010, 13:11
by Satirik
Beherith wrote:Tasclient throws an out of memory error when trying to load my minimaps, which makes sense, since I have 800+ maps.
Satirik, if you could fix this, it would be awesome!
you want me to just stop loading minimaps when oom ? or remake the whole map list to use less memory ? (i won't do the later :D)

in the mean time you can disable the minimaps loading

Re: Tasclient out of memory error on loading minimaps

Posted: 06 Sep 2010, 13:16
by Beherith
I did disable. It works well like that.

But it still prompts for me to cache the uncached minimaps, even though loading is disabled. Please make it just not prompt if loading is off.

I know that the map list cant use much less ram, since the minimaps are 1 meg each.

Thanks!

Re: Tasclient out of memory error on loading minimaps

Posted: 06 Sep 2010, 15:26
by Satirik
Beherith wrote:I did disable. It works well like that.

But it still prompts for me to cache the uncached minimaps, even though loading is disabled. Please make it just not prompt if loading is off.

I know that the map list cant use much less ram, since the minimaps are 1 meg each.

Thanks!
well, the minimaps in the map list are actually thumbnails 100x100px ... but since the map list is made of controls every map = 1 panel + 3tabs + 1 image + x labels, to make something lighter i should not use controls but just make a huge picture or something like that

Re: Tasclient out of memory error on loading minimaps

Posted: 06 Sep 2010, 17:31
by Satirik
Beherith wrote:I did disable. It works well like that.

But it still prompts for me to cache the uncached minimaps, even though loading is disabled. Please make it just not prompt if loading is off.

I know that the map list cant use much less ram, since the minimaps are 1 meg each.

Thanks!
it shows that msgbox when loading ?!?

Re: Tasclient out of memory error on loading minimaps

Posted: 06 Sep 2010, 17:35
by Beherith
Yeah, when I start tasclient (thats when the crash happened) it asks me if i want to cache the minimaps of uncached maps, even though minimap caching is off in lobby options.

Re: Tasclient out of memory error on loading minimaps

Posted: 06 Sep 2010, 18:50
by Beherith
I also have a different, but more serious issue, every since the .82 update:

When I launch spring from tasclient, spring.exe launches , it shows up in processes, but doesnt show any window, and the infolog doesnt get updated either (doesnt even get to the logoutput initialized part)

Then the exe just stays idle in processes, and does nothing. I show up as ingame even though im not connected.

This happens every map every mod.

Script: (single player)

Code: Select all

[GAME]
{
	Mapname=Mountain Passes Rev1;
	Maphash=2622865031;
	[modoptions]
	{
		StartMetal=1000;
		StartEnergy=1000;
		MaxUnits=500;
		GameMode=0;
		limitdgun=0;
		ghostedbuildings=1;
		fixedallies=0;
		maxspeed=3;
		minspeed=0.3;
		disablemapdamage=0;
		deathmode=com;
		mo_coop=0;
		mo_greenfields=0;
		mo_noowner=0;
		mo_progmines=0;
		mo_preventdraw=0;
		mo_noshare=1;
		mo_comgate=0;
		mo_enemywrecks=1;
		mo_nowrecks=0;
	}
	StartPosType=2;
	GameType=Balanced Annihilation V7.18;
	ModHash=3008008270;
	autohostport=9999;
	HostIP=localhost;
	HostPort=10000;
	MyPlayerName=[teh]Beherith[PiRO];
	IsHost=-1;
	NumPlayers=1;
	[PLAYER0]
	{
		Name=[teh]Beherith[PiRO];
		countryCode=hu;
		Rank=6;
		Spectator=0;
		team=0;
	}
	[TEAM0]
	{
		TeamLeader=0;
		AllyTeam=0;
		RgbColor=1 0.219607843137255 0.219607843137255 ;
		Side=CORE;
		Handicap=0;
	}
	NumTeams=1;
	[ALLYTEAM0]
	{
		NumAllies=0;
	}
	NumRestrictions=0;
}

Re: Tasclient out of memory error on loading minimaps

Posted: 06 Sep 2010, 19:30
by Satirik
autohostport=9999;
how is that possible ?

Re: Tasclient out of memory error on loading minimaps

Posted: 06 Sep 2010, 21:14
by Beherith
I dont know, I just pasted the script generated by tasclient when hosting a game.

Edit: if i drag that script.txt onto spring.exe, it crashes.

Re: Tasclient out of memory error on loading minimaps

Posted: 06 Sep 2010, 22:10
by Satirik
Beherith wrote:I dont know, I just pasted the script generated by tasclient when hosting a game.

Edit: if i drag that script.txt onto spring.exe, it crashes.
latest beta + spring (buggy) + win7 = fail

Re: Tasclient out of memory error on loading minimaps

Posted: 08 Sep 2010, 04:56
by gonpost
I get the memory error too when I have to reload my 10 gigs of maps. I've got 6 gigs of ram, but it says that it ran out when my usage hits somewhere around 3.1GB.

I think it's because spring is 32 bit...

Not like it matters too much. I just end TASclient when it runs out, and then let it go cache again. I almost "run out of memory" again before it finishes up the last few maps, but not quite. :D

Re: Tasclient out of memory error on loading minimaps

Posted: 08 Sep 2010, 11:01
by Satirik
Satirik wrote:in the mean time you can disable the minimaps loading
options -> interface

Re: Tasclient out of memory error on loading minimaps

Posted: 08 Sep 2010, 15:29
by Hobo Joe
Why the hell are minimaps 1 meg? They should be a few KB at most. Even a massive 1000x1000 image of a map shouldn't be 1 meg.

Re: Tasclient out of memory error on loading minimaps

Posted: 08 Sep 2010, 15:41
by Beherith
Dont butt into threads you know nothing about, especially not with that know-it-all attitude.

1k by 1k images usually take 3 megs each in ram in order to be displayed (since they gotta be decompressed).