2025-07-20 18:34 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004765Spring engineGeneralpublic2015-05-31 22:48
Reporterabma 
Assigned TojK 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version98.0.1+git 
Target Version99.0Fixed in Version 
Summary0004765: heavy lag when targeting unreachable ground
Descriptionto reproduce:

/cheat
/give 50 armsam


give shot order where the unit can't shoot. (cliff or behind hill)

-> lag spikes
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0004786resolvedjK Game crashes when firing at ground (Zero-k) 98.0.1-674-g036b798 
+Relationships

-Notes

~0014483

abma (administrator)

oO

now it even crashes when trying to reproduce that:

Program received signal SIGSEGV, Segmentation fault.
CWeapon::TestTarget (this=0x1643dd30, tgtPos=..., trg=...) at ../../rts/Sim/Weapons/Weapon.cpp:972
972 ../../rts/Sim/Weapons/Weapon.cpp: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0 CWeapon::TestTarget (this=0x1643dd30, tgtPos=..., trg=...) at ../../rts/Sim/Weapons/Weapon.cpp:972
#1 0x0000000000e8b22d in CWeapon::TryTarget (this=0x1643dd30, tgtPos=..., trg=...) at ../../rts/Sim/Weapons/Weapon.cpp:955
#2 0x0000000000e8c547 in CWeapon::TryTargetHeading (this=this@entry=0x1643dd30, heading=<optimized out>, pos=..., userTarget=true, unit=unit@entry=0x0) at ../../rts/Sim/Weapons/Weapon.cpp:1107
0000003 0x0000000000e2e3de in CMobileCAI::ExecuteAttack (this=0x16432180, c=...) at ../../rts/Sim/Units/CommandAI/MobileCAI.cpp:890
0000004 0x0000000000e20d3e in CCommandAI::GiveAllowedCommand (this=this@entry=0x16432180, c=..., fromSynced=fromSynced@entry=true) at ../../rts/Sim/Units/CommandAI/CommandAI.cpp:852
0000005 0x0000000000e2f39e in CMobileCAI::GiveCommandReal (this=0x16432180, c=..., fromSynced=<optimized out>) at ../../rts/Sim/Units/CommandAI/MobileCAI.cpp:271
#6 0x00000000005d5e34 in CSelectedUnitsHandlerAI::GiveCommandNet (this=<optimized out>, c=..., player=player@entry=0) at ../../rts/Game/SelectedUnitsAI.cpp:232
#7 0x00000000005ccad5 in CSelectedUnitsHandler::NetOrder (this=0x1507e40 <selectedUnitsHandler>, c=..., playerId=0) at ../../rts/Game/SelectedUnitsHandler.cpp:644
#8 0x0000000000690b92 in CGame::ClientReadNet (this=this@entry=0x1da2b10) at ../../rts/Net/NetCommands.cpp:588
#9 0x000000000059d33d in CGame::Update (this=0x1da2b10) at ../../rts/Game/Game.cpp:1022
0000010 0x00000000008fd143 in SpringApp::Update (this=this@entry=0x7fffffffe110) at ../../rts/System/SpringApp.cpp:939
#11 0x0000000000904828 in SpringApp::Run (this=this@entry=0x7fffffffe110) at ../../rts/System/SpringApp.cpp:975
0000012 0x00000000008d84ae in Run (argc=argc@entry=1, argv=argv@entry=0x7fffffffe3b8) at ../../rts/System/Main.cpp:48
0000013 0x000000000054f68a in main (argc=1, argv=0x7fffffffe3b8) at ../../rts/System/Main.cpp:107


98.0.1-674-g036b798 develop

~0014487

abma (administrator)

oh, fixed as well with https://github.com/spring/spring/commit/5c579789d77499b241bc324cee5f75e26bc5b73d

~0014489

jK (developer)

Fix e0313a3c376bb0bb7917a3c127977f538210ad18 committed to develop branch: fix 0004765, repo: spring changeset id: 4991

~0014491

abma (administrator)

the lag spikes are back...

~0014492

abma (administrator)

Last edited: 2015-05-29 08:14

View 2 revisions

lag = it hangs totally for 1 second

~0014493

jK (developer)

has nothing to do with targeting
happens with move cmds too -> is a PF issue

~0014494

abma (administrator)

Last edited: 2015-05-29 09:09

View 3 revisions

ooh, indeed.

/cheat
/give 50 armsam

give move order to unreachable area -> engine badly lags / hangs

doesn't happen (this bad) in 98.0

~0014500

abma (administrator)

Last edited: 2015-05-30 13:45

View 2 revisions

introduced between 98.0.1 and 98.0.1-162-g6d98087

~0014502

jK (developer)

Fix d9f51e3ef2d9780b28e8ea3a42ce88fcc9b69093 committed to develop branch: fix 0004765: fix lag when requesting unreachable paths, repo: spring changeset id: 5005
+Notes

-Issue History
Date Modified Username Field Change
2015-05-03 13:09 abma New Issue
2015-05-03 13:09 abma File Added: 20150205_215816_DeltaSiegeDry_98.0.1-364-g45c6f62 develop.sdf
2015-05-26 19:17 abma Description Updated View Revisions
2015-05-26 19:24 abma Note Added: 0014483
2015-05-26 19:24 abma Severity major => crash
2015-05-26 19:25 abma Summary lag spikes when targeting unreachable ground => crash (and lag spikes?) when targeting unreachable ground
2015-05-26 19:27 abma File Added: 20150526_192656_DeltaSiegeDry_98.0.1-674-g036b798 develop.sdf
2015-05-28 17:40 abma Relationship added related to 0004786
2015-05-28 21:54 abma Note Added: 0014487
2015-05-28 21:54 abma Status new => resolved
2015-05-28 21:54 abma Resolution open => fixed
2015-05-28 21:54 abma Assigned To => abma
2015-05-29 00:50 jK Changeset attached => spring develop e0313a3c
2015-05-29 00:50 jK Note Added: 0014489
2015-05-29 00:50 jK Assigned To abma => jK
2015-05-29 08:13 abma Note Added: 0014491
2015-05-29 08:13 abma Status resolved => new
2015-05-29 08:14 abma Note Added: 0014492
2015-05-29 08:14 abma Note Edited: 0014492 View Revisions
2015-05-29 08:58 jK Note Added: 0014493
2015-05-29 09:08 abma Note Added: 0014494
2015-05-29 09:08 abma Note Edited: 0014494 View Revisions
2015-05-29 09:09 abma Note Edited: 0014494 View Revisions
2015-05-29 09:11 abma Severity crash => major
2015-05-29 09:11 abma Status new => assigned
2015-05-29 09:11 abma Summary crash (and lag spikes?) when targeting unreachable ground => heavy lag when targeting unreachable ground
2015-05-30 13:04 abma Note Added: 0014500
2015-05-30 13:45 abma Note Edited: 0014500 View Revisions
2015-05-31 22:48 jK Changeset attached => spring develop d9f51e3e
2015-05-31 22:48 jK Note Added: 0014502
2015-05-31 22:48 jK Status assigned => resolved
+Issue History