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

EventSubclassTransformer fails to locate classes if a ThreadPool is used during preLaunch #644

Closed
melontini opened this issue Dec 24, 2023 · 4 comments · Fixed by #692
Closed
Assignees
Labels
bug Something isn't working fixed in dev Fixed in dev. Awaiting a new release.

Comments

@melontini
Copy link
Contributor

Describe the bug

Same as title.

Steps to reproduce

  1. Launch the game with Andromeda 1.4.1
  2. The log bleeds
  3. Game launches as normal, functionality unaffected.

Logs

N/A

Additional context

This doesn't affect functionality in any way, but this does cause massive log spam.

For some reason EST tries to lookup classes on the ApplicationClassloader instead of the GAME TransformingClassloader, even though it should be set as the context CL by that point.

@melontini melontini added the bug Something isn't working label Dec 24, 2023
@melontini melontini changed the title EventSubclassTransformer fails to locate classes if a ForkJoinPool is used during preLaunch EventSubclassTransformer fails to locate classes if a ThreadPool is used during preLaunch Dec 25, 2023
@melontini
Copy link
Contributor Author

I suppose this could be closed when connector moves to Neo, since EST is no more (🦀)

@Su5eD Su5eD moved this from 🆕 New to 🔖 Confirmed in Connector Triage Jan 11, 2024
@Su5eD
Copy link
Member

Su5eD commented Jan 11, 2024

From what I can see in the mod code, this seems to have been caused by Andromeda creating its own ForkJoinPool with the default thread factory rather than the one configured by Connector, and so the context class loader was never set correctly. However, it seems it has since been updated to use the common pool instead. Is this still an issue?

@melontini
Copy link
Contributor Author

melontini commented Jan 12, 2024

Just tested it. Yes, it still tries to look up classes on AppCl.

@Su5eD
Copy link
Member

Su5eD commented Jan 12, 2024

I think I see what's going on, Java can't initialize the factory because it's loaded by a higher classloader

@Su5eD Su5eD self-assigned this Jan 12, 2024
@Su5eD Su5eD moved this from 🔖 Confirmed to 🏗 In progress in Connector Triage Jan 12, 2024
@Su5eD Su5eD moved this from 🏗 In progress to 👀 In review in Connector Triage Jan 12, 2024
@Su5eD Su5eD linked a pull request Jan 12, 2024 that will close this issue
@Matyrobbrt Matyrobbrt added the fixed in dev Fixed in dev. Awaiting a new release. label Jan 20, 2024
@Su5eD Su5eD closed this as completed in f669214 Jan 21, 2024
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Connector Triage Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in dev Fixed in dev. Awaiting a new release.
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants