stefanhendriks / Dune-II---The-Maker

A remake of the classic Dune 2 - The Building of a Dynasty (by Westwood Studios) with several enhancements. Like: higher screenresolutions, zooming, multiselect, skirmish play, etc.
https://www.dune2themaker.com
302 stars 27 forks source link

Game crash when playing with cBullet #501

Closed Mira-Chronos closed 2 years ago

Mira-Chronos commented 2 years ago

In combat, when the game is boiling :

image

Here: Thread 1 "d2tm" received signal SIGSEGV, Segmentation fault.

#1  0x000055555558309d in cBullet::arrivedAtDestinationLogic() ()
#2  0x00005555555f2bc9 in cGame::thinkFast_combat() [clone .constprop.0] ()
#3  0x00005555555e0af5 in cGame::run() [clone .constprop.0] ()
#4  0x000055555556ca7d in main ()

it seems that when a unit/structure takes too much damage (from multiple sources?) then there is a point where the game crashes

stefanhendriks commented 2 years ago

good find! This would need some investigation what happens. Perhaps one bullet makes a structure getting destroyed, and the next bullet somehow triggers this?

Mira-Chronos commented 2 years ago

Precision: the bug appears easier when I ask about ten tanks to shoot at a building. This bug happens frequently when all tanks fire a salvo.

Mira-Chronos commented 2 years ago

On master branch :

Sans titre

I can reproduce it when i attack this lot of tanks. Capture d’écran_2022-03-27_22-40-49

stefanhendriks commented 2 years ago

I can't seem to reproduce it on current master, @Akatsuki57 can you?

AssociationSirius commented 2 years ago

Nope. I make lot of tests ---> no crash.