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

"SymbolsNotMatchingException" occurs when performing Obfuscator after HotFix Injection. #1122

Open
curian2024 opened this issue Feb 28, 2024 · 0 comments

Comments

@curian2024
Copy link

When using Hotfix with Unity Obfuscator, HotFix Injection is performed first using the PostProcessScene Attribute. If Obfuscator is performed later, the dll changed by HotFix does not match the existing pdb, resulting in "SymbolsNotMatchingException: Symbols were found" during the obfuscator process. But the error "but are not matching the assembly" appears. Is it possible to update the pdb accordingly after Hotfix Inject? Below is the error stack.

SymbolsNotMatchingException: Symbols were found but are not matching the assembly Mono.Beebyte.Cecil.ModuleDefinition.ReadSymbols (Mono.Beebyte.Cecil.Cil.ISymbolReader reader, System.Boolean throwIfSymbolsAreNotMaching) (at <918b381c85304a4eb57afd1af70f38ba>:0) Mono.Beebyte.Cecil.ModuleReader.ReadSymbols (Mono.Beebyte.Cecil.ModuleDefinition module, Mono.Beebyte.Cecil.ReaderParameters parameters) (at <918b381c85304a4eb57afd1af70f38ba>:0) Mono.Beebyte.Cecil.ModuleReader.CreateModule (Mono.Beebyte.Cecil.PE.Image image, Mono.Beebyte.Cecil.ReaderParameters parameters) (at <918b381c85304a4eb57afd1af70f38ba>:0) Mono.Beebyte.Cecil.ModuleDefinition.ReadModule (Mono.Beebyte.Disposable1[T] stream, System.String fileName, Mono.Beebyte.Cecil.ReaderParameters parameters) (at <918b381c85304a4eb57afd1af70f38ba>:0)
Mono.Beebyte.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Beebyte.Cecil.ReaderParameters parameters) (at <918b381c85304a4eb57afd1af70f38ba>:0)
Mono.Beebyte.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName, Mono.Beebyte.Cecil.ReaderParameters parameters) (at <918b381c85304a4eb57afd1af70f38ba>:0)
10100111101011010100010101100100010011001111110.11011001011100110100101000100010011000010110100 (System.Collections.Generic.ICollection1[T] 00000110101111100101100010011011110111100001011, System.Collections.Generic.ICollection1[T] 01110101001001111100111110000010100101011010000) (at :0)
10100111011000010111010000011000011010111011011.11011001011100110100101000100010011000010110100 (System.Collections.Generic.ICollection1[T] 00000110101111100101100010011011110111100001011, System.Collections.Generic.ICollection1[T] 01110101001001111100111110000010100101011010000) (at :0)
10100111011000010111010000011000011010111011011.11011001011100110100101000100010011000010110100 (System.Collections.Generic.ICollection1[T] 00000110101111100101100010011011110111100001011, System.Collections.Generic.ICollection1[T] 01110101001001111100111110000010100101011010000, UnityEditor.BuildTarget 00010001111101001011100010101011010000000111000) (at :0)
Beebyte.Obfuscator.Obfuscator.Obfuscate (System.Collections.Generic.ICollection1[T] dlls, System.Collections.Generic.ICollection1[T] compiledDlls, Beebyte.Obfuscator.Options options, UnityEditor.BuildTarget buildTarget) (at :0)
Beebyte.Obfuscator.Project.ObfuscateWhileLocked () (at Assets/Editor/Beebyte/Obfuscator/Project.cs:118)
Beebyte.Obfuscator.Project.ObfuscateIfNeeded () (at Assets/Editor/Beebyte/Obfuscator/Project.cs:61)
Rethrow as OperationCanceledException: Obfuscation failed
Beebyte.Obfuscator.Project.ObfuscateIfNeeded () (at Assets/Editor/Beebyte/Obfuscator/Project.cs:67)
Beebyte.Obfuscator.PipelineHook.Obfuscate () (at Assets/Editor/Beebyte/Obfuscator/PipelineHook.cs:116)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <7e05db41a20b45108859fa03b97088d4>:0)
UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions)
NTIDLE.Build:BuildAddressablesAndPlayer(String, String, BuildTarget, String[], BuildOptions) (at Assets/Editor/Build.cs:743)
NTIDLE.Build:BuildAddressablesAndPlayer_Local() (at Assets/Editor/Build.cs:395)`

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