Closed XDelta closed 1 month ago
Tested a few assorted things including down to a plugin with basically no code in it beyond just [assembly: DataModelAssembly(DataModelAssemblyType.Core)]
and it results in the same.
We still need a full log file,However I found one in: https://github.com/resonite-modding-group/ResoniteModLoader/issues/16 which allows me to see the bottom and top of the stack trace.
at Mono.Cecil.TypeReference.Resolve()
at FrooxEngine.Weaver.AssemblyPostProcessor.Process(System.String, System.String ByRef, System.String)
at FrooxEngine.Weaver.AssemblyPostProcessor.Process(System.String, System.String)
at FrooxEngine.Engine+<ProcessStartupCommands>d__324.MoveNext()
Tells me what's up and I can take a deeper look.
Tested a few assorted things including down to a plugin with basically no code in it beyond just
[assembly: DataModelAssembly(DataModelAssemblyType.Core)]
and it results in the same.
Can you make this available to me?
The log included at the top was the 'full log' in terms of what is logged to file and has some of the output from a console window before it closes.
Sent barebones plugin via discord, also zipped up the same here ExamplePlugin.zip
Ok dug into this.
This is basically what we do with plugins:
foreach (var assembly in options.AdditionalAssemblies)
{
// run the processing on it
if (AssemblyPostProcessor.Process(assembly, frooxEnginePath))
UniLog.Log("POSTX Processed Assembly: " + assembly);
}
So I took that to a new project, with @XDelta's test plugin:
static void Main(string[] args)
{
var a = AssemblyPostProcessor.Process("ExamplePlugin.dll",null);
Console.WriteLine(a);
}
This passes and is processed correctly, using fresh dlls from a build on my machine.
My next test will do the same but using the DLLs from the downloaded headless copy.
I tried it with the headless dlls and also could not reproduce outside of Resonite.
@Frooxius I'm stumped now, will need your help.
I tried it with the headless dlls and also could not reproduce outside of Resonite.
Were you able to reproduce it? Just want to be sure that's what you're saying.
Also in regards to log, the Resonite log itself was not attached because it ends before collecting any details of the crash, I grabbed the Docker console output and provided that the RML issue I posted. The logs entries up until the crash are effectively the same.
I was unable to cause the crash, when using my test app.
As my test app is very simple, others could try the same as I with their files, perhaps that might show something. If you make a new .net project reference FrooxEngine.Weaver.dll from the build.
You'll also need to put FrooxEngine.dll in the bin folder of your test project.
I managed to reproduce this with the ExamplePlugin.dll on my end. I'll try to dig into why is it happening now.
Hmm, something must've messed up with the headless build, like a wrong or extra file copied. I did a clean rebuild and it works now.
I've pushed a headless update 2024.10.1.701. It's the same build as normal, just a clean rebuild.
Thanks for the report!
Describe the bug?
When attempting to launch the latest headless with any LoadAssembly arg (Plugin), it seems to be crashing with a stack overflow before loading the plugins
To Reproduce
Run the latest headless with any LoadAssembly arg that is set to a valid plugin dll.
For example
Resonite.exe -LoadAssembly Libraries\ResoniteModLoader.dll
but I've additionally checked with very barebones plugin to confirm it isn't just an issue with RML. The headless will get as far as 'Processing startup commands...' then hit a stack overflowExpected behavior
The plugin code to be called and used.
Resonite Version Number
2024.9.30.1216
What Platforms does this occur on?
Windows
Log Files
Log 'cut short' as it just repeats until it closes the console window, also of note, the stack overflow does not get logged to file so I copied from the console window directly
(From RML issue made on this, includes full console output on linux)
https://github.com/user-attachments/files/17197215/resoniteheadless_stackoverflow.log
Additional Context
Connected issue on RML https://github.com/resonite-modding-group/ResoniteModLoader/issues/16
Reporters
_deltawolf, nepushiro, rucio, adamski2003