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

Unhandled exception. System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'value') #1

Open
NoahZuo opened this issue Oct 13, 2024 · 1 comment

Comments

@NoahZuo
Copy link

NoahZuo commented Oct 13, 2024

While using this tool to read my snapshot file, an exception has just raised:

Processing 417 GC roots...
Unhandled exception. System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'value')
at UMS.Analysis.Structures.Objects.ComplexFieldValue..ctor(SnapshotFile file, BasicFieldInfoCache info, Nullable1 parent, Span1 data, Int32 depth, LoadedReason loadedReason) in I:\Snapshot\UnityMemorySnapshotThing\UMS.Analysis\Structures\Objects\ComplexFieldValue.cs:line 33
at UMS.Analysis.Structures.Objects.IFieldValue.Read(SnapshotFile file, BasicFieldInfoCache info, Span1 fieldData, Int32 depth, LoadedReason loadedReason, Nullable1 parent) in I:\Snapshot\UnityMemorySnapshotThing\UMS.Analysis\Structures\Objects\IFieldValue.cs:line 56
at UMS.Analysis.Structures.Objects.ManagedClassInstance.ReadFieldValue(SnapshotFile file, BasicFieldInfoCache info, Span1 fieldData, Int32 depth, LoadedReason loadedReason) in I:\Snapshot\UnityMemorySnapshotThing\UMS.Analysis\Structures\Objects\ManagedClassInstance.cs:line 153 at UMS.Analysis.Structures.Objects.ManagedClassInstance.ReadFields(SnapshotFile file, Span1 data, Int32 depth) in I:\Snapshot\UnityMemorySnapshotThing\UMS.Analysis\Structures\Objects\ManagedClassInstance.cs:line 146
at UMS.Analysis.Structures.Objects.ManagedClassInstance..ctor(SnapshotFile file, RawManagedObjectInfo info, Nullable1 parent, Int32 depth, LoadedReason loadedReason, Int32 fieldIndexOrArrayOffset) in I:\Snapshot\UnityMemorySnapshotThing\UMS.Analysis\Structures\Objects\ManagedClassInstance.cs:line 116 at UMS.Analysis.SnapshotFile.GetOrCreateManagedClassInstance(UInt64 address, Nullable1 parent, Int32 depth, LoadedReason reason, Int32 fieldOrArrayIdx) in I:\Snapshot\UnityMemorySnapshotThing\UMS.Analysis\SnapshotFile.cs:line 120
at UMS.Analysis.SnapshotFile.LoadManagedObjectsFromGcRoots() in I:\Snapshot\UnityMemorySnapshotThing\UMS.Analysis\SnapshotFile.cs:line 61
at UnityMemorySnapshotThing.Program.Main(String[] args) in I:\Snapshot\UnityMemorySnapshotThing\UnityMemorySnapshotThing\Program.cs:line 57

How to fix this issue please?

@SamboyCoding
Copy link
Owner

What version of unity?

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

2 participants