FFA maps no longer work

FFA maps no longer work

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Scratch
Posts: 191
Joined: 08 Aug 2006, 11:25

FFA maps no longer work

Post by Scratch »

dworld doesn't work neurope works, throne works, the DSD ffa maps works iirc, moon q doesn't work

it was the last update that did it, all of them were working before. I get a crash:

Code: Select all

LogOutput initialized.
Spring 0.82.7.1 (0.82.7.1)
Build date/time: Jan  8 2011 00:17:26
Available log subsystems: CollisionVolume, unit, ArchiveScanner, VFS-detail, VFS, Sound
Enabled log subsystems: Sound
Enable or disable log subsystems using the LogSubsystems configuration key
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
  Use "none" to disable the default log subsystems.
using configuration source "C:\Users\Shawn\AppData\Local\springsettings.cfg"
[CMyMath::Init] CPU SSE mask: 888, flags:
	SSE 1.0:  1,  SSE 2.0:  1
	SSE 3.0:  1, SSSE 3.0:  0
	SSE 4.1:  0,  SSE 4.2:  0
	SSE 4.0A: 1,  SSE 5.0A: 0
	using streflop SSE FP-math mode, CPU supports SSE instructions
OS: Microsoft Windows
Microsoft Windows 7 Home Premium Edition, 64-bit (build 7600)
AMD Athlon(tm) II X3 440 Processor; 4095MB RAM, 8188MB pagefile
OS: emulated 32bit mode
Using read-write data directory: C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\
Using read-only data directory: C:\Users\Shawn\Documents\My Games\Spring\
Scanning: C:\Users\Shawn\Documents\My Games\Spring\maps
Scanning: C:\Users\Shawn\Documents\My Games\Spring\mods
Scanning: C:\Users\Shawn\Documents\My Games\Spring\packages
Scanning: C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\maps
Scanning: C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\base
Scanning: C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\games
Scanning: C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\mods
Supported Video modes: 1920x1200, 1920x1080, 1680x1050, 1600x1200, 1600x1024, 1600x900, 1360x768, 1280x1024, 1280x960, 1280x800, 1280x768, 1280x720, 1152x864, 1024x768, 800x600, 720x576, 720x480, 640x480
Video mode set to 1920x1200/32bit
[f=0000000] SDL:  1.2.10
[f=0000000] GL:   3.2.0
[f=0000000] GL:   NVIDIA Corporation
[f=0000000] GL:   GeForce GTS 250/PCI/SSE2
[f=0000000] GLSL: 1.50 NVIDIA via Cg compiler
[f=0000000] GLEW: 1.5.4
[f=0000000] Joysticks found: 0
[f=0000000] Joystick 0 not found
[f=0000000] Loading startscript from: C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\\script.txt
[f=0000000] Connecting to 82.130.33.187:8460 using name [PWN]Scratch
[f=0000000] [Sound] OpenAL info:
[f=0000000] [Sound]   Vendor:     OpenAL Community
[f=0000000] [Sound]   Version:    1.1 ALSOFT 1.11.753
[f=0000000] [Sound]   Renderer:   OpenAL Soft
[f=0000000] [Sound]   AL Extensions: AL_EXTX_buffer_sub_data AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_EXTX_sample_buffer_object AL_EXT_source_distance_model AL_LOKI_quadriphonic
[f=0000000] [Sound]   ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_disconnect ALC_EXT_EFX ALC_EXTX_thread_local_context
[f=0000000] [Sound]                   ALC_EXT_EFX found (required for air absorption): yes
[f=0000000] [Sound]   Device:     DirectSound Software
[f=0000000] [Sound]   Available Devices:  
[f=0000000] [Sound]                       DirectSound Software
[f=0000000] [Sound] air absorption enabled: 0.1
[f=0000000] Starting demo recording
[f=0000000] Using map Dworld_V1
[f=0000000] Recording demo demos/20110127_143128_Dworld_V1_0.82.7.sdf
[f=0000000] Using mod Balanced Annihilation V7.20
[f=0000000] Using mod archive BA720.sdz
[f=0000000] Loading client data: 593 ms
[f=0000000] User number 7 (team 7, allyteam 7)
[f=0000000] [Sound]  parsed 25 sounds from gamedata/sounds.lua
[f=0000000] Loading sounds: 2 ms
[f=0000000] Camera and mouse: 115 ms
[f=0000000] Parsing unit icons
[f=0000000] Loading GameData Definitions
[f=0000000] Loading all definitions:  0.400000
[f=0000000] Loading GameData Definitions: 439 ms
[f=0000000] Parsing Map Information
[f=0000000] Loading SMF
[f=0000000] Loading Map
[f=0000000] Calculating smooth height mesh
[f=0000000] Calculating smooth mesh: 868 ms
[f=0000000] Number of damage types: 40
[f=0000000] Creating unit textures
[f=0000000] Loading weapon definitions
[f=0000000] Loading unit definitions
[f=0000000] Loading feature definitions
[f=0000000] Initializing map features
[f=0000000] Reading Estimate PathCosts [8]
[f=0000000] Reading Estimate PathCosts [32]
[f=0000000] [CPathManager] pathing data checksum: ac9f8d40
[f=0000000] You are missing the "ARB_shadow_ambient" extension (this will probably make shadows darker than they should be)
[f=0000000] Loading .smt tile-file "maps/Dworld_V1.smt"
[f=0000000] Loading 131412 tiles from file 1/1
[f=0000000] Spring 0.82.7.1 (0.82.7.1) has crashed.
[f=0000000] Exception: Access violation (0xc0000005)
[f=0000000] Exception Address: 0xff2d195d
[f=0000000] DLL information:
[f=0000000] 0x00400000	spring
[f=0000000] 0x77af0000	ntdll
[f=0000000] 0x76e20000	kernel32
[f=0000000] 0x76580000	KERNELBASE
[f=0000000] 0x10000000	DevIL
[f=0000000] 0x774c0000	MSVCRT
[f=0000000] 0x756c0000	ADVAPI32
[f=0000000] 0x776d0000	sechost
[f=0000000] 0x76d30000	RPCRT4
[f=0000000] 0x75660000	SspiCli
[f=0000000] 0x75650000	CRYPTBASE
[f=0000000] 0x70760000	GLU32
[f=0000000] 0x70690000	OPENGL32
[f=0000000] 0x76980000	GDI32
[f=0000000] 0x76880000	USER32
[f=0000000] 0x76710000	LPK
[f=0000000] 0x76720000	USP10
[f=0000000] 0x6f680000	DDRAW
[f=0000000] 0x71070000	DCIMAN32
[f=0000000] 0x770a0000	SETUPAPI
[f=0000000] 0x76fe0000	CFGMGR32
[f=0000000] 0x76f50000	OLEAUT32
[f=0000000] 0x77340000	ole32
[f=0000000] 0x774a0000	DEVOBJ
[f=0000000] 0x739b0000	dwmapi
[f=0000000] 0x76b00000	IMAGEHLP
[f=0000000] 0x6fbc0000	mingwm10
[f=0000000] 0x75890000	SHELL32
[f=0000000] 0x767c0000	SHLWAPI
[f=0000000] 0x76540000	WS2_32
[f=0000000] 0x76820000	NSI
[f=0000000] 0x61b80000	zlib1
[f=0000000] 0x00020000	vorbisfile
[f=0000000] 0x68140000	ogg
[f=0000000] 0x64cc0000	vorbis
[f=0000000] 0x6b600000	OpenAL32
[f=0000000] 0x73f50000	WINMM
[f=0000000] 0x66fc0000	freetype6
[f=0000000] 0x62aa0000	glew32
[f=0000000] 0x01260000	SDL
[f=0000000] 0x7c340000	MSVCR71
[f=0000000] 0x764e0000	IMM32
[f=0000000] 0x77600000	MSCTF
[f=0000000] 0x738f0000	dsound
[f=0000000] 0x738c0000	POWRPROF
[f=0000000] 0x77570000	CLBCatQ
[f=0000000] 0x73a60000	MMDevApi
[f=0000000] 0x73470000	PROPSYS
[f=0000000] 0x73a30000	wdmaud
[f=0000000] 0x73a20000	ksuser
[f=0000000] 0x73a10000	AVRT
[f=0000000] 0x739d0000	AUDIOSES
[f=0000000] 0x739a0000	msacm32
[f=0000000] 0x73980000	MSACM32
[f=0000000] 0x73970000	midimap
[f=0000000] 0x75560000	profapi
[f=0000000] 0x73c00000	uxtheme
[f=0000000] 0x69500000	nvoglv32
[f=0000000] 0x70790000	DINPUT
[f=0000000] 0x710b0000	HID
[f=0000000] 0x76f20000	WINTRUST
[f=0000000] 0x75760000	CRYPT32
[f=0000000] 0x75880000	MSASN1
[f=0000000] 0x73d90000	mswsock
[f=0000000] 0x710c0000	wship6
[f=0000000] 0x73d80000	wshtcpip
[f=0000000] 0x6e5b0000	dbghelp
[f=0000000] Stacktrace:
[f=0000000] (0) Unknown [0xFF2D195D]
[f=0000000] (1) Unknown [0x002C013D]
[f=0000000] (2) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe(aiInterfaceCallback_DataDirs_getWriteableDir+0x29b522) [0x00CBFC82]
[f=0000000] (3) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe(aiInterfaceCallback_DataDirs_getWriteableDir+0x29a4c5) [0x00CBEC25]
[f=0000000] (4) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe(aiInterfaceCallback_DataDirs_getWriteableDir+0x25a291) [0x00C7E9F1]
[f=0000000] (5) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x009A1D0C]
[f=0000000] (6) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x009BD543]
[f=0000000] (7) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x009B9B51]
[f=0000000] (8) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x009C250C]
[f=0000000] (9) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x009C26FC]
[f=0000000] (10) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x009C27BF]
[f=0000000] (11) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x006C792F]
[f=0000000] (12) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x006C530E]
[f=0000000] (13) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x006CC90B]
[f=0000000] (14) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x00402AA0]
[f=0000000] (15) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x00416879]
[f=0000000] (16) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x004928CA]
[f=0000000] (17) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x0049375D]
[f=0000000] (18) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x00989DA1]
[f=0000000] (19) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x009950F9]
[f=0000000] (20) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x00995424]
[f=0000000] (21) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x00995C00]
[f=0000000] (22) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x004010A7]
[f=0000000] (23) C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe [0x00401123]
[f=0000000] (24) C:\Windows\syswow64\kernel32.dll(BaseThreadInitThunk+0x12) [0x76E33677]
[f=0000000] (25) C:\Windows\SysWOW64\ntdll.dll(RtlInitializeExceptionChain+0x63) [0x77B29D42]
[f=0000000] (26) C:\Windows\SysWOW64\ntdll.dll(RtlInitializeExceptionChain+0x36) [0x77B29D15]
Scratch
Posts: 191
Joined: 08 Aug 2006, 11:25

Re: FFA maps no longer work

Post by Scratch »

Code: Select all

--------[ AIDA32 (c) 1995-2004 Tamas Miklos ]---------------------------------------------------------------------------

    Version                                           AIDA32 v3.93
    Author                                            tamas.miklos@aida32.hu
    Homepage                                          http://www.aida32.hu
    Report Type                                       Report Wizard
    Computer                                          SHAWN-PC
    Generator                                         Shawn
    Operating System                                  Windows 7 Home Premium Home Edition 6.1.7600
    Date                                              2011-01-27
    Time                                              15:23


--------[ Summary ]-----------------------------------------------------------------------------------------------------

    Computer:
      Operating System                                  Windows 7 Home Premium Home Edition
      OS Service Pack                                   None
      Internet Explorer                                 8.0.7600.16385
      Computer Name                                     SHAWN-PC
      User Name                                         Shawn
      Logon Domain                                      Shawn-PC

    Motherboard:
      CPU Type                                          Unknown, 3000 MHz
      Motherboard Name                                  Unknown
      Motherboard Chipset                               Unknown
      System Memory                                     4096 MB
      BIOS Type                                         Unknown
      Communication Port                                Communications Port (COM1)

    Display:
      Video Adapter                                     NVIDIA GeForce GTS 250
      Video Adapter                                     NVIDIA GeForce GTS 250
      Monitor                                           Generic PnP Monitor [NoDB]  (HVMQ100511)

    Multimedia:
      Audio Adapter                                     High Definition Audio Controller [NoDB]
      Audio Adapter                                     Multimedia Audio Controller [NoDB]

    Storage:
      Disk Drive                                        WDC WD5000AAKS-65V0A0 ATA Device
      Disk Drive                                        WDC WD800JD-60MSA1 ATA Device
      Optical Drive                                     TSSTcorp CDDVDW SH-S202J ATA Device

    Partitions:
      C: (NTFS)                                         345876 MB (288538 MB free)
      D: (NTFS)                                         4996 MB (1561 MB free)
      E: (NTFS)                                         76308 MB (26618 MB free)
      F: (NTFS)                                         126064 MB (116389 MB free)

    Input:
      Keyboard                                          HID Keyboard Device
      Keyboard                                          Standard PS/2 Keyboard
      Mouse                                             HID-compliant mouse
      Mouse                                             HID-compliant mouse

    Network:
      Primary IP Address                                192.168.100.104
      Primary MAC Address                               40-61-86-63-02-91
      Network Adapter                                   Atheros AR8131 PCI-E Gigabit Ethernet Controller (NDIS 6.20)  (192.168.100.104)
      Network Adapter                                   Bluetooth Device (Personal Area Network)

    Peripherals:
      Printer                                           Fax
      Printer                                           Microsoft XPS Document Writer
      Printer                                           Send To OneNote 2010
      USB Device                                        Generic Bluetooth Adapter
      USB Device                                        Generic USB Hub
      USB Device                                        USB Input Device
      USB Device                                        USB Input Device
      USB Device                                        USB Input Device


User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: FFA maps no longer work

Post by knorke »

did you try to redownload the non working maps?
se5a
Posts: 86
Joined: 25 Nov 2010, 20:47

Re: FFA maps no longer work

Post by se5a »

Dude, what's that going to do?
the reason to re-download something is because you suspect it's gotten corrupted. if it's more than one map that he (and others) are having problems with, then re-downloading a map is not going to help.

slightly tired of the knee jerk reactions to any problem on this forum.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: FFA maps no longer work

Post by knorke »

yea well, do you really think that suddendly spring crashes on ffa maps only?
More likely something else is the problem.
And if you use zero k lobby for map downloads, update spring and maybe manually delete some files then yes, files can become corrupt or w/e and in lobby you do not notice because it still shows you as synced.
So redownloading the map in .sd7 map might make a difference if he uses pool system.
Or maybe just delete pool system even, ask in #ca or #zk how to do it.

-did you try multiple times, maybe spring just randomly crashes and it is not related to maps
-are maps in .sd7 format or pool/rapid pool system?
-are all maps in same folder? Different downloaders put their stuff in different places. Maybe you have some in my documents\spring\maps and other ins games\spring\maps and for whatever reason that makes a difference.
se5a
Posts: 86
Joined: 25 Nov 2010, 20:47

Re: FFA maps no longer work

Post by se5a »

if things are getting corrupt then maybe we need to add a hash check, and check the map each time it's loaded.

Also key sentence:
it was the last update that did it, all of them were working before.
I also am getting crashes on some of these maps, though mine appears to be related to path-finding which this particular crashlog does not show.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: FFA maps no longer work

Post by Beherith »

Here is the translated stack trace: http://spring-stacktrace.pastebin.com/eijHFvpb

As a side, note, it has happened to me before that quite a few of my maps got corrupted, but I was never able to pinpoint why.

It means that spring is crashing while loading the map texture. Does Mearth crash for you?
se5a
Posts: 86
Joined: 25 Nov 2010, 20:47

Re: FFA maps no longer work

Post by se5a »

It means that spring is crashing while loading the map texture
cool.. but how do you figure that?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: FFA maps no longer work

Post by Beherith »

I looked at the lines in the page produced by
http://spring.abma.de/translate/index.php

And I'm familiar with the map code in spring.

Code: Select all

C:\Users\Shawn\Documents\My Games\Spring\engine\0.82.7\spring.exe 0x006C530E rts/Map/SMF/BFGroundDrawer.cpp:50
This line is:
textures = new CBFGroundTextures(map);
After that the stack is in filehandler, meaning it probably failed to load some part or all of the .smt file.

I cant check for sure with latest spring in debug build right now, since I'm not at my main pc, but I will when I get a chance.
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: FFA maps no longer work

Post by Floris »

just want to say I experience the same (and a lot of others do too)

my sys specs includes opposites (intel/ati) and the only thing the same is the OS:
Windows 7 Home Premium Home Edition
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: FFA maps no longer work

Post by Beherith »

Floris do you also use 82.7.1 or just 82.7?
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: FFA maps no longer work

Post by jK »

@Scratch
From what I see you are running out of memory and not by a broken file or something else.

@other devs
Why it isn't registered as such an error is unclear to me (somehow the error by std::vector isn't catched).
But IMO it is a bad habit of some developers to use std::vectors as an array replacement, from what I know std::vectors use much much more memory and so are much more likely to cause such issues.
MadrMan
Posts: 12
Joined: 17 Jan 2009, 20:13

Re: FFA maps no longer work

Post by MadrMan »

@jK
std::vectors use identical amounts of memory since they're solid blocks (&vec[0] is identical to an array).
The only extra memory overhead you'll have is for the bookkeeping in the vector which is only a few bytes for any vector.

They do however reserve a bit of extra memory when you push to them but if you use a vector properly by either reserving it up front or trimming it when done with it that isn't an issue either.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: FFA maps no longer work

Post by jK »

Finally tested it (I always wanted to do so):
* it's true that when giving the size in the constructor or using reserve/resize() it doesn't allocate any extra memory
* once using the push functions or any related iterator it use the x2 resizing algorithm

And tada, I found the cause of this issue ;)

https://github.com/spring/spring/blob/0 ... p.cpp#L143:

Code: Select all

std::copy((char*)outBuffer+offset, (char*)outBuffer+offset+outSizeProcessed, std::back_inserter(buffer));
There is no resize() in this function and so the std::back_inserter will cause resizing the vector multiple times with 2x algorithm (yeah I tested it).

Patch is in the pipe.
se5a
Posts: 86
Joined: 25 Nov 2010, 20:47

Re: FFA maps no longer work

Post by se5a »

Wee! Progress!

I'll have to try that stack-trace translator thing on the infolog I was getting.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: FFA maps no longer work

Post by Beherith »

Thanks jK, a fix is much appreciated :D
Scratch
Posts: 191
Joined: 08 Aug 2006, 11:25

Re: FFA maps no longer work

Post by Scratch »

just letting you know I made a point of re downloading and made no difference
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: FFA maps no longer work

Post by smoth »

se5a wrote:Dude, what's that going to do?
the reason to re-download something is because you suspect it's gotten corrupted. if it's more than one map that he (and others) are having problems with, then re-downloading a map is not going to help.

slightly tired of the knee jerk reactions to any problem on this forum.
He could have a shit harddrive which is corrupting the maps this is the first step of checking that. there could be many factors, you always check the simplest fix first.
Scratch
Posts: 191
Joined: 08 Aug 2006, 11:25

Re: FFA maps no longer work

Post by Scratch »

It's not a corrupt harddrive if they were all working before the last spring udpate and after the update they stopped working
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: FFA maps no longer work

Post by knorke »

I didnt say corrupt harddrive..
I said that the pool file system of zk lobby can become corrupt if you do something wrong during updating.
knorke wrote:And if you use zero k lobby for map downloads, update spring and maybe manually delete some files then yes, files can become corrupt or w/e and in lobby you do not notice because it still shows you as synced.
But if it was really the engine thing, this is solved now anyway...
Post Reply

Return to “Help & Bugs”