Washi1337 / OldRod

An automated KoiVM disassembler and devirtualisation utility
GNU General Public License v3.0
350 stars 80 forks source link

locating constants type error?? #33

Closed vebin closed 4 years ago

vebin commented 4 years ago

23:34:29.644 [Main]: Started devirtualisation. 23:34:29.654 [Main]: Opening target file E:\Rec\huiREC.exe... 23:34:29.816 [Main]: Attempting to autodetect location of the runtime library... 23:34:29.819 [Main]: No references found to a runtime library. 23:34:29.823 [Main]: Runtime is embedded in the target assembly. 23:34:29.827 [Main]: Executing Constants resolution stage... 23:34:29.832 [ConstantsResolver]: Attempting to auto-detect constants... 23:34:29.845 [ConstantsResolver]: Locating constants type... 23:34:29.877 [TUI]: Something went wrong! Try the latest version or report a bug at the repository. 23:34:29.923 [TUI]: OldRod.Pipeline.DevirtualisationException: Could not locate constants type! 在 OldRod.Pipeline.Stages.ConstantsResolution.ConstantsResolutionStage.FindConstantFieldsAndValues(DevirtualisationContext context) 在 OldRod.Pipeline.Stages.ConstantsResolution.ConstantsResolutionStage.AutoDetectConstants(DevirtualisationContext context) 在 OldRod.Pipeline.Stages.ConstantsResolution.ConstantsResolutionStage.Run(DevirtualisationContext context) 在 OldRod.Pipeline.Devirtualiser.RunPipeline(DevirtualisationContext context) 在 OldRod.Pipeline.Devirtualiser.Devirtualise(DevirtualisationOptions options) 在 OldRod.Program.Main(String[] args)

vebin commented 4 years ago

I can provide the file. Can you help me to have a look?

Washi1337 commented 4 years ago

It seems oldrod cannot autodetect some crucial information about the configuration of the applied virtualization in your sample. Couple of reasons this could happen:

I cannot answer this question until you provide me a repro.

You could also try specifying the constants type explicitly using the --constants-type command line argument.

Washi1337 commented 4 years ago

I still have no way to reproduce the error.

I will close this issue if it remains inactive.

Washi1337 commented 4 years ago

Closing for inactivity.