Tasclient out of memory error on loading minimaps

Tasclient out of memory error on loading minimaps

Discuss development of lobby clients, server, autohosts and auto-download software.

Moderators: Moderators, Lobby Developers

Post Reply
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Tasclient out of memory error on loading minimaps

Post 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!
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Tasclient out of memory error on loading minimaps

Post 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
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Tasclient out of memory error on loading minimaps

Post 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!
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Tasclient out of memory error on loading minimaps

Post 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
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Tasclient out of memory error on loading minimaps

Post 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 ?!?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Tasclient out of memory error on loading minimaps

Post 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.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Tasclient out of memory error on loading minimaps

Post 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;
}
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Tasclient out of memory error on loading minimaps

Post by Satirik »

autohostport=9999;
how is that possible ?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Tasclient out of memory error on loading minimaps

Post 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.
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Tasclient out of memory error on loading minimaps

Post 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
gonpost
Posts: 77
Joined: 22 Oct 2008, 00:43

Re: Tasclient out of memory error on loading minimaps

Post 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
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Tasclient out of memory error on loading minimaps

Post by Satirik »

Satirik wrote:in the mean time you can disable the minimaps loading
options -> interface
User avatar
Hobo Joe
Posts: 1001
Joined: 02 Jan 2008, 21:55

Re: Tasclient out of memory error on loading minimaps

Post 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.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Tasclient out of memory error on loading minimaps

Post 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).
Post Reply

Return to “Lobby Clients & Server”