Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on last Lix exiting (multiplayer) #269

Closed
geoo89 opened this issue Dec 2, 2017 · 0 comments
Closed

Crash on last Lix exiting (multiplayer) #269

geoo89 opened this issue Dec 2, 2017 · 0 comments

Comments

@geoo89
Copy link
Contributor

geoo89 commented Dec 2, 2017

This crash happened just as I saved my last lix in a multiplayer game.
Some people had already nuked, and I recall someone had nuked early on without saving anything.

OS: Ubuntu 14.04 LTE
Lix version: 0.9.4

$ dub
Target allegro 4.0.1+5.2.0 is up to date. Use --force to rebuild.
Target enumap 0.4.1 is up to date. Use --force to rebuild.
Target derelict-util 2.1.0 is up to date. Use --force to rebuild.
Target derelict-enet 2.0.0 is up to date. Use --force to rebuild.
Target lix ~master is up to date. Use --force to rebuild.
Running ./bin/lix 
core.exception.AssertError@src/game/tribe.d(211): Assertion failure
----------------
??:? _d_assertp [0x9b2585]
src/game/tribe.d:211 _D4game5tribe5Tribe21triggersOvertimeSinceMxFNdNiZ8__ensureMFNiKxS3net4phyu4PhyuZv [0x925e43]
src/game/tribe.d:211 const(@property @nogc net.phyu.Phyu function()) game.tribe.Tribe.triggersOvertimeSince [0x925db9]
src/game/model/state.d:180 _D4game5model5state12RawGameState20overtimeRunningSinceMxFNdZ34__T9__lambda5TxC4game5tribe5TribeZ9__lambda5FNixC4game5tribe5TribeZS3net4phyu4Phyu [0x911930]
/usr/include/dmd/phobos/std/algorithm/iteration.d:597 @property @nogc net.phyu.Phyu std.algorithm.iteration.__T9MapResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda5TS3std9algorithm9iteration250__T12FilterResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda4TS6object89__T7byValueHTxHE3net5style5StyleC4game5tribe5TribeTE3net5style5StyleTxC4game5tribe5TribeZ7byValueFNaNbNixHE3net5style5StyleC4game5tribe5TribeZ6ResultZ12FilterResultZ.MapResult.front() [0x911aca]
/usr/include/dmd/phobos/std/algorithm/iteration.d:2781 net.phyu.Phyu std.algorithm.iteration.__T6reduceS303std9algorithm10comparison3minZ.reduce!(std.algorithm.iteration.__T9MapResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda5TS3std9algorithm9iteration250__T12FilterResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda4TS6object89__T7byValueHTxHE3net5style5StyleC4game5tribe5TribeTE3net5style5StyleTxC4game5tribe5TribeZ7byValueFNaNbNixHE3net5style5StyleC4game5tribe5TribeZ6ResultZ12FilterResultZ.MapResult).reduce(std.algorithm.iteration.__T9MapResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda5TS3std9algorithm9iteration250__T12FilterResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda4TS6object89__T7byValueHTxHE3net5style5StyleC4game5tribe5TribeTE3net5style5StyleTxC4game5tribe5TribeZ7byValueFNaNbNixHE3net5style5StyleC4game5tribe5TribeZ6ResultZ12FilterResultZ.MapResult) [0x8a41d5]
src/game/model/state.d:179 const(@property net.phyu.Phyu function()) game.model.state.RawGameState.overtimeRunningSince [0x910912]
src/game/model/state.d:118 const(@property int function()) game.model.state.RawGameState.overtimeRemainingInPhyus [0x910488]
src/game/model/state.d:124 const(@property bool function()) game.model.state.RawGameState.nuking [0x910509]
src/lix/perform.d:25 void lix.perform.performUseGadgets(lix.lixxie.LixxieImpl*) [0x96dd07]
src/lix/lixxie.d:513 void lix.lixxie.LixxieImpl.perform(lix.fields.OutsideWorld*) [0x96d6fe]
src/game/model/model.d:254 _D4game5model5model9GameModel13updateLixxiesMFZ15performUnmarkedMFE3net2ac9PhyuOrderZ9__lambda2MFC4game5tribe5TribexiPS3lix6lixxie10LixxieImplZv [0x90cb21]
src/game/model/model.d:216 _D4game5model5model9GameModel13updateLixxiesMFZ10foreachLixMFDFC4game5tribe5TribexiPS3lix6lixxie10LixxieImplZvZv [0x90c835]
src/game/model/model.d:250 _D4game5model5model9GameModel13updateLixxiesMFZ15performUnmarkedMFE3net2ac9PhyuOrderZv [0x90ca97]
src/game/model/model.d:270 void game.model.model.GameModel.updateLixxies() [0x90c733]
src/game/model/model.d:93 void game.model.model.GameModel.advance() [0x90bd2c]
src/game/model/nurse.d:204 void game.model.nurse.Nurse.updateOnce() [0x90e67a]
src/game/model/nurse.d:135 void game.model.nurse.Nurse.updateTo(const(net.phyu.Phyu), const(game.model.cache.DuringTurbo)) [0x90dc2f]
src/game/core/speed.d:26 void game.core.speed.updatePhysicsAccordingToSpeedButtons(game.core.game.Game).upd(const(int), const(game.model.cache.DuringTurbo)) [0x9028c3]
src/game/core/speed.d:68 void game.core.speed.updatePhysicsAccordingToSpeedButtons(game.core.game.Game) [0x9027d6]
src/game/core/calc.d:26 void game.core.calc.implGameCalc(game.core.game.Game).noninputCalc() [0x8fd511]
src/game/core/calc.d:38 void game.core.calc.implGameCalc(game.core.game.Game) [0x8fd3ed]
src/game/core/game.d:191 void game.core.game.Game.calc() [0x900830]
src/basics/mainloop.d:253 void basics.mainloop.MainLoop.calc() [0x8121e3]
src/basics/mainloop.d:87 void basics.mainloop.MainLoop.mainLoop() [0x81186b]
src/main.d:37 int main.main(immutable(char)[][]).__lambda2() [0x97769c]
../../../home/georg/.dub/packages/allegro-4.0.1_5.2.0/allegro5/system.d:45 extern (C) int allegro5.system.al_run_allegro(scope int delegate()).main_runner(int, char**) [0x9ae422]
../../../home/georg/.dub/packages/allegro-4.0.1_5.2.0/allegro5/system.d:62 int allegro5.system.al_run_allegro(scope int delegate()) [0x9ae3fd]
src/main.d:35 _Dmain [0x977633]
Error executing command run:
Program exited with code 1

There was another occurrence, I believe just as I got a big pack of lix from another player, slightly different stack trace:

Running ./bin/lix 
core.exception.AssertError@src/game/tribe.d(211): Assertion failure
----------------
??:? _d_assertp [0x9b2585]
src/game/tribe.d:211 _D4game5tribe5Tribe21triggersOvertimeSinceMxFNdNiZ8__ensureMFNiKxS3net4phyu4PhyuZv [0x925e43]
src/game/tribe.d:211 const(@property @nogc net.phyu.Phyu function()) game.tribe.Tribe.triggersOvertimeSince [0x925db9]
src/game/model/state.d:180 _D4game5model5state12RawGameState20overtimeRunningSinceMxFNdZ34__T9__lambda5TxC4game5tribe5TribeZ9__lambda5FNixC4game5tribe5TribeZS3net4phyu4Phyu [0x911930]
/usr/include/dmd/phobos/std/algorithm/iteration.d:597 @property @nogc net.phyu.Phyu std.algorithm.iteration.__T9MapResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda5TS3std9algorithm9iteration250__T12FilterResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda4TS6object89__T7byValueHTxHE3net5style5StyleC4game5tribe5TribeTE3net5style5StyleTxC4game5tribe5TribeZ7byValueFNaNbNixHE3net5style5StyleC4game5tribe5TribeZ6ResultZ12FilterResultZ.MapResult.front() [0x911aca]
/usr/include/dmd/phobos/std/algorithm/iteration.d:2843 @nogc net.phyu.Phyu std.algorithm.iteration.__T6reduceS303std9algorithm10comparison3minZ.reduceImpl!(false, std.algorithm.iteration.__T9MapResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda5TS3std9algorithm9iteration250__T12FilterResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda4TS6object89__T7byValueHTxHE3net5style5StyleC4game5tribe5TribeTE3net5style5StyleTxC4game5tribe5TribeZ7byValueFNaNbNixHE3net5style5StyleC4game5tribe5TribeZ6ResultZ12FilterResultZ.MapResult, net.phyu.Phyu).reduceImpl(std.algorithm.iteration.__T9MapResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda5TS3std9algorithm9iteration250__T12FilterResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda4TS6object89__T7byValueHTxHE3net5style5StyleC4game5tribe5TribeTE3net5style5StyleTxC4game5tribe5TribeZ7byValueFNaNbNixHE3net5style5StyleC4game5tribe5TribeZ6ResultZ12FilterResultZ.MapResult, ref net.phyu.Phyu) [0x8a4287]
/usr/include/dmd/phobos/std/algorithm/iteration.d:2784 net.phyu.Phyu std.algorithm.iteration.__T6reduceS303std9algorithm10comparison3minZ.reduce!(std.algorithm.iteration.__T9MapResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda5TS3std9algorithm9iteration250__T12FilterResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda4TS6object89__T7byValueHTxHE3net5style5StyleC4game5tribe5TribeTE3net5style5StyleTxC4game5tribe5TribeZ7byValueFNaNbNixHE3net5style5StyleC4game5tribe5TribeZ6ResultZ12FilterResultZ.MapResult).reduce(std.algorithm.iteration.__T9MapResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda5TS3std9algorithm9iteration250__T12FilterResultS694game5model5state12RawGameState20overtimeRunningSinceMxFNdZ9__lambda4TS6object89__T7byValueHTxHE3net5style5StyleC4game5tribe5TribeTE3net5style5StyleTxC4game5tribe5TribeZ7byValueFNaNbNixHE3net5style5StyleC4game5tribe5TribeZ6ResultZ12FilterResultZ.MapResult) [0x8a41ff]
src/game/model/state.d:179 const(@property net.phyu.Phyu function()) game.model.state.RawGameState.overtimeRunningSince [0x910912]
src/game/model/state.d:118 const(@property int function()) game.model.state.RawGameState.overtimeRemainingInPhyus [0x910488]
src/game/model/state.d:124 const(@property bool function()) game.model.state.RawGameState.nuking [0x910509]
src/lix/perform.d:25 void lix.perform.performUseGadgets(lix.lixxie.LixxieImpl*) [0x96dd07]
src/lix/lixxie.d:513 void lix.lixxie.LixxieImpl.perform(lix.fields.OutsideWorld*) [0x96d6fe]
src/game/model/model.d:254 _D4game5model5model9GameModel13updateLixxiesMFZ15performUnmarkedMFE3net2ac9PhyuOrderZ9__lambda2MFC4game5tribe5TribexiPS3lix6lixxie10LixxieImplZv [0x90cb21]
src/game/model/model.d:216 _D4game5model5model9GameModel13updateLixxiesMFZ10foreachLixMFDFC4game5tribe5TribexiPS3lix6lixxie10LixxieImplZvZv [0x90c835]
src/game/model/model.d:250 _D4game5model5model9GameModel13updateLixxiesMFZ15performUnmarkedMFE3net2ac9PhyuOrderZv [0x90ca97]
src/game/model/model.d:270 void game.model.model.GameModel.updateLixxies() [0x90c733]
src/game/model/model.d:93 void game.model.model.GameModel.advance() [0x90bd2c]
src/game/model/nurse.d:204 void game.model.nurse.Nurse.updateOnce() [0x90e67a]
src/game/model/nurse.d:135 void game.model.nurse.Nurse.updateTo(const(net.phyu.Phyu), const(game.model.cache.DuringTurbo)) [0x90dc2f]
src/game/core/speed.d:26 void game.core.speed.updatePhysicsAccordingToSpeedButtons(game.core.game.Game).upd(const(int), const(game.model.cache.DuringTurbo)) [0x9028c3]
src/game/core/speed.d:68 void game.core.speed.updatePhysicsAccordingToSpeedButtons(game.core.game.Game) [0x9027d6]
src/game/core/calc.d:26 void game.core.calc.implGameCalc(game.core.game.Game).noninputCalc() [0x8fd511]
src/game/core/calc.d:38 void game.core.calc.implGameCalc(game.core.game.Game) [0x8fd3ed]
src/game/core/game.d:191 void game.core.game.Game.calc() [0x900830]
src/basics/mainloop.d:253 void basics.mainloop.MainLoop.calc() [0x8121e3]
src/basics/mainloop.d:87 void basics.mainloop.MainLoop.mainLoop() [0x81186b]
src/main.d:37 int main.main(immutable(char)[][]).__lambda2() [0x97769c]
../../../home/georg/.dub/packages/allegro-4.0.1_5.2.0/allegro5/system.d:45 extern (C) int allegro5.system.al_run_allegro(scope int delegate()).main_runner(int, char**) [0x9ae422]
../../../home/georg/.dub/packages/allegro-4.0.1_5.2.0/allegro5/system.d:62 int allegro5.system.al_run_allegro(scope int delegate()) [0x9ae3fd]
src/main.d:35 _Dmain [0x977633]
Error executing command run:
Program exited with code 1
@SimonN SimonN closed this as completed in cbbf8fe Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant