Help! Crash after load

Post bug reports and ask for support here.

Moderators: elliotg, Icemania

Post Reply
captainjamesmartin
Posts: 1
Joined: Sun Apr 28, 2013 2:57 pm

Help! Crash after load

Post by captainjamesmartin »

I dont suppose anyone can help me? Ive just bought Distant Worlds and installed various updates and the Star Trek Picard mod, all has been fine until today when I load and get the following crash dump...

Distant Worlds - Crash Dump - 1.7.0.16

17:43:13 28 April 2013


System.ArgumentOutOfRangeException: 'minValue' cannot be greater than maxValue.
Parameter name: minValue
at System.Random.Next(Int32 minValue, Int32 maxValue)
at DistantWorlds.Types.Empire.GiveGiftSmallWhenSufficientTimePassed(Empire otherEmpire)
at DistantWorlds.Types.Empire.ImplementDiplomaticStrategy(Empire otherEmpire, DiplomaticStrategy strategy)
at DistantWorlds.Types.Empire.ReviewDiplomaticSituations()
at DistantWorlds.Types.Empire.DoTasks()
at DistantWorlds.Main.F6d3yiHG0lFIoEXxwOZ(Object )
at DistantWorlds.Main.o65GgEckA8(Object )


--- COMPLETE ---


I dont know what it means, can anyone help me fix it?
Bingeling
Posts: 5186
Joined: Thu Aug 12, 2010 11:42 am

RE: Help! Crash after load

Post by Bingeling »

Not much to read from it, apart from it crashing. And by function names that it is related to gift sending.

Does it always crash, or is it random? Upgrading to the latest beta patch could possibly solve it, but don't get your hopes up too much.
akiraly
Posts: 2
Joined: Mon Jun 30, 2014 3:16 pm

RE: Help! Crash after load

Post by akiraly »

I get the same error with 1.9.5.4. It is really annoying because it always happens at the same point in my game and blocks me from processing.

Can't attach save game because it is too large (17MB).

Stacktrace is the same (language is Hungarian) - looks like a programming error:

Distant Worlds - Crash Dump - 1.9.5.4

20:11:24 2014. június 30.


System.ArgumentOutOfRangeException: „minValue” nem lehet nagyobb, mint maxValue.
Paraméter neve: minValue
a következő helyen: System.Random.Next(Int32 minValue, Int32 maxValue)
a következő helyen: DistantWorlds.Types.Empire.GiveGiftSmallWhenSufficientTimePassed(Empire otherEmpire)
a következő helyen: DistantWorlds.Types.Empire.ImplementDiplomaticStrategy(Empire otherEmpire, DiplomaticStrategy strategy)
a következő helyen: DistantWorlds.Types.Empire.ReviewDiplomaticSituations()
a következő helyen: DistantWorlds.Types.Empire.DoTasks()
a következő helyen: DistantWorlds.Main.oXJ0s3fqcIAtkDHCEYF(Object )
a következő helyen: DistantWorlds.Main.p2EYOSIPBv(Object )


--- COMPLETE ---
akiraly
Posts: 2
Joined: Mon Jun 30, 2014 3:16 pm

RE: Help! Crash after load

Post by akiraly »

This error happens with 1.9.5.5 as well. It is really annoying. The only workaround I can do is to give small gifts to the empires myself so they don't try to send gifts to me. Only works for a short period before they try to send gifts again, crashing my game.

Would it be possible to get this fixed? I think the problem is probably in GiveGiftSmallWhenSufficientTimePassed() method: just add a check so System.Random.Next is invoked with a minValue that is always <= maxValue.

Distant Worlds - Crash Dump - 1.9.5.5

21:11:13 2014. július 7.


System.ArgumentOutOfRangeException: „minValue” nem lehet nagyobb, mint maxValue.
Paraméter neve: minValue
a következ&#337; helyen: System.Random.Next(Int32 minValue, Int32 maxValue)
a következ&#337; helyen: DistantWorlds.Types.Empire.GiveGiftSmallWhenSufficientTimePassed(Empire otherEmpire)
a következ&#337; helyen: DistantWorlds.Types.Empire.ImplementDiplomaticStrategy(Empire otherEmpire, DiplomaticStrategy strategy)
a következ&#337; helyen: DistantWorlds.Types.Empire.ReviewDiplomaticSituations()
a következ&#337; helyen: DistantWorlds.Types.Empire.DoTasks()
a következ&#337; helyen: DistantWorlds.Main.ntWYVhqDVjl7lNIkyDR(Object )
a következ&#337; helyen: DistantWorlds.Main.lv0f6oq06v(Object )


--- COMPLETE ---
Post Reply

Return to “Tech Support”