Skip to content

[Net6] UpdateEngine codegen broken on Net6 #1136

@jasonswearingen

Description

@jasonswearingen

Release Type: Unofficial Net6 build. see #1126

Platform(s): Windows, Net6, VS2022

Describe the bug
I am trying the TopDownRPG sample using Net6 and it is crashing when trying to invoke what appears to be some code replaced by AssemblyProcessor
Stride.Engine\Updater\UpdateEngine.cs:line 510

 nextObject = ((UpdatableProperty)operation.Member).GetObject(currentPtr);
System.InvalidProgramException
  HResult=0x8013153A
  Message=Common Language Runtime detected an invalid program.
  Source=Stride.Engine
  StackTrace:
   at Stride.Updater.UpdatableProperty.GetObject(IntPtr obj) in C:\repos\_stride\stride\sources\engine\Stride.Engine\Updater\UpdatableProperty.cs:line 43
   at Stride.Updater.UpdateEngine.Run(Object target, CompiledUpdate compiledUpdate, IntPtr updateData, UpdateObjectData[] updateObjects) in C:\repos\_stride\stride\sources\engine\Stride.Engine\Updater\UpdateEngine.cs:line 510

just glancing but it seems this is some custom IL injected into binaries to do lower-level / unsafe code. I can't debug into or view the actual code that is crashing.

To Reproduce
Steps to reproduce the behavior:

  1. run GameStudio using net6 build.
  2. construct project from TopDownRPG sample
  3. try to run sample

Expected behavior
no unhandled exception

Mitigation
You can catch the thrown exception but animations won't play.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions