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

fix: clear method lookup maps #198

Conversation

LisoUseInAIKyrios
Copy link
Contributor

Since the patcher stays in memory, patching in Manager multiple times (without restarting the app) always fails on the second patch. The lookup maps to be cleared after patching finishes.

This fix should be pushed out now, and Manager needs another dependency update and release.

manager multiple patch error

@oSumAtrIX oSumAtrIX changed the base branch from main to dev July 1, 2023 00:35
@oSumAtrIX oSumAtrIX changed the title fix: manager error if patching multiple times in a row fix: clear method lookup maps Jul 1, 2023
@oSumAtrIX oSumAtrIX merged commit 9d81baf into ReVanced:dev Jul 1, 2023
1 of 2 checks passed
@LisoUseInAIKyrios LisoUseInAIKyrios deleted the manager_patch_multiple_time_failure_fix branch July 1, 2023 00:36
revanced-bot pushed a commit that referenced this pull request Jul 1, 2023
## [11.0.4-dev.1](v11.0.3...v11.0.4-dev.1) (2023-07-01)

### Bug Fixes

* clear method lookup maps ([#198](#198)) ([9d81baf](9d81baf))
@oSumAtrIX
Copy link
Member

A proper deconstructor does not exist yet for ReVanced Patcher. Currently, ReVanced Patcher is "use-once". After you supply patches and patches, the patches can not be reused to patch again because they keep their state. The entire class loader used to load the classes has to be deleted, and a new one has to be used. A similar state issue exists with ReVanced Patcher.

revanced-bot pushed a commit that referenced this pull request Jul 1, 2023
## [11.0.4](v11.0.3...v11.0.4) (2023-07-01)

### Bug Fixes

* clear method lookup maps ([#198](#198)) ([9d81baf](9d81baf))
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

Successfully merging this pull request may close these issues.

None yet

2 participants