sm00thslp / hedgewars

Automatically exported from code.google.com/p/hedgewars
GNU General Public License v2.0
0 stars 0 forks source link

Hedgehog dropping into water while still attached to a rope makes engine crash #871

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start a game with ropes
2. Control a hedgehog and attach the rope somewhere near water
3. Extend the rope and make the hedgehog drown, while still being attached to 
the rope

What is the expected output? What do you see instead?
Expected: Hedgewars engine does not crash.
Actual: Hedgewars engine crashes with exit code 217.

Here’s the output of the console:

An unhandled exception occurred at $0815462A :
EAccessViolation : Access violation
  $0815462A  doStepRopeWork,  line 128 of uGearsHandlersRope.pas
  $0807602C  ProcessGears,  line 221 of uGears.pas
  $0806D88B  DoGameTick,  line 96 of uGame.pas
  $0804B678  DoTimer,  line 105 of /home/wuzzy/src/hedgewars/hg/trunk/hedgewars/hwengine.pas
  $0804BF3E  MainLoop,  line 295 of /home/wuzzy/src/hedgewars/hg/trunk/hedgewars/hwengine.pas
  $0804C588  Game,  line 441 of /home/wuzzy/src/hedgewars/hg/trunk/hedgewars/hwengine.pas
  $0804C8FD  $main,  line 583 of /home/wuzzy/src/hedgewars/hg/trunk/hedgewars/hwengine.pas

Heap dump by heaptrc unit
0 memory blocks allocated : 0/0
0 memory blocks freed     : 0/0
0 unfreed memory blocks : 0
True heap size : 0
True free heap : 0
Leaving PAGE_INGAME, entering PAGE_MULTIPLAYER
Object::disconnect: Unexpected null parameter
CoreApplication::postEvent: Unexpected null receiver

What version of the product are you using? On what operating system?
r73545fd91efa on GNU/Linux.

Original issue reported on code.google.com by almikes@aol.com on 15 Dec 2014 at 10:19

GoogleCodeExporter commented 9 years ago
Addendum: I managed to narrow down the crash a bit: This bug only happens in 
themes where the water opacity is 255 (maximum), so use the Underwater theme 
for testing.

Original comment by almikes@aol.com on 15 Dec 2014 at 10:36

GoogleCodeExporter commented 9 years ago
awesome, I was looking at this like 2 days ago and wondering why it doesn't 
happen in all themes :)

Original comment by sheepyluva on 16 Dec 2014 at 2:08

GoogleCodeExporter commented 9 years ago
Fixed by nemo in r1be106f8095a

Thanks for reporting and for finding out the crashing condition!

Original comment by sheepyluva on 16 Dec 2014 at 7:37