View Issue Details

IDProjectCategoryView StatusLast Update
0000822Spring engineGeneralpublic2008-10-16 17:47
Reportermonohouse Assigned ToKloot  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status resolvedResolutionfixed 
Summary0000822: crash when accessing heightmap in Unit.cpp:718
Descriptionanother crash
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
Checked infolog.txt for Errors

Relationships

has duplicate 0000823 closed another crash 

Activities

tvo

2008-02-01 11:21

reporter   ~0001922

(0) ??
        /var/lib/buildbot/spring_slave/mingw32-4.2/build/rts/Sim/Units/Unit.cpp:718

(1) std::_List_iterator<CUnit*>::operator++()
        /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c++/bits/stl_list.h:142

(2) ??
        /var/lib/buildbot/spring_slave/mingw32-4.2/build/rts/Game/Game.cpp:2521

(3) ??
        /var/lib/buildbot/spring_slave/mingw32-4.2/build/rts/Game/Game.cpp:2935

(4) ??
        /var/lib/buildbot/spring_slave/mingw32-4.2/build/rts/Game/Game.cpp:1887

(5) ??
        /var/lib/buildbot/spring_slave/mingw32-4.2/build/rts/System/Main.cpp:869

(6) ??
        /var/lib/buildbot/spring_slave/mingw32-4.2/build/rts/System/Main.cpp:1055

(7) Run(int, char**)
        /var/lib/buildbot/spring_slave/mingw32-4.2/build/rts/System/Main.cpp:1115

(8) WinMain@16
        /var/lib/buildbot/spring_slave/mingw32-4.2/build/rts/System/Main.cpp:1178


714 if (uh->waterDamage) {
  715 bool inWater = (pos.y <= -3);
  716 bool isFloating = (physicalState == CSolidObject::Floating);
  717 bool onGround = (physicalState == CSolidObject::OnGround);
  718 bool waterSquare = (readmap->mipHeightmap[1][int((pos.z / (SQUARE_SIZE * 2)) * gs->hmapx + (pos.x / (SQUARE_SIZE * 2)))] < -1);
  719
  720 // old: "floating or (on ground and height < -3 and mapheight < -1)"
  721 // new: "height < -3 and (floating or on ground) and mapheight < -1"
  722 if (inWater && (isFloating || onGround) && waterSquare) {
  723 DoDamage(DamageArray() * uh->waterDamage, 0, ZeroVector, -1);
  724 }

Auswaschbar

2008-10-16 13:11

reporter   ~0002950

closed because of oldness

Kloot

2008-10-16 17:47

developer   ~0002961

this one actually got resolved

Issue History

Date Modified Username Field Change
2008-01-24 03:20 monohouse New Issue
2008-01-24 03:20 monohouse File Added: infolog.txt
2008-02-01 11:21 tvo Note Added: 0001922
2008-02-01 12:20 tvo Relationship added has duplicate 0000823
2008-02-01 12:27 tvo Summary another crash => crash when accessing heightmap in Unit.cpp:718
2008-10-16 13:11 Auswaschbar Status new => closed
2008-10-16 13:11 Auswaschbar Note Added: 0002950
2008-10-16 13:11 Auswaschbar Resolution open => fixed
2008-10-16 17:47 Kloot Status closed => new
2008-10-16 17:47 Kloot Resolution fixed => reopened
2008-10-16 17:47 Kloot Status new => resolved
2008-10-16 17:47 Kloot Resolution reopened => fixed
2008-10-16 17:47 Kloot Assigned To => Kloot
2008-10-16 17:47 Kloot Note Added: 0002961