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 crashes #636

Merged
merged 6 commits into from
Jul 6, 2024
Merged

Fix crashes #636

merged 6 commits into from
Jul 6, 2024

Conversation

colin273
Copy link
Member

@colin273 colin273 commented Jul 6, 2024

Discord changed their webpack configuration a little bit, so that most of the common modules we need are now declared inline rather than pushed to the global array of chunks. This update fixes our injection to account for this change. It also includes fixes for the plaintext patches in our coremods, so that if initialization fails, missing coremods in the replugged.coremods.coremods namespace will not cause a React crash.

In the process, I've also swapped out the wait/signal start mechanism for a simpler means of intercepting the creation of Webpack chunks/modules. It adds needless complexity and is likely complicit in our perennial crashing issues. So far, with this mechanism removed, Replugged loads reliably on my machine. More testing is needed, especially on Windows and Linux, to confirm these stability improvements.

@FedeIlLeone FedeIlLeone added bug Something isn't working semver: patch Requires a patch semver version bump labels Jul 6, 2024
Copy link
Member

@FedeIlLeone FedeIlLeone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yofukashino
Copy link
Contributor

Leaving this comment as a reminder for the issue: Plaintext patch for all plugins not being loaded

@colin273 colin273 merged commit 92a4fd4 into main Jul 6, 2024
14 checks passed
@colin273 colin273 deleted the fix-crashing branch July 6, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working semver: patch Requires a patch semver version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants