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

Exception on unpatching - only first method gets unpatched #31

Open
dymanoid opened this issue Jul 22, 2018 · 3 comments
Open

Exception on unpatching - only first method gets unpatched #31

dymanoid opened this issue Jul 22, 2018 · 3 comments

Comments

@dymanoid
Copy link

Exception on unpatching:

[Rush Hour II] out of sync
mscorlib
  at System.Collections.Generic.Dictionary`2+Enumerator[System.Reflection.MethodBase,System.Byte[]].VerifyState ()
  at System.Collections.Generic.Dictionary`2+Enumerator[System.Reflection.MethodBase,System.Byte[]].MoveNext ()
  at System.Collections.Generic.Dictionary`2+KeyCollection+Enumerator[System.Reflection.MethodBase,System.Byte[]].MoveNext ()
  at RushHour2.Patches.PatchManager.UnPatchAll ()

The InvalidOperationException with an out of sync message usually means that you're trying to modify an IEnumerable while iterating over it using its enumerator (e.g. in foreach).

@benzoll37
Copy link

benzoll37 commented Jul 23, 2018

After update July 22.-
I just saw it, the same thing happens to me in my output_log.

In menu game to be, playing city: options/mod disappears:
https://steamcommunity.com/sharedfiles/filedetails/?id=1448255577

@benzoll37
Copy link

benzoll37 commented Jul 23, 2018

output_log

`[Rush Hour II - Development] Rush Hour II - Development has been disabled.

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

[Rush Hour II - Development] Removing patching for RushHour2.Patches...

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

[Rush Hour II - Development] Couldn't unpatch everything!

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

[Rush Hour II - Development] out of sync
mscorlib
at System.Collections.Generic.Dictionary2+Enumerator[System.Reflection.MethodBase,System.Byte[]].VerifyState () [0x00000] in <filename unknown>:0 at System.Collections.Generic.Dictionary2+Enumerator[System.Reflection.MethodBase,System.Byte[]].MoveNext () [0x00000] in :0
at System.Collections.Generic.Dictionary`2+KeyCollection+Enumerator[System.Reflection.MethodBase,System.Byte[]].MoveNext () [0x00000] in :0
at RushHour2.Patches.PatchManager.UnPatchAll () [0x00000] in :0

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

[Rush Hour II - Development] Rush Hour II - Development has finished disabling.`

@benzoll37
Copy link

Fixed.

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

2 participants