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

System.MissingFieldException #279

Closed
alexmacphail opened this issue Dec 12, 2019 · 2 comments
Closed

System.MissingFieldException #279

alexmacphail opened this issue Dec 12, 2019 · 2 comments
Labels

Comments

@alexmacphail
Copy link

Hello!

I'm attempting to setup the audio-analysis package and am receiving the following error after testing the environment path. Any help or advice is greatly appreciated!

Cheers,

bash-3.2$ sudo nano /etc/paths
bash-3.2$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
bash-3.2$ mono AnalysisPrograms.exe CheckEnvironment
QUT Ecoacoustics Analysis Programs - version 19.10.0.5 (RELEASE build, 2019-10-20T14:02:06.8870742Z)
Git branch-version: master-e96fb1e5a061c2672be6c4369ee5fbdde2908140, DirtyBuild:False, CI:902
Copyright 2019 QUT

Unhandled Exception:
System.MissingFieldException: No match for field with name s_initState and flags NonPublic | Static on type System.Configuration.ConfigurationManager.
at Fasterflect.Emitter.LookupUtils.GetMember (Fasterflect.Emitter.CallInfo callInfo) [0x000b8] in :0
at Fasterflect.Emitter.MemberSetEmitter.CreateDelegate () [0x00015] in :0
at Fasterflect.Emitter.BaseEmitter.GetDelegate () [0x00036] in :0
at Fasterflect.FieldExtensions.DelegateForSetFieldValue (System.Type type, System.String name, Fasterflect.Flags bindingFlags) [0x00014] in :0
at Fasterflect.FieldExtensions.SetFieldValue (System.Object obj, System.String name, System.Object value, Fasterflect.Flags bindingFlags) [0x00006] in :0
at AnalysisPrograms.MainEntry.g__ResetConfigMechanism|40_0 (System.AppDomainSetup setup) [0x0001f] in :0
at AnalysisPrograms.MainEntry.CheckAndUpdateApplicationConfig () [0x000b8] in :0
at AnalysisPrograms.MainEntry.PrepareForErrors () [0x0000a] in :0
at AnalysisPrograms.MainEntry.Main (System.String[] args) [0x00058] in :0
at AnalysisPrograms.MainEntry.

(System.String[] args) [0x0000c] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingFieldException: No match for field with name s_initState and flags NonPublic | Static on type System.Configuration.ConfigurationManager.
at Fasterflect.Emitter.LookupUtils.GetMember (Fasterflect.Emitter.CallInfo callInfo) [0x000b8] in :0
at Fasterflect.Emitter.MemberSetEmitter.CreateDelegate () [0x00015] in :0
at Fasterflect.Emitter.BaseEmitter.GetDelegate () [0x00036] in :0
at Fasterflect.FieldExtensions.DelegateForSetFieldValue (System.Type type, System.String name, Fasterflect.Flags bindingFlags) [0x00014] in :0
at Fasterflect.FieldExtensions.SetFieldValue (System.Object obj, System.String name, System.Object value, Fasterflect.Flags bindingFlags) [0x00006] in :0
at AnalysisPrograms.MainEntry.g__ResetConfigMechanism|40_0 (System.AppDomainSetup setup) [0x0001f] in :0
at AnalysisPrograms.MainEntry.CheckAndUpdateApplicationConfig () [0x000b8] in :0
at AnalysisPrograms.MainEntry.PrepareForErrors () [0x0000a] in :0
at AnalysisPrograms.MainEntry.Main (System.String[] args) [0x00058] in :0
at AnalysisPrograms.MainEntry. (System.String[] args) [0x0000c] in :0

@atruskie atruskie added the bug label Dec 13, 2019
@atruskie
Copy link
Member

Hi @agmacpha,

This looks like a regression introduced by #241. Sorry about that...

image

Can you please include the other relevant diagnostic information from the bug issue template?

In particular:

  • OS (exact version)
  • and Mono version

@peichins
Copy link
Member

I have reproduced this with

  • MacOS 10.12.6
  • mono 6.4.0.198
  • AnalysisPrograms 19.10.0.5

The following error output seems identical to that above:

Philips-Mac-Pro:19.10.0.5 eichinsp$ mono AnalysisPrograms.exe -v
QUT Ecoacoustics Analysis Programs - version 19.10.0.5 (RELEASE build, 2019-10-20T14:02:06.8870742Z)
Git branch-version: master-e96fb1e5a061c2672be6c4369ee5fbdde2908140, DirtyBuild:False, CI:902
Copyright 2020 QUT

Unhandled Exception:
System.MissingFieldException: No match for field with name s_initState and flags NonPublic | Static on type System.Configuration.ConfigurationManager.
  at Fasterflect.Emitter.LookupUtils.GetMember (Fasterflect.Emitter.CallInfo callInfo) [0x000b8] in <b5b7c187584f4067994f1e7318b61d8a>:0
  at Fasterflect.Emitter.MemberSetEmitter.CreateDelegate () [0x00015] in <b5b7c187584f4067994f1e7318b61d8a>:0
  at Fasterflect.Emitter.BaseEmitter.GetDelegate () [0x00036] in <b5b7c187584f4067994f1e7318b61d8a>:0
  at Fasterflect.FieldExtensions.DelegateForSetFieldValue (System.Type type, System.String name, Fasterflect.Flags bindingFlags) [0x00014] in <b5b7c187584f4067994f1e7318b61d8a>:0
  at Fasterflect.FieldExtensions.SetFieldValue (System.Object obj, System.String name, System.Object value, Fasterflect.Flags bindingFlags) [0x00006] in <b5b7c187584f4067994f1e7318b61d8a>:0
  at AnalysisPrograms.MainEntry.<CheckAndUpdateApplicationConfig>g__ResetConfigMechanism|40_0 (System.AppDomainSetup setup) [0x0001f] in <c561291360104892838d1325f949a210>:0
  at AnalysisPrograms.MainEntry.CheckAndUpdateApplicationConfig () [0x000b8] in <c561291360104892838d1325f949a210>:0
  at AnalysisPrograms.MainEntry.PrepareForErrors () [0x0000a] in <c561291360104892838d1325f949a210>:0
  at AnalysisPrograms.MainEntry.Main (System.String[] args) [0x00058] in <c561291360104892838d1325f949a210>:0
  at AnalysisPrograms.MainEntry.<Main> (System.String[] args) [0x0000c] in <c561291360104892838d1325f949a210>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingFieldException: No match for field with name s_initState and flags NonPublic | Static on type System.Configuration.ConfigurationManager.
  at Fasterflect.Emitter.LookupUtils.GetMember (Fasterflect.Emitter.CallInfo callInfo) [0x000b8] in <b5b7c187584f4067994f1e7318b61d8a>:0
  at Fasterflect.Emitter.MemberSetEmitter.CreateDelegate () [0x00015] in <b5b7c187584f4067994f1e7318b61d8a>:0
  at Fasterflect.Emitter.BaseEmitter.GetDelegate () [0x00036] in <b5b7c187584f4067994f1e7318b61d8a>:0
  at Fasterflect.FieldExtensions.DelegateForSetFieldValue (System.Type type, System.String name, Fasterflect.Flags bindingFlags) [0x00014] in <b5b7c187584f4067994f1e7318b61d8a>:0
  at Fasterflect.FieldExtensions.SetFieldValue (System.Object obj, System.String name, System.Object value, Fasterflect.Flags bindingFlags) [0x00006] in <b5b7c187584f4067994f1e7318b61d8a>:0
  at AnalysisPrograms.MainEntry.<CheckAndUpdateApplicationConfig>g__ResetConfigMechanism|40_0 (System.AppDomainSetup setup) [0x0001f] in <c561291360104892838d1325f949a210>:0
  at AnalysisPrograms.MainEntry.CheckAndUpdateApplicationConfig () [0x000b8] in <c561291360104892838d1325f949a210>:0
  at AnalysisPrograms.MainEntry.PrepareForErrors () [0x0000a] in <c561291360104892838d1325f949a210>:0
  at AnalysisPrograms.MainEntry.Main (System.String[] args) [0x00058] in <c561291360104892838d1325f949a210>:0
  at AnalysisPrograms.MainEntry.<Main> (System.String[] args) [0x0000c] in <c561291360104892838d1325f949a210>:0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants