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

Async catcher prevents plot clear #3667

Closed
2 tasks done
NotMyFault opened this issue Jun 10, 2022 · 7 comments · Fixed by #3657
Closed
2 tasks done

Async catcher prevents plot clear #3667

NotMyFault opened this issue Jun 10, 2022 · 7 comments · Fixed by #3657
Labels
Approved A project maintainer or developer has reproduced this issue Bug Something isn't working Priority This issue has priority over backburner issues and should be fixed as soon as possible.

Comments

@NotMyFault
Copy link
Collaborator

Server Implementation

Paper

Server Version

1.19

Describe the bug

Async catcher prevents plot clearing on 1.19

To Reproduce

  • Create a server on 1.19 using the newest Paper, WorldEdit and P2 build (specific version information can be obtained from the debugpaste below)
  • Create a plot world
  • Run /plot clear

Expected behaviour

Proceed fine

Screenshots / Videos

No response

Error log (if applicable)

https://gist.github.com/NotMyFault/e78359794d04f904e38a7af8cb3cb768

Plot Debugpaste

https://athion.net/ISPaster/paste/view/355edd9b906d4cc9bba7d87ed6b562e0

PlotSquared Version

6.8.1

Checklist

Anything else?

No response

@NotMyFault NotMyFault added Bug Something isn't working Approved A project maintainer or developer has reproduced this issue labels Jun 10, 2022
@dordsor21
Copy link
Member

Fixed by #3657

@dordsor21 dordsor21 added the Priority This issue has priority over backburner issues and should be fixed as soon as possible. label Jun 10, 2022
@NotMyFault
Copy link
Collaborator Author

Fixed by #3657

Nice to see, though I'm not able to launch that (on 1.19):

[13:53:59 ERROR]: Error occurred while enabling PlotSquared v6.8.2-SNAPSHOT (Is it up to date?)
com.plotsquared.google.CreationException: Unable to create injector, see the following errors:

1) [Guice/MissingImplementation]: No implementation for Boolean annotated with @Assisted("forceSync") was bound.

Did you mean?
    Boolean annotated with @Assisted("") bound at ChunkCoordinatorFactory.create(ChunkCoordinatorFactory.java:56)

Requested by:
1  : BukkitChunkCoordinator.<init>(BukkitChunkCoordinator.java:117)
      \_ for 10th parameter
     at ChunkCoordinatorFactory.create(ChunkCoordinatorFactory.java:56)
     at FactoryProvider2.initialize(FactoryProvider2.java:785)
     at PlotSquared-Bukkit-6.8.2-SNAPSHOT.jar//BukkitModule.configure(BukkitModule.java:129)
      \_ installed by: BukkitModule -> FactoryModuleBuilder$1

Learn more:
  https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION

2) [Guice/MissingImplementation]: No implementation for Boolean annotated with @Assisted("unloadAfter") was bound.

Did you mean?
    Boolean annotated with @Assisted("") bound at ChunkCoordinatorFactory.create(ChunkCoordinatorFactory.java:56)

Requested by:
1  : BukkitChunkCoordinator.<init>(BukkitChunkCoordinator.java:117)
      \_ for 8th parameter
     at ChunkCoordinatorFactory.create(ChunkCoordinatorFactory.java:56)
     at FactoryProvider2.initialize(FactoryProvider2.java:785)
     at PlotSquared-Bukkit-6.8.2-SNAPSHOT.jar//BukkitModule.configure(BukkitModule.java:129)
      \_ installed by: BukkitModule -> FactoryModuleBuilder$1

Learn more:
  https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION

2 errors

======================
Full classname legend:
======================
Assisted:                "com.plotsquared.google.assistedinject.Assisted"
BukkitChunkCoordinator:  "com.plotsquared.bukkit.queue.BukkitChunkCoordinator"
BukkitModule:            "com.plotsquared.bukkit.inject.BukkitModule"
ChunkCoordinatorFactory: "com.plotsquared.core.inject.factory.ChunkCoordinatorFactory"
FactoryModuleBuilder$1:  "com.plotsquared.google.assistedinject.FactoryModuleBuilder$1"
FactoryProvider2:        "com.plotsquared.google.assistedinject.FactoryProvider2"
========================
End of classname legend:
========================

	at com.plotsquared.google.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:576) ~[PlotSquared-Bukkit-6.8.2-SNAPSHOT.jar:?]
	at com.plotsquared.google.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:182) ~[PlotSquared-Bukkit-6.8.2-SNAPSHOT.jar:?]
	at com.plotsquared.google.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:113) ~[PlotSquared-Bukkit-6.8.2-SNAPSHOT.jar:?]
	at com.plotsquared.google.Guice.createInjector(Guice.java:87) ~[PlotSquared-Bukkit-6.8.2-SNAPSHOT.jar:?]
	at com.plotsquared.google.Guice.createInjector(Guice.java:78) ~[PlotSquared-Bukkit-6.8.2-SNAPSHOT.jar:?]
	at com.plotsquared.bukkit.BukkitPlatform.onEnable(BukkitPlatform.java:290) ~[PlotSquared-Bukkit-6.8.2-SNAPSHOT.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:536) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugin(CraftServer.java:554) ~[paper-1.19.jar:git-Paper-"02b5ec4"]
	at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugins(CraftServer.java:468) ~[paper-1.19.jar:git-Paper-"02b5ec4"]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:279) ~[paper-1.19.jar:git-Paper-"02b5ec4"]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1121) ~[paper-1.19.jar:git-Paper-"02b5ec4"]
	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:302) ~[paper-1.19.jar:git-Paper-"02b5ec4"]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]

@dordsor21
Copy link
Member

Are you merging the PR locally and testing or using the PR branch directly?

@NotMyFault
Copy link
Collaborator Author

Are you merging the PR locally and testing or using the PR branch directly?

I checkout out the PR via gh pr checkout 3657.

@dordsor21
Copy link
Member

Either we remove the deprecated create method, or we implement two custom classes specifically to handle instances such as this, based on google/guice#1347

@NotMyFault
Copy link
Collaborator Author

NotMyFault commented Jun 10, 2022

#3657

Should be good to remove it I guess, it's sunset anyway. Maintaining two classes for the time being is a bit overkill I guess.

@NotMyFault
Copy link
Collaborator Author

I can confirm this resolves the issue 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved A project maintainer or developer has reproduced this issue Bug Something isn't working Priority This issue has priority over backburner issues and should be fixed as soon as possible.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants