Comments (4)
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.
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.
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.
Fixed in 0.0.2.
from bflat.
Related Issues (20)
- [zerolib] Implement `System.Math` HOT 5
- [zerolib] Binding to C standard library HOT 3
- On Linux, command line arguments cannot contain multi-byte codepoints because of limitation on the String type HOT 5
- Delegate type definition missmatch in zerolib
- enum and flag --no-reflection HOT 2
- Program compiled by `bflat build-il` can't be run on .NET runtime HOT 6
- `bflat build-il` can't target .NET 7 and .NET 8 HOT 11
- `bflat` crashed my computer due to OOM HOT 1
- Wasi-Wasm support? HOT 1
- Tool to generate `*.runtimeconfig.json` and `*.deps.json` HOT 3
- [Windows] Is it possible for `bflat` to generate `gdb` compatible debug info?
- Port for other platforms HOT 2
- `bflat` happily compiles a program without `Main` method HOT 2
- The compiler should set the extension for the output automatically HOT 5
- Not found 'NetSecurityNative'
- Failed to load assembly 'System.Private.CoreLib' HOT 1
- Rider LSP and Analytics does not work HOT 9
- How to include/link external nuget packages HOT 5
- support x86 with newest dotnet version(nightly) HOT 1
- `bflat build --stdlib:zero` tries to build `/obj` files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bflat.