2025-07-21 16:24 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004849Spring engineGeneralpublic2015-06-30 20:47
ReporterPicossa 
Assigned Tohokomoko 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Version99.0 
Target Version100.0Fixed in Version 
Summary0004849: Crash when using CallAsUnit on a unit with no script
DescriptionGame crashes on spawning of submarine
Steps To ReproduceJoined a game.
Spawned some gprocedural Features.
spawned a jfishswarm with
/give jfishswarm

Additional Informationf=0059343] jfiredancebomb jfiredancedecal jfiredancer jfireflower jfishswarm
[f=0059384] Error: Spring 99.0 has crashed.
[f=0059384] Error: DLL information:
[f=0059384] Error: 0x00400000 spring
[f=0059384] Error: 0x7c900000 ntdll
[f=0059384] Error: 0x7c800000 kernel32
[f=0059384] Error: 0x77dd0000 ADVAPI32
[f=0059384] Error: 0x77e70000 RPCRT4
[f=0059384] Error: 0x77fe0000 Secur32
[f=0059384] Error: 0x68b20000 GLU32
[f=0059384] Error: 0x77c10000 msvcrt
[f=0059384] Error: 0x5ed00000 OPENGL32
[f=0059384] Error: 0x77f10000 GDI32
[f=0059384] Error: 0x7e410000 USER32
[f=0059384] Error: 0x73760000 DDRAW
[f=0059384] Error: 0x73bc0000 DCIMAN32
[f=0059384] Error: 0x76c90000 IMAGEHLP
[f=0059384] Error: 0x7c9c0000 SHELL32
[f=0059384] Error: 0x77f60000 SHLWAPI
[f=0059384] Error: 0x76b40000 WINMM
[f=0059384] Error: 0x71ab0000 WS2_32
[f=0059384] Error: 0x71aa0000 WS2HELP
[f=0059384] Error: 0x10000000 DevIL
[f=0059384] Error: 0x7c420000 MSVCP80
[f=0059384] Error: 0x78130000 MSVCR80
[f=0059384] Error: 0x6b600000 OpenAL32
[f=0059384] Error: 0x774e0000 ole32
[f=0059384] Error: 0x6cec0000 libgcc_s_sjlj-1
[f=0059384] Error: 0x70780000 vorbisfile
[f=0059384] Error: 0x68140000 ogg
[f=0059384] Error: 0x64cc0000 vorbis
[f=0059384] Error: 0x62e80000 zlib1
[f=0059384] Error: 0x70e40000 libfreetype-6
[f=0059384] Error: 0x64f80000 libfontconfig-1
[f=0059384] Error: 0x68f40000 libexpat-1
[f=0059384] Error: 0x62aa0000 glew32
[f=0059384] Error: 0x6c740000 SDL2
[f=0059384] Error: 0x76390000 IMM32
[f=0059384] Error: 0x77120000 OLEAUT32
[f=0059384] Error: 0x77c00000 VERSION
[f=0059384] Error: 0x773d0000 comctl32
[f=0059384] Error: 0x5d090000 comctl32
[f=0059384] Error: 0x02040000 nvapi
[f=0059384] Error: 0x77920000 SETUPAPI
[f=0059384] Error: 0x69500000 nvoglnt
[f=0059384] Error: 0x76fd0000 CLBCATQ
[f=0059384] Error: 0x77050000 COMRes
[f=0059384] Error: 0x74720000 msctf
[f=0059384] Error: 0x76780000 shfolder
[f=0059384] Error: 0x73f10000 dsound
[f=0059384] Error: 0x76c30000 WINTRUST
[f=0059384] Error: 0x77a80000 CRYPT32
[f=0059384] Error: 0x77b20000 MSASN1
[f=0059384] Error: 0x72d20000 wdmaud
[f=0059384] Error: 0x72d10000 msacm32
[f=0059384] Error: 0x77be0000 MSACM32
[f=0059384] Error: 0x77bd0000 midimap
[f=0059384] Error: 0x73ee0000 KsUser
[f=0059384] Error: 0x6ce10000 dinput8
[f=0059384] Error: 0x688f0000 HID
[f=0059384] Error: 0x05cb0000 XInput1_3
[f=0059384] Error: 0x71a50000 mswsock
[f=0059384] Error: 0x662b0000 hnetcfg
[f=0059384] Error: 0x71a90000 wshtcpip
[f=0059384] Error: 0x06110000 SSSensor
[f=0059384] Error: 0x59a60000 DBGHELP
[f=0059384] Error: Exception: Access violation (0xc0000005)
[f=0059384] Error: Exception Address: 0x009c0c39
[f=0059384] Error: Stacktrace for Spring 99.0:
[f=0059384] Error: (0) F:\Documents and Settings\PicassoCT\Desktop\Journeywar\SpringJW\Spring\spring.exe [0x009C0C39]
[f=0059384] Error: (1) F:\Documents and Settings\PicassoCT\Desktop\Journeywar\SpringJW\Spring\spring.exe [0x009C13B8]
[f=0059384] Error: (2) F:\Documents and Settings\PicassoCT\Desktop\Journeywar\SpringJW\Spring\spring.exe [0x009BA61F]
[f=0059384] Error: (3) F:\Documents and Settings\PicassoCT\Desktop\Journeywar\SpringJW\Spring\spring.exe [0x00814610]
[f=0059384] Error: [ErrorMessageBox][1] msg="Spring has crashed:
  Access violation.

A stacktrace has been written to:
  F:\Documents and Settings\PicassoCT\My Documents\My Games\Spring\infolog.txt" IsMainThread()=1 fromMain=0
[f=0059384] Error: [ErrorMessageBox][2]
[f=0059384] [SpringApp::ShutDown][1]
[f=0059384] [ThreadPool::SetThreadCount][1] #wanted=0 #current=1 #max=1
[f=0059384] [ThreadPool::SetThreadCount][2] #threads=0
[f=0059384] [SpringApp::ShutDown][2]
[f=0059384] [KillLua][1]
[f=0059384] [KillLua][2]
[f=0059384] [KillLua][3]
[f=0059384] [KillLua][4]
[f=0059384] [~CGame]1]
[f=0059384] [KillLua][1]
[f=0059384] [KillLua][2]
[f=0059384] [KillLua][3]
[f=0059384] [KillLua][4]
[f=0059384] [KillMisc][1]
[f=0059384] [KillMisc][2]
[f=0059384] [KillRendering][1]
[f=0059384] [KillInterface][1]
[f=0059384] [KillInterface][2]
[f=0059384] [KillSimulation][1]
[f=0059384] [KillSimulation][2]
[f=0059384] [CCollisionHandler] dis-/continuous tests: 0/18778780
[f=0059384] [KillSimulation][3]
[f=0059384] [KillSimulation][4]
[f=0059384] [~CPathCache(32x28)] cacheHits=0 hitPercentage=0% numHashColls=0 maxCacheSize=0
[f=0059384] [~CPathCache(32x28)] cacheHits=1148 hitPercentage=85% numHashColls=0 maxCacheSize=4
[f=0059384] [~CPathCache(128x112)] cacheHits=0 hitPercentage=0% numHashColls=0 maxCacheSize=0
[f=0059384] [~CPathCache(128x112)] cacheHits=9152 hitPercentage=1% numHashColls=0 maxCacheSize=201
[f=0059384] Statistics for RectangleOptimizer: 0%
[f=0059384] Statistics for RectangleOptimizer: 0%
[f=0059384] [KillSimulation][5]
[f=0059384] [~CGame][2]
[f=0059384] [~CGame][3]
[f=0059384] [SpringApp::ShutDown][3]
[f=0059384] Statistics for local connection:
Received: 97133 bytes
Sent: 623443 bytes

[f=0059384] Writing demo: F:\Documents and Settings\PicassoCT\My Documents\My Games\Spring\demos\20150627_112219_Tabula-v4_99.sdf
[f=0059384] [SpringApp::ShutDown][4]
[f=0059384] [SpringApp::ShutDown][5]
[f=0059384] [SpringApp::ShutDown][6]
[f=0059384] [SpringApp::ShutDown][7]
[LuaSocket] Dumping luasocket rules:
[LuaSocket] TCP_CONNECT ALLOW * -1
[LuaSocket] TCP_LISTEN ALLOW * -1
[LuaSocket] UDP_LISTEN ALLOW * -1
[SpringApp::ShutDown][8]
[WatchDog::Uninstall][1] hangDetectorThread=00000000
[SpringApp::ShutDown][9]
Error: [ErrorMessageBox][3]
Error: [ErrorMessageBox][4]
Fatal: Spring: Unhandled exception
Spring has crashed:
  Access violation.

A stacktrace has been written to:
  F:\Documents and Settings\PicassoCT\My Documents\My Games\Spring\infolog.txt


Reproduced version:
f=0000000] Skirmish AI "AI: Wild Horses AI" (ID:0, Short-Name:"Wild Horses AI", Version:"") took over control of team 1
[f=0000000] Player Picasso finished loading and is now ingame
[f=0000000] JW::LandLord::insertDynamicDeformationMaps
[f=0000000] JW::LandLord::insertDynamicDeformationMaps::GG.DynDefMap0
[f=0000000] JW::LandLord::insertDynamicDeformationMaps-1
[f=0000000] JW_TriggerZone::Init
[f=0000001] JW::LANDLORD:: No orgTerrainMap @1 / 2
[f=0000164] Cheating is enabled!
[f=0000233] Error: Spring 99.0 has crashed.
[f=0000233] Error: DLL information:
[f=0000233] Error: 0x00400000 spring
[f=0000233] Error: 0x7c900000 ntdll
[f=0000233] Error: 0x7c800000 kernel32
[f=0000233] Error: 0x77dd0000 ADVAPI32
[f=0000233] Error: 0x77e70000 RPCRT4
[f=0000233] Error: 0x77fe0000 Secur32
[f=0000233] Error: 0x68b20000 GLU32
[f=0000233] Error: 0x77c10000 msvcrt
[f=0000233] Error: 0x5ed00000 OPENGL32
[f=0000233] Error: 0x77f10000 GDI32
[f=0000233] Error: 0x7e410000 USER32
[f=0000233] Error: 0x73760000 DDRAW
[f=0000233] Error: 0x73bc0000 DCIMAN32
[f=0000233] Error: 0x76c90000 IMAGEHLP
[f=0000233] Error: 0x7c9c0000 SHELL32
[f=0000233] Error: 0x77f60000 SHLWAPI
[f=0000233] Error: 0x76b40000 WINMM
[f=0000233] Error: 0x71ab0000 WS2_32
[f=0000233] Error: 0x71aa0000 WS2HELP
[f=0000233] Error: 0x10000000 DevIL
[f=0000233] Error: 0x7c420000 MSVCP80
[f=0000233] Error: 0x78130000 MSVCR80
[f=0000233] Error: 0x6b600000 OpenAL32
[f=0000233] Error: 0x774e0000 ole32
[f=0000233] Error: 0x6cec0000 libgcc_s_sjlj-1
[f=0000233] Error: 0x70780000 vorbisfile
[f=0000233] Error: 0x68140000 ogg
[f=0000233] Error: 0x64cc0000 vorbis
[f=0000233] Error: 0x62e80000 zlib1
[f=0000233] Error: 0x70e40000 libfreetype-6
[f=0000233] Error: 0x64f80000 libfontconfig-1
[f=0000233] Error: 0x68f40000 libexpat-1
[f=0000233] Error: 0x62aa0000 glew32
[f=0000233] Error: 0x6c740000 SDL2
[f=0000233] Error: 0x76390000 IMM32
[f=0000233] Error: 0x77120000 OLEAUT32
[f=0000233] Error: 0x77c00000 VERSION
[f=0000233] Error: 0x773d0000 comctl32
[f=0000233] Error: 0x5d090000 comctl32
[f=0000233] Error: 0x02040000 nvapi
[f=0000233] Error: 0x77920000 SETUPAPI
[f=0000233] Error: 0x69500000 nvoglnt
[f=0000233] Error: 0x76fd0000 CLBCATQ
[f=0000233] Error: 0x77050000 COMRes
[f=0000233] Error: 0x74720000 msctf
[f=0000233] Error: 0x76780000 shfolder
[f=0000233] Error: 0x73f10000 dsound
[f=0000233] Error: 0x76c30000 WINTRUST
[f=0000233] Error: 0x77a80000 CRYPT32
[f=0000233] Error: 0x77b20000 MSASN1
[f=0000233] Error: 0x72d20000 wdmaud
[f=0000233] Error: 0x72d10000 msacm32
[f=0000233] Error: 0x77be0000 MSACM32
[f=0000233] Error: 0x77bd0000 midimap
[f=0000233] Error: 0x73ee0000 KsUser
[f=0000233] Error: 0x6ce10000 dinput8
[f=0000233] Error: 0x688f0000 HID
[f=0000233] Error: 0x05cb0000 XInput1_3
[f=0000233] Error: 0x05ed0000 SSSensor
[f=0000233] Error: 0x71a50000 mswsock
[f=0000233] Error: 0x662b0000 hnetcfg
[f=0000233] Error: 0x71a90000 wshtcpip
[f=0000233] Error: 0x76f20000 DNSAPI
[f=0000233] Error: 0x76d60000 iphlpapi
[f=0000233] Error: 0x76fc0000 rasadhlp
[f=0000233] Error: 0x59a60000 DBGHELP
[f=0000233] Error: Exception: Access violation (0xc0000005)
[f=0000233] Error: Exception Address: 0x009c0c39
[f=0000233] Error: Stacktrace for Spring 99.0:
[f=0000233] Error: (0) F:\Documents and Settings\PicassoCT\Desktop\Journeywar\SpringJW\Spring\spring.exe [0x009C0C39]
[f=0000233] Error: (1) F:\Documents and Settings\PicassoCT\Desktop\Journeywar\SpringJW\Spring\spring.exe [0x009C13B8]
[f=0000233] Error: (2) F:\Documents and Settings\PicassoCT\Desktop\Journeywar\SpringJW\Spring\spring.exe [0x009BA61F]
[f=0000233] Error: (3) F:\Documents and Settings\PicassoCT\Desktop\Journeywar\SpringJW\Spring\spring.exe [0x00814610]
[f=0000233] Error: [ErrorMessageBox][1] msg="Spring has crashed:
  Access violation.

A stacktrace has been written to:
  F:\Documents and Settings\PicassoCT\My Documents\My Games\Spring\infolog.txt" IsMainThread()=1 fromMain=0
[f=0000233] Error: [ErrorMessageBox][2]
[f=0000233] [SpringApp::ShutDown][1]
[f=0000233] [ThreadPool::SetThreadCount][1] #wanted=0 #current=1 #max=1
[f=0000233] [ThreadPool::SetThreadCount][2] #threads=0
[f=0000233] [SpringApp::ShutDown][2]
[f=0000233] [KillLua][1]
[f=0000233] [KillLua][2]
[f=0000233] [KillLua][3]
[f=0000233] [KillLua][4]
[f=0000233] [~CGame]1]
[f=0000233] [KillLua][1]
[f=0000233] [KillLua][2]
[f=0000233] [KillLua][3]
[f=0000233] [KillLua][4]
[f=0000233] [KillMisc][1]
[f=0000233] [KillMisc][2]
[f=0000233] [KillRendering][1]
[f=0000233] [KillInterface][1]
[f=0000233] [KillInterface][2]
[f=0000233] [KillSimulation][1]
[f=0000233] [KillSimulation][2]
[f=0000233] [CCollisionHandler] dis-/continuous tests: 0/88545
[f=0000233] [KillSimulation][3]
[f=0000233] [KillSimulation][4]
[f=0000233] [~CPathCache(32x28)] cacheHits=0 hitPercentage=0% numHashColls=0 maxCacheSize=0
[f=0000233] [~CPathCache(32x28)] cacheHits=2 hitPercentage=67% numHashColls=0 maxCacheSize=1
[f=0000233] [~CPathCache(128x112)] cacheHits=0 hitPercentage=0% numHashColls=0 maxCacheSize=0
[f=0000233] [~CPathCache(128x112)] cacheHits=6 hitPercentage=0% numHashColls=0 maxCacheSize=201
[f=0000233] Statistics for RectangleOptimizer: 1%
[f=0000233] Statistics for RectangleOptimizer: 1%
[f=0000233] [KillSimulation][5]
[f=0000233] [~CGame][2]
[f=0000233] [~CGame][3]
[f=0000233] [SpringApp::ShutDown][3]
[f=0000233] Statistics for local connection:
Received: 959 bytes
Sent: 2568 bytes

[f=0000233] Writing demo: F:\Documents and Settings\PicassoCT\My Documents\My Games\Spring\demos\20150627_120900_Tabula-v4_99.sdf
[f=0000233] [SpringApp::ShutDown][4]
[f=0000233] [SpringApp::ShutDown][5]
[f=0000233] [SpringApp::ShutDown][6]
[f=0000233] [SpringApp::ShutDown][7]
[LuaSocket] Dumping luasocket rules:
[LuaSocket] TCP_CONNECT ALLOW * -1
[LuaSocket] TCP_LISTEN ALLOW * -1
[LuaSocket] UDP_LISTEN ALLOW * -1
[SpringApp::ShutDown][8]
[WatchDog::Uninstall][1] hangDetectorThread=00000000
[SpringApp::ShutDown][9]
Error: [ErrorMessageBox][3]
Error: [ErrorMessageBox][4]
Fatal: Spring: Unhandled exception
Spring has crashed:
  Access violation.

A stacktrace has been written to:
  F:\Documents and Settings\PicassoCT\My Documents\My Games\Spring\infolog.txt
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0014729

hokomoko (developer)

rts/Sim/Units/Scripts/UnitScript.cpp:1666
/opt/mxe/usr/lib/gcc/i686-w64-mingw32/4.8.1/include/c++/bits/basic_string.h:293
rts/Sim/Units/Scripts/LuaUnitScript.cpp:1218
rts/lib/lua/src/ldo.cpp:321

should check your script, but I wonder why the error didn't work

~0014730

hokomoko (developer)

Also an assertion pops when running the game about some unit that has a factory movetype but isn't immobile.

~0014731

hokomoko (developer)

Anyway, you tried to CallAsUnit a unit that doesn't have a script.
The fact that spring crashes is an issue though.

~0014809

hokomoko (developer)

Fix 4c5a1ae050c5ce4129b703291eed12b0d8460b5f committed to develop branch: Fix 0004849, repo: spring changeset id: 5277
+Notes

-Issue History
Date Modified Username Field Change
2015-06-27 12:06 Picossa New Issue
2015-06-27 12:14 hokomoko Note Added: 0014729
2015-06-27 12:36 hokomoko Note Added: 0014730
2015-06-27 15:08 hokomoko Note Added: 0014731
2015-06-27 15:13 abma Product Version => 99.0
2015-06-27 15:13 abma Target Version => 100.0
2015-06-30 20:47 hokomoko Summary Submarine crashes game => Crash when using CallAsUnit on a unit with no script
2015-06-30 20:47 hokomoko Changeset attached => spring develop 4c5a1ae0
2015-06-30 20:47 hokomoko Note Added: 0014809
2015-06-30 20:47 hokomoko Assigned To => hokomoko
2015-06-30 20:47 hokomoko Status new => resolved
2015-06-30 20:47 hokomoko Resolution open => fixed
+Issue History