Save over 7 GB, Fix32 overflow error (int 2126427) causes an infinite loop

Fixed
wtmxhyy [github] · 1 year ago

Issue description

E 10:39:10,490 S11084575 ~Sim: Overflow while creating Fix32 from int 2126427. Returning 2097152.
at Mafi.Fix32.FromInt (System.Int32 value) [0x00000]
at Mafi.Fix32.op_Implicit (System.Int32 i) [0x00000]
at Mafi.Core.Trains.TrainsManager+<>c.<simUpdateStart>b__53_0 (Mafi.Core.Trains.Train t1, Mafi.Core.Trains.Train t2) [0x00000]
at Mafi.Collections.ComparisonComparer1[T].Compare (T x, T y) [0x00000] at System.Collections.Generic.ArraySortHelper1[T].SwapIfGreater (T[] keys, System.Comparison1[T] comparer, System.Int32 a, System.Int32 b) [0x00000] at System.Collections.Generic.ArraySortHelper1[T].PickPivotAndPartition (T[] keys, System.Int32 lo, System.Int32 hi, System.Comparison1[T] comparer) [0x00000] at System.Collections.Generic.ArraySortHelper1[T].IntroSort (T[] keys, System.Int32 lo, System.Int32 hi, System.Int32 depthLimit, System.Comparison1[T] comparer) [0x00000] at System.Collections.Generic.ArraySortHelper1[T].IntrospectiveSort (T[] keys, System.Int32 left, System.Int32 length, System.Comparison1[T] comparer) [0x00000] at System.Collections.Generic.ArraySortHelper1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Collections.Generic.IComparer1[T] comparer) [0x00000] at System.Array.Sort[T] (T[] array, System.Int32 index, System.Int32 length, System.Collections.Generic.IComparer1[T] comparer) [0x00000]
E 10:39:10,490 S11084575 ~Sim: Overflow while creating Fix32 from int 2124098. Returning 2097152.

Reproduction steps

Triggered during mining.

Game version and build number

v0.7.7 b470

Operating system

Windows

Attachments

The infinite loop produced 7 GB, can't upload it

Originally posted in Chinese
存档超过7G,Fix32溢出错误(int 2126427)导致死循环
### Issue description E 10:39:10,490 S11084575 ~Sim: Overflow while creating Fix32 from int 2126427. Returning 2097152. at Mafi.Fix32.FromInt (System.Int32 value) [0x00000] at Mafi.Fix32.op_Implicit (System.Int32 i) [0x00000] at Mafi.Core.Trains.TrainsManager+<>c.<simUpdateStart>b__53_0 (Mafi.Core.Trains.Train t1, Mafi.Core.Trains.Train t2) [0x00000] at Mafi.Collections.ComparisonComparer`1[T].Compare (T x, T y) [0x00000] at System.Collections.Generic.ArraySortHelper`1[T].SwapIfGreater (T[] keys, System.Comparison`1[T] comparer, System.Int32 a, System.Int32 b) [0x00000] at System.Collections.Generic.ArraySortHelper`1[T].PickPivotAndPartition (T[] keys, System.Int32 lo, System.Int32 hi, System.Comparison`1[T] comparer) [0x00000] at System.Collections.Generic.ArraySortHelper`1[T].IntroSort (T[] keys, System.Int32 lo, System.Int32 hi, System.Int32 depthLimit, System.Comparison`1[T] comparer) [0x00000] at System.Collections.Generic.ArraySortHelper`1[T].IntrospectiveSort (T[] keys, System.Int32 left, System.Int32 length, System.Comparison`1[T] comparer) [0x00000] at System.Collections.Generic.ArraySortHelper`1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Collections.Generic.IComparer`1[T] comparer) [0x00000] at System.Array.Sort[T] (T[] array, System.Int32 index, System.Int32 length, System.Collections.Generic.IComparer`1[T] comparer) [0x00000] E 10:39:10,490 S11084575 ~Sim: Overflow while creating Fix32 from int 2124098. Returning 2097152. ### Reproduction steps 挖矿过程中触发, ### Game version and build number v0.7.7 b470 ### Operating system Windows ### Attachments 死循环7个G,无法上传
Captain Filip Captain Filip · 1 year ago

This was fixed in v0.7.8a, thanks for the report.

Closed as ✅ Fixed

10 Showing 1–2 of 2