Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I clone, build, and run BenchmarkDotNet.Samples I get an error #533

Closed
dls314 opened this issue Aug 25, 2017 · 5 comments
Closed

When I clone, build, and run BenchmarkDotNet.Samples I get an error #533

dls314 opened this issue Aug 25, 2017 · 5 comments
Milestone

Comments

@dls314
Copy link

dls314 commented Aug 25, 2017

Hi,

I am having trouble getting started on a project of my own, and I decided to clone, build, and run BenchmarkDotNet.Samples.

I get a similar error in the output log for this as I get for the project of my own.

I think the relevant error is this one:

Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'b7741934-05a7-4539-a38e-d696668ef08d.dll'. An attempt was made to load a program with an incorrect format.
ExitCode != 0
No more Benchmark runs will be launched as NO measurements were obtained from the previous run!

The whole log is here:
Algo_BitCount.log.txt

@adamsitnik
Copy link
Member

hi @dls314

Thanks for a well described bug report!

I have spotted the problem. You are running the latest SDK which by default targets 32 bit RyuJit for .NET Core. It's very new thing, we supported only the 64 bit RyuJit so far.

I will download it and see what I can do.

@adamsitnik
Copy link
Member

Ok, I am able to reproduce.

Steps to reproduce:

  1. Install x86 .NET Core Sdk
  2. Install x86 dotnet cli
  3. Change the Path variable, make x86 one the default dotnet

image

@adamsitnik
Copy link
Member

@dls314 Before I get more into the details and have the fix ready you can install x64 SDK and make it the defualt one (move it up in the Path variable)

@dls314
Copy link
Author

dls314 commented Aug 26, 2017

Thanks! I'll do that, I don't need to be using the x86 sdk

@adamsitnik
Copy link
Member

@dls314 I have added the support for x86 RyuJit. As soon as this build finishes you can download package with the fix from our CI feed:

<packageSources>
  <add key="bdn-nightly" value="https://ci.appveyor.com/nuget/benchmarkdotnet" />
</packageSources>

@AndreyAkinshin AndreyAkinshin added this to the v0.10.10 milestone Oct 29, 2017
alinasmirnova pushed a commit to alinasmirnova/BenchmarkDotNet that referenced this issue Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants