Giter Site home page Giter Site logo

Comments (9)

pardeike avatar pardeike commented on June 12, 2024

A stacktrace and a minimal reproducible example would be nice.

from zombieland.

MagikTriple7 avatar MagikTriple7 commented on June 12, 2024

Here is the full stacktrace, I am working on getting a reproducible example at the moment.

System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object
at Verse.GizmoGridDrawer+<>c.<.cctor>b__13_0 (Verse.Gizmo lhs, Verse.Gizmo rhs) [0x00007] in <95de19971c5d40878d8742747904cdcd>:0
at Verse.GenCollection+<>c__DisplayClass33_01[T].<SortStable>b__0 (Verse.Pair2[T1,T2] lhs, Verse.Pair2[T1,T2] rhs) [0x00014] in <95de19971c5d40878d8742747904cdcd>:0 at System.Collections.Generic.ArraySortHelper1[T].PickPivotAndPartition (T[] keys, System.Int32 lo, System.Int32 hi, System.Comparison1[T] comparer) [0x00052] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.ArraySortHelper1[T].IntroSort (T[] keys, System.Int32 lo, System.Int32 hi, System.Int32 depthLimit, System.Comparison1[T] comparer) [0x00069] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.ArraySortHelper1[T].IntrospectiveSort (T[] keys, System.Int32 left, System.Int32 length, System.Comparison1[T] comparer) [0x00015] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.ArraySortHelper1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison1[T] comparer) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 --- End of inner exception stack trace --- at System.Collections.Generic.ArraySortHelper1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison1[T] comparer) [0x00020] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.List1[T].Sort (System.Comparison1[T] comparison) [0x00012] in <eae584ce26bc40229c1b1aa476bfa589>:0 at Verse.GenCollection.SortStable[T] (System.Collections.Generic.IList1[T] list, System.Func3[T1,T2,TResult] comparator) [0x0006e] in <95de19971c5d40878d8742747904cdcd>:0 at Verse.GizmoGridDrawer.DrawGizmoGrid (System.Collections.Generic.IEnumerable1[T] gizmos, System.Single startX, Verse.Gizmo& mouseoverGizmo, System.Func2[T,TResult] customActivatorFunc, System.Func2[T,TResult] highlightFunc, System.Func2[T,TResult] lowlightFunc) [0x00026] in <95de19971c5d40878d8742747904cdcd>:0 at (wrapper dynamic-method) RimWorld.InspectGizmoGrid.RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0(System.Collections.Generic.IEnumerable1,Verse.Gizmo&) currentSelectable: null
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string)
Verse.Log:ErrorOnce (string,int)
(wrapper dynamic-method) RimWorld.InspectGizmoGrid:RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0 (System.Collections.Generic.IEnumerable`1,Verse.Gizmo&)
RimWorld.MainTabWindow_Inspect:DrawInspectGizmos ()
RimWorld.InspectPaneUtility:ExtraOnGUI (RimWorld.IInspectPane)
RimWorld.MainTabWindow_Inspect:ExtraOnGUI ()
Verse.WindowStack:WindowStackOnGUI ()
(wrapper dynamic-method) RimWorld.UIRoot_Play:RimWorld.UIRoot_Play.UIRootOnGUI_Patch1 (RimWorld.UIRoot_Play)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)

from zombieland.

MagikTriple7 avatar MagikTriple7 commented on June 12, 2024

Yep got it reproduced on another machine. Modlist order is:

Harmony
Core
Royalty
Ideology
Biotech
Vanilla Expanded Framework
VFE Mechanoids
Zombieland

(testing if this image works)

20230714123808_1

Different computer stacktrace:

System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object
at Verse.GizmoGridDrawer+<>c.<.cctor>b__13_0 (Verse.Gizmo lhs, Verse.Gizmo rhs) [0x00000] in <95de19971c5d40878d8742747904cdcd>:0
at Verse.GenCollection+<>c__DisplayClass33_01[T].<SortStable>b__0 (Verse.Pair2[T1,T2] lhs, Verse.Pair2[T1,T2] rhs) [0x00014] in <95de19971c5d40878d8742747904cdcd>:0 at System.Collections.Generic.ArraySortHelper1[T].InsertionSort (T[] keys, System.Int32 lo, System.Int32 hi, System.Comparison1[T] comparer) [0x0002a] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.ArraySortHelper1[T].IntroSort (T[] keys, System.Int32 lo, System.Int32 hi, System.Int32 depthLimit, System.Comparison1[T] comparer) [0x0004b] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.ArraySortHelper1[T].IntrospectiveSort (T[] keys, System.Int32 left, System.Int32 length, System.Comparison1[T] comparer) [0x00015] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.ArraySortHelper1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison1[T] comparer) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 --- End of inner exception stack trace --- at System.Collections.Generic.ArraySortHelper1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison1[T] comparer) [0x00020] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.List1[T].Sort (System.Comparison1[T] comparison) [0x00012] in <eae584ce26bc40229c1b1aa476bfa589>:0 at Verse.GenCollection.SortStable[T] (System.Collections.Generic.IList1[T] list, System.Func3[T1,T2,TResult] comparator) [0x0006e] in <95de19971c5d40878d8742747904cdcd>:0 at Verse.GizmoGridDrawer.DrawGizmoGrid (System.Collections.Generic.IEnumerable1[T] gizmos, System.Single startX, Verse.Gizmo& mouseoverGizmo, System.Func2[T,TResult] customActivatorFunc, System.Func2[T,TResult] highlightFunc, System.Func2[T,TResult] lowlightFunc) [0x00026] in <95de19971c5d40878d8742747904cdcd>:0 at RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor (System.Collections.Generic.IEnumerable1[T] selectedObjects, Verse.Gizmo& mouseoverGizmo) [0x0017a] in <95de19971c5d40878d8742747904cdcd>:0 currentSelectable: null
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.Log:ErrorOnce (string,int)
RimWorld.InspectGizmoGrid:DrawInspectGizmoGridFor (System.Collections.Generic.IEnumerable`1,Verse.Gizmo&)
RimWorld.MainTabWindow_Inspect:DrawInspectGizmos ()
RimWorld.InspectPaneUtility:ExtraOnGUI (RimWorld.IInspectPane)
RimWorld.MainTabWindow_Inspect:ExtraOnGUI ()
Verse.WindowStack:WindowStackOnGUI ()
RimWorld.UIRoot_Play:UIRootOnGUI ()
Verse.Root:OnGUI ()

from zombieland.

pardeike avatar pardeike commented on June 12, 2024

Sorry but there is no mod called "VFE Mechanoids" and I am not guessing which of the 20 mods that start with "VFE Mechanoids..." is the one you are usiing. Can you upload a minimal save game so I can use RimPy to sub to the right mods?

from zombieland.

pardeike avatar pardeike commented on June 12, 2024

I don't see how the stacktrace is related to Zombieland. You said that removing Zombieland "fixes" this but it could equally well be another side effect from starting Rimworld.

from zombieland.

MagikTriple7 avatar MagikTriple7 commented on June 12, 2024

Yeah sure. I just naturally abbreviate Vanilla Factions Expanded: Mechanoids to VFEM.

(testing upload)

RW test map.zip

I relate the stacktrace to the gizmos that Zombieland adds to colonists, as when Zombieland is not installed, the mechanoids work fine and can be used as intended.

from zombieland.

pardeike avatar pardeike commented on June 12, 2024

Ah, the save game helped. I have fixed the problem (you shall not return null for gizmos. It usually works until the game wants to sort all gizmos at which point you will get a NRE. I am now avoiding to yield a null gizmo. Fixed in the next release (4.2.1)

from zombieland.

MagikTriple7 avatar MagikTriple7 commented on June 12, 2024

Yay! Thank you for fixing this, considering I am probably the only person on the planet who has ran into this issue ever. I should really pick different hobbies that do not involve niche modding communities (cough cough Minecraft cough cough).

Any hint to when this update should release?

Again thank you for this.

from zombieland.

pardeike avatar pardeike commented on June 12, 2024

Already released

from zombieland.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.