roman-murashov / hedgewars

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

Failure to teleport rarely makes engine crash #855

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start a game with infinte teleporters
2. Activate teleporter
3. Wildly make a lot of “invalid” clicks to locations where you are not 
supposed to teleport to.
4. Repeat until the game crashes or you get tired from clicking

What is the expected output? What do you see instead?
Expected: The teleport fails every time, you hear the sound of failure and your 
hog is not teleported, the game continues and eventually you get tired from 
trying make the game crash.
Actual result: After a couple of clicks, the engine crashes with exit code 1.

Excerpt from the console:

Loading /Sounds/warp.ogg ok
intel_do_flush_locked failed: No such file or directory
Leaving PAGE_INGAME, entering PAGE_MULTIPLAYER
Object::disconnect: Unexpected null parameter
QCoreApplication::postEvent: Unexpected null receiver

What version of the product are you using? On what operating system?
I use GNU/Linux and can reproduce this in Git f488421…

Please provide any additional information below.
I am not sure what information I could provide else. If you need more 
information from me, just ask.

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

GoogleCodeExporter commented 8 years ago
Thanks for reporting!

As suspected a problem with the collision indicator.
I can reproduce the issue (sometimes) with teleport as described above - so far 
not with girders though, interesting.

reproduced using:

xdotool click --repeat 500  1

backtrace:
#0  0x00007fffe8f0e17c in ?? () from 
/usr/lib/nvidia-331/libnvidia-glcore.so.331.89
#1  0x000000000049bcef in FREETEXTURE (TEX=0x7dfecc8) at 
../../hg/hedgewars/uTextures.pas:310
#2  0x00000000004b842c in DELETEVISUALGEAR (GEAR=0x7eaba38) at 
../../hg/hedgewars/uVisualGearsList.pas:435
#3  0x000000000049af76 in DOSTEPNOPLACEWARN (GEAR=0x7eaba38, STEPS=18)
    at ../../hg/hedgewars/uVisualGearsHandlers.pas:917
#4  0x0000000000433425 in PROCESSVISUALGEARS (STEPS=18) at 
../../hg/hedgewars/uVisualGears.pas:82
#5  0x00000000004047e4 in DOTIMER (LAG=18) at 
../../hg/hedgewars/hwengine.pas:106
#6  0x00000000004051a8 in MAINLOOP () at ../../hg/hedgewars/hwengine.pas:295
#7  0x0000000000405a36 in GAME () at ../../hg/hedgewars/hwengine.pas:441
#8  0x0000000000405d87 in main () at ../../hg/hedgewars/hwengine.pas:583

Original comment by sheepyluva on 10 Dec 2014 at 8:38

GoogleCodeExporter commented 8 years ago
Fixed in r7111b4a46b5c

Original comment by sheepyluva on 15 Dec 2014 at 6:43