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

BenchmarkRunner.RunUrl throws NRE when Config is not provided #961

Closed
alexanderkyte opened this Issue Nov 16, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@alexanderkyte

alexanderkyte commented Nov 16, 2018

When running on linux and passing it the below URL (any url explodes), this is seen:

https://gist.githubusercontent.com/alexanderkyte/79dbc2bec034ed3f25fb830d4dae7191/raw/14f5f4d3755bebf0b0edcfcdf57bfd13a08d0cbd/gistfile1.txt

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at BenchmarkDotNet.Configs.ConfigExtensions.GetCompositeLogger (BenchmarkDotNet.Configs.IConfig config) [0x00000] in <a8c3193d5a1f40b9acd2f9920b10bbbe>:0 
  at BenchmarkDotNet.Running.BenchmarkRunner.Run (BenchmarkDotNet.Running.BenchmarkRunInfo[] benchmarkRunInfos, BenchmarkDotNet.Configs.IConfig commonSettingsConfig) [0x0004c] in <a8c3193d5a1f40b9acd2f9920b10bbbe>:0 
  at BenchmarkDotNet.Running.BenchmarkRunner.RunUrl (System.String url, BenchmarkDotNet.Configs.IConfig config) [0x00007] in <a8c3193d5a1f40b9acd2f9920b10bbbe>:0 
  at BenchmarkDebianShootout.MainClass.Main (System.String[] args) [0x001df] in <96ce12ab7c154e52b4f8c6a379a13f30>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at BenchmarkDotNet.Configs.ConfigExtensions.GetCompositeLogger (BenchmarkDotNet.Configs.IConfig config) [0x00000] in <a8c3193d5a1f40b9acd2f9920b10bbbe>:0 
  at BenchmarkDotNet.Running.BenchmarkRunner.Run (BenchmarkDotNet.Running.BenchmarkRunInfo[] benchmarkRunInfos, BenchmarkDotNet.Configs.IConfig commonSettingsConfig) [0x0004c] in <a8c3193d5a1f40b9acd2f9920b10bbbe>:0 
  at BenchmarkDotNet.Running.BenchmarkRunner.RunUrl (System.String url, BenchmarkDotNet.Configs.IConfig config) [0x00007] in <a8c3193d5a1f40b9acd2f9920b10bbbe>:0 
  at BenchmarkDebianShootout.MainClass.Main (System.String[] args) [0x001df] in <96ce12ab7c154e52b4f8c6a379a13f30>:0 
make: *** [Makefile:5967: microbench-results/GistBenchmark.perf.data] Error 1

@AndreyAkinshin AndreyAkinshin added this to the v0.11.3 milestone Nov 16, 2018

@adamsitnik adamsitnik changed the title from BenchmarkRunner.RunUrl throws NRE on Linux to BenchmarkRunner.RunUrl throws NRE when Config is not provided Nov 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment