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

Error while trying to solve #93

Open
kartiky opened this issue Sep 11, 2023 · 0 comments
Open

Error while trying to solve #93

kartiky opened this issue Sep 11, 2023 · 0 comments

Comments

@kartiky
Copy link

kartiky commented Sep 11, 2023

Hi, I am facing the following error at the Start solving GTSP stage when using both the master branch as well as Release 2.1.0.

Running ROS Noetic

[ INFO] [1694411265.128227484]: Start solving GTSP

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'GkMa.Helper' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Random' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: System.Native assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
  at Interop+Sys..cctor () [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
   --- End of inner exception stack trace ---
  at Interop.GetRandomBytes (System.Byte* buffer, System.Int32 length) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Random.GenerateGlobalSeed () [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Random..cctor () [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
   --- End of inner exception stack trace ---
  at GkMa.Helper..cctor () [0x00000] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
   --- End of inner exception stack trace ---
  at GkMa.OurHeuristic.Types.Permutation.GenerateRandom (System.Int32 n) [0x0000e] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
  at GkMa.OurHeuristic.Operators.RandomGenerate.GenerateKeyPure () [0x0000b] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
  at GkMa.OurHeuristic.Operators.Generate.GenerateKey () [0x00000] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
  at GkMa.OurHeuristic.Types.Tour..ctor (GkMa.OurHeuristic.Operators.Generate generate) [0x00020] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
  at GkMa.OurHeuristic.Algorithm.FirstGeneration (GkMa.OurHeuristic.Types.Generation cur) [0x00013] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
  at GkMa.OurHeuristic.GeneticAlgorithm.Run () [0x0000d] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
  at GkMa.OurSolver.Solve () [0x00027] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'GkMa.Helper' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Random' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: System.Native assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
  at Interop+Sys..cctor () [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
   --- End of inner exception stack trace ---
  at Interop.GetRandomBytes (System.Byte* buffer, System.Int32 length) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Random.GenerateGlobalSeed () [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Random..cctor () [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
   --- End of inner exception stack trace ---
  at GkMa.Helper..cctor () [0x00000] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
   --- End of inner exception stack trace ---
  at GkMa.OurHeuristic.Types.Permutation.GenerateRandom (System.Int32 n) [0x0000e] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
  at GkMa.OurHeuristic.Operators.RandomGenerate.GenerateKeyPure () [0x0000b] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
  at GkMa.OurHeuristic.Operators.Generate.GenerateKey () [0x00000] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
  at GkMa.OurHeuristic.Types.Tour..ctor (GkMa.OurHeuristic.Operators.Generate generate) [0x00020] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
  at GkMa.OurHeuristic.Algorithm.FirstGeneration (GkMa.OurHeuristic.Types.Generation cur) [0x00013] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
  at GkMa.OurHeuristic.GeneticAlgorithm.Run () [0x0000d] in <f7cacbf5176e46a2b3004d0aab038a40>:0 
  at GkMa.OurSolver.Solve () [0x00027] in <f7cacbf5176e46a2b3004d0aab038a40>:0 

Is there something I am missing here? I have checked to make sure that mono and all the dependencies have been installed correctly.

Thanks in advance!

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

1 participant