Git Product home page Git Product logo

Comments (4)

MichalStrehovsky avatar MichalStrehovsky commented on July 29, 2024 2

at System.Runtime.Serialization.SerializationGuard.CreateThrowIfDeserializationInProgressWithSwitchDelegate() + 0x59

Let's keep this open. I would have to go into a fist fight with the Microsoft security people to disable serialization guard in the things that Microsoft ships, but I'm more than happy to comment out stuff like this in my own fork. I wrote my opinion of the feature in dotnet/runtime#29212.

from bflat.

MichalStrehovsky avatar MichalStrehovsky commented on July 29, 2024

Hm, this quite possibly got broken in dotnet/runtimelab#1248.

Can you try passing the System.Private.Reflection.Core .dll it's complaining about as a -r parameter to bflat build? You will find the dll in the lib subdirectory of where you put bflat.

from bflat.

oyundev avatar oyundev commented on July 29, 2024

Thank you, your suggestion worked and I found the culprit:

bflat.exe build -r C:\bflat\lib\windows-x64\System.Private.Reflection.Core.dll --os:windows --no-reflection --no-globalization --no-exception-messages --Os
[Exception!] -> EETypeRva:0x00080328: TypeInitialization_Type_NoTypeAvailable
 ---> EETypeRva:0x0007FAB8: NotSupported_InstanceBodyRemoved
   at Internal.Runtime.CompilerHelpers.ThrowHelpers.ThrowInstanceBodyRemoved() + 0x33
   at System.Runtime.Serialization.SerializationGuard.CreateThrowIfDeserializationInProgressWithSwitchDelegate() + 0x59
   at System.Runtime.Serialization.SerializationGuard..cctor() + 0x1e
   at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0xc7
   Exception_EndOfInnerExceptionStack
   at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0x16c
   at System.Runtime.CompilerServices.ClassConstructorRunner.CheckStaticClassConstructionReturnGCStaticBase(StaticClassConstructionContext*, Object) + 0xd
   at System.Runtime.Serialization.SerializationGuard.ThrowIfDeserializationInProgress(String, Int32&) + 0x11
   at System.Diagnostics.Process.Start() + 0xab
   at System.Diagnostics.Process.Start(ProcessStartInfo) + 0x38

I think my problem is the same as this corert issue: "Workaround use of internal reflection in Process.Start #7909", dotnet/corert#7909 .

Looks like Process.Start(..) is not working because of reflection so I switched to good old p/invoke interop dllimport/shell32.dll ShellExecute(..) and it works fine in my case.

from bflat.

MichalStrehovsky avatar MichalStrehovsky commented on July 29, 2024

Fixed in 0.0.2.

from bflat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.