Crash on Save
Release Type: Official Release Version: 4.1.0.1948
Platform(s): Windows 10 Pro
Describe the bug I hit Ctrl+S and the bug apears.
To Reproduce Steps to reproduce the behavior:
- Create basic Project from YT Tutorial
- Delete everything
- Delete Scene assets too
- place some objects and play around with the values
- Hit Ctrl+S
Screenshots
Log and callstacks
Error: There was a problem saving the solution. Value cannot be null. (Parameter 'value')
ArgumentNullException: Value cannot be null. (Parameter 'value')
at System.IO.BinaryWriter.Write(String value)
at Stride.Core.Assets.AssetReferenceDataSerializer.Serialize(AssetReference& assetReference, ArchiveMode mode, SerializationStream stream) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\assets\Stride.Core.Assets\AssetReferenceDataSerializer.cs:line 29
at Stride.Core.Serialization.MemberReuseSerializer1.Serialize(T& obj, ArchiveMode mode, SerializationStream stream) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\core\Stride.Core\Serialization\MemberSerializerGenerated.cs:line 1122 at Stride.Core.Serialization.Serializers.KeyedSortedListSerializer3.Serialize(TKeyedList& obj, ArchiveMode mode, SerializationStream stream) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\core\Stride.Core\Serialization\Serializers\KeyedSortedListSerializer.cs:line 50
at Stride.Core.Serialization.MemberReuseSerializer1.Serialize(T& obj, ArchiveMode mode, SerializationStream stream) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\core\Stride.Core\Serialization\MemberSerializerGenerated.cs:line 1122 at Stride.Core.DataSerializers.StrideCoreAssets_PackageSerializer.Serialize(Package& obj, ArchiveMode mode, SerializationStream stream) at Stride.Core.Serialization.DataSerializer1.Serialize(Object& obj, ArchiveMode mode, SerializationStream stream) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\core\Stride.Core\Serialization\DataSerializer.cs:line 85
at Stride.Core.Serialization.MemberReuseSerializer1.SerializeExtended(T& obj, ArchiveMode mode, SerializationStream stream, DataSerializer1 dataSerializer) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\core\Stride.Core\Serialization\MemberSerializerGenerated.cs:line 1317
at Stride.Core.Assets.AssetCloner..ctor(Object value, AssetClonerFlags flags, IEnumerable`1 externalIdentifiables) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\assets\Stride.Core.Assets\AssetCloner.cs:line 78
at Stride.Core.Assets.Package.Clone() in C:\BuildAgent\work\b5f46e3c4829a09e\sources\assets\Stride.Core.Assets\Package.cs:line 387
at Stride.Core.Assets.PackageSession.Save(ILogger log, PackageSaveParameters saveParameters) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\assets\Stride.Core.Assets\PackageSession.cs:line 1107
at Stride.Core.Assets.Editor.ViewModel.SessionViewModel.<>c__DisplayClass194_0.<SaveSession>b__0() in C:\BuildAgent\work\b5f46e3c4829a09e\sources\editor\Stride.Core.Assets.Editor\ViewModel\SessionViewModel.cs:line 924
Additional context After watching the tutorials i wanted to try around in the editor to get a feel. I deleted everything from the basic tutorial scenery, i also deleted the scenes in the assets. Added 2 empty entities in the current main scene, made 1 cube with no material in the assets, 1 plane with metalic blue material and added both to the scene. Then i added a directional light and a point light. The directional light was repositioned and then the Point lights radius was adjusted with the mouse first, but it was to wild of an increase, so i typed a number instead, 10. I noticed that the alt key did not allow me to orbit in the Viewport when alt was pressed either outside of before the Viewport focus/under mouse. Then i hit Ctrl+S and the bug popped. I thought its because the cube without material, deleted it, tried again, same problem. Then i deleted some assets , same problem still.
Hi @MCVenor. Which tutorial were you following? At what point in the tutorial did you delete everything?
The tutorial has no part in this as in the tutorial did not instruct me to delete everything. This is just to give a context where i got the initial scene/project from
This is the tutorial in question LINK
In this tutorial we create a project from a predefined selection
Edit: ups didnt awnser the second question. "At what point in the tutorial did you delete everything?" I was not coding along in the tutorials, the project as strict made from the predefined selection (min 1:45 in First Video). So at no point did i delete everything during the tutorial. It was just make new -> delete all -> save crash, in a nutshell.
Hi @MCVenor, I completely understand the tutorial didn't instruct you to delete everything.
The exception is likely a result of something not properly being cleaned up after it was deleted. So, knowing what you'd done before deleting will help speedup the process of isolating the problem.
I'm able to recreate this bug. I run into it quiet frequently.
I'm able to recreate this bug. I run into it quiet frequently.
does it happen by not pressing ctrl s so long?