Skip to content

[Bug] Memory stream is not expandable. version 5.6 #250

Open
@githubUser01946

Description

@githubUser01946

Description

When I edit expedition things and save it crashes.

  • Version: Relics
  • Platform: [e.g. Microsoft]

NomNom 5.60.0+29f5d2133adc3c800002f6c48e7ebfadaa490cbf Crash Report

Environment

Operating System
Microsoft Windows 10.0.19045

.NET
.NET 6.0.36

Exception

Type
System.NotSupportedException

Message
Memory stream is not expandable.

Stack Trace
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(ReadOnlySpan1 buffer) at System.IO.BinaryWriter.Write(UInt32 value) at libNOM.io.Platform.OverwriteWorldsMeta(BinaryWriter writer, Container container) at libNOM.io.PlatformMicrosoft.CreateMeta(Container container, ReadOnlySpan1 data)
at libNOM.io.Platform.PrepareMeta(Container container, ReadOnlySpan`1 data)
at libNOM.io.PlatformMicrosoft.WritePlatformSpecific(Container container, DateTimeOffset writeTime)
at libNOM.io.Platform.Write(IContainer container, DateTimeOffset writeTime)
at libNOM.io.Platform.Write(IContainer container)
at NomNom.Models.ContainerWrapper.Write()
at NomNom.ViewModels.MainWindowViewModel.Save()
at Prism.Commands.DelegateCommand.Execute()
at Prism.Commands.DelegateCommand.Execute(Object parameter)
at Prism.Commands.DelegateCommandBase.System.Windows.Input.ICommand.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions