Skip to content

Error while trying to solve #93

Open
@kartiky

Description

@kartiky

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions