Warzone2100 / old-trac-import

Archived Import of (old) Warzone 2100 Trac
0 stars 0 forks source link

crash grid out of sync #1246

Closed wzdev-ci closed 14 years ago

wzdev-ci commented 14 years ago

resolution_duplicate type_bug | by wil


wil@williambell:~/projects/warzone/src$ ./warzone2100 
info    |08:52:06: [rebuildSearchPath] * Failed to remove path /home/wil/.warzone2100-trunk/ again
info    |08:52:06: [rebuildSearchPath] * Failed to remove path /home/wil/projects/warzone/data/ again
info    |08:54:19: [rebuildSearchPath] * Failed to remove path /home/wil/.warzone2100-trunk/ again
info    |08:54:53: [rebuildSearchPath] * Failed to remove path /home/wil/projects/warzone/data/ again
error   |08:54:57: [gridRemoveObject] Grid out of sync at (7,2):2 removing Oil Resource(4145)
error   |08:54:57: [gridRemoveObject] Assert in Warzone: mapgrid.c:236 (0), last script event: 'N/A'
warzone2100: mapgrid.c:236: gridRemoveObject: Assertion `0' failed.
Saved dump file to '/tmp/warzone2100.gdmp-ov5uUh'
If you create a bugreport regarding this crash, please include this file.
Aborted

Issue migrated from trac:1246 at 2022-04-15 20:17:27 -0700

wzdev-ci commented 14 years ago

wil uploaded file warzone2100.gdmp-ov5uUh (18.2 KiB)

wzdev-ci commented 14 years ago

wil commented


None of the crashes I'v had in Warzone are repeatable, this leads me to think that there are some serious memory corruption issues in the game.

wzdev-ci commented 14 years ago

cybersphinx commented


Most of them are asserts iirc, so if you compile in non-debug mode or run with --noassert, the assert won't happen. Question is if the conditions leading to the asserts are fatal or not...

wzdev-ci commented 14 years ago

Per commented


I've never seen a structure crash the map grid before, but there is something the matter with the map grid code giving unreproducible errors similar to this with droids.

wzdev-ci commented 14 years ago

Cyp changed status from new to closed

wzdev-ci commented 14 years ago

Cyp set resolution to duplicate

wzdev-ci commented 14 years ago

Cyp commented


Marking duplicate of #414. (New code in trunk should be completely deterministic, except in the case that two objects share the exact same x, y coordinates.)