Comments (7)
I think I found what caused the problem - when building rules are parsed, new CBuildRestrictionDistance and etc. instances are created, and when the building rules are copied to the unit types that have the unit-template-town-hall set as their "parent" unit type, they still refer to the old instances. So when the game exits, it deletes the unit-template-town-hall unit type (along with its BuildingRules' CBuildRestrictionDistance instances), so that when its "child" units try to access it, those CBuildRestrictionDistance instances have already been deleted.
from wyrmgus.
Should be fixed with the latest commit of Wyrmsun and Wyrmgus, let me know if you still experience it.
from wyrmgus.
Different, but still bad:
*** Error in
./stratagus-dbg': corrupted double-linked list: 0x00000000057ac620 ***`
Backtrace:
#0 0x00007fdc9c4460eb in __lll_lock_wait_private ()
from /usr/lib/libc.so.6
#1 0x00007fdc9c3cc8ac in malloc () from /usr/lib/libc.so.6
#2 0x00007fdc9d4eea86 in ?? () from /usr/lib/libX11.so.6
#3 0x00007fdc9d4ef6a8 in _XReply () from /usr/lib/libX11.so.6
#4 0x00007fdc9d4eb11d in XSync () from /usr/lib/libX11.so.6
#5 0x00007fdc9ea6b928 in ?? () from /usr/lib/libSDL-1.2.so.0
#6 0x00007fdc9ea5bf4e in SDL_VideoQuit () from /usr/lib/libSDL-1.2.so.0
#7 0x00007fdc9ea35e45 in SDL_QuitSubSystem ()
from /usr/lib/libSDL-1.2.so.0
#8 0x00007fdc9ea35eee in SDL_Quit () from /usr/lib/libSDL-1.2.so.0
#9 0x000000000071c408 in CleanExit ()
at Wyrmgus/src/video/sdl.cpp:345
#10 <signal handler called>
#11 0x00007fdc9c385528 in raise () from /usr/lib/libc.so.6
#12 0x00007fdc9c38693a in abort () from /usr/lib/libc.so.6
#13 0x00007fdc9c3c3bb2 in __libc_message () from /usr/lib/libc.so.6
#14 0x00007fdc9c3c90fe in malloc_printerr () from /usr/lib/libc.so.6
#15 0x00007fdc9c3c93c6 in malloc_consolidate () from /usr/lib/libc.so.6
#16 0x00007fdc9c3c9f30 in _int_free () from /usr/lib/libc.so.6
#17 0x00007fdc9d517643 in _XimLocalIMFree () from /usr/lib/libX11.so.6
#18 0x00007fdc9d5178b4 in ?? () from /usr/lib/libX11.so.6
#19 0x00007fdc9d4fc920 in XCloseIM () from /usr/lib/libX11.so.6
#20 0x00007fdc9ea6b971 in ?? () from /usr/lib/libSDL-1.2.so.0
#21 0x00007fdc9ea5bf4e in SDL_VideoQuit () from /usr/lib/libSDL-1.2.so.0
#22 0x00007fdc9ea35e45 in SDL_QuitSubSystem ()
from /usr/lib/libSDL-1.2.so.0
#23 0x00007fdc9ea35eee in SDL_Quit () from /usr/lib/libSDL-1.2.so.0
#24 0x000000000071c408 in CleanExit ()
at Wyrmgus/src/video/sdl.cpp:345
#25 <signal handler called>
#26 0x00007fdc9c385528 in raise () from /usr/lib/libc.so.6
#27 0x00007fdc9c38693a in abort () from /usr/lib/libc.so.6
#28 0x00007fdc9c3c3bb2 in __libc_message () from /usr/lib/libc.so.6
#29 0x00007fdc9c3c90fe in malloc_printerr () from /usr/lib/libc.so.6
#30 0x00007fdc9c3c98db in _int_free () from /usr/lib/libc.so.6
#31 0x00000000006f371b in CUnitType::~CUnitType (this=0x5adff50,
__in_chrg=<optimized out>)
at Wyrmgus/src/unit/unittype.cpp:734
#32 0x00000000006f5fad in CleanUnitTypes ()
at Wyrmgus/src/unit/unittype.cpp:1533
#33 0x00000000005c6823 in CleanModules ()
at Wyrmgus/src/game/loadgame.cpp:94
#34 0x000000000067c124 in Exit (err=0)
at Wyrmgus/src/stratagus/stratagus.cpp:414
#35 0x000000000067c926 in stratagusMain (argc=3, argv=0x7fffc2c97f98)
at Wyrmgus/src/stratagus/stratagus.cpp:782
#36 0x000000000065d018 in main (argc=3, argv=0x7fffc2c97f98)
at Wyrmgus/src/stratagus/main.cpp:37
from wyrmgus.
Forgot that I just quit from the menu after it showed up
from wyrmgus.
With 6b69969 it seems to be fixed.
Can this be the cause for #11 too?
from wyrmgus.
Thanks! Different bug, yes, but same principle: "child" unit types inheriting references from their "parent", instead of a variable, causing a problem when deleting them.
Should be fixed with commit 237, let me know if the bug persists or you get another crash.
from wyrmgus.
It could be the cause for that, but I don't see what would be the relationship. I would leave that issue open, and see if you experience that bug again.
from wyrmgus.
Related Issues (20)
- Potential Desync Issue for Unit Circle Selection HOT 1
- wyrmgus binary no longer installed, instead it's the libstratagus.a
- Segfault after starting first scenario HOT 1
- 4.1.3 installs static library instead of a binary HOT 2
- Compilation error HOT 25
- Incorrect window size in game with multimonitor configuration HOT 2
- 5.1.1 does not build HOT 11
- Steam game crash after selecting Smithy to build HOT 7
- Cannot save a game HOT 17
- Missing include files HOT 5
- A Bargain is Struck Raft Crash HOT 1
- Compile error, no return in non-void function HOT 1
- -Werror=format-security HOT 3
- Crash when trying to create multiplayer game HOT 1
- Crash when loading a savegame HOT 2
- Problem with translation via module
- Conditional Requirement Strings on Wyrmsun HOT 10
- Compiling error when build on macOS
- Clarification on how Factions can be set to upgrade to/from one another HOT 3
- Compilation error with recommended version of Boost
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wyrmgus.