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

Sponge: Error when running profiler commands #481

Open
SamB440 opened this issue Jan 11, 2025 · 0 comments
Open

Sponge: Error when running profiler commands #481

SamB440 opened this issue Jan 11, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@SamB440
Copy link

SamB440 commented Jan 11, 2025

Description

Running the spark profiler commands results in an error.

Reproduction Steps

Run /spark profiler start or /spark profiler stop

Expected Behaviour

Not to error

Platform Information

  • Minecraft Version: 1.21.1
  • Platform Type: Server
  • Platform Brand: Sponge
  • Platform Version: 12.0.0

Spark Version

1.10.122

Logs and Configs

[21:56:27] [Sponge-AsyncScheduler-1651/ERROR] [spark]: Exception occurred whilst executing a spark command
java.lang.NullPointerException: Cannot invoke "java.util.UUID.hashCode()" because the return value of "me.lucko.spark.sponge.SpongeCommandSender.getUniqueId()" is null
        at TRANSFORMER/[email protected]/me.lucko.spark.sponge.SpongeCommandSender.hashCode(SpongeCommandSender.java:95) ~[?:?]
        at java.base/java.util.HashMap.hash(HashMap.java:338) ~[?:?]
        at java.base/java.util.HashMap.put(HashMap.java:618) ~[?:?]
        at java.base/java.util.HashSet.add(HashSet.java:229) ~[?:?]
        at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) ~[?:?]
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:194) ~[?:?]
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:212) ~[?:?]
        at java.base/java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:411) ~[?:?]
        at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735) ~[?:?]
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:556) ~[?:?]
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:546) ~[?:?]
        at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265) ~[?:?]
        at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:702) ~[?:?]
        at TRANSFORMER/[email protected]/me.lucko.spark.common.command.CommandResponseHandler.allSenders(CommandResponseHandler.java:77) ~[?:?]
        at TRANSFORMER/[email protected]/me.lucko.spark.common.command.CommandResponseHandler.broadcast(CommandResponseHandler.java:101) ~[?:?]
        at TRANSFORMER/[email protected]/me.lucko.spark.common.command.CommandResponseHandler.broadcastPrefixed(CommandResponseHandler.java:121) ~[?:?]
        at TRANSFORMER/[email protected]/me.lucko.spark.common.command.modules.SamplerModule.profilerStop(SamplerModule.java:402) ~[?:?]
        at TRANSFORMER/[email protected]/me.lucko.spark.common.command.modules.SamplerModule.profiler(SamplerModule.java:141) ~[?:?]
        at TRANSFORMER/[email protected]/me.lucko.spark.common.SparkPlatform.executeCommand0(SparkPlatform.java:472) ~[?:?]
        at TRANSFORMER/[email protected]/me.lucko.spark.common.SparkPlatform.lambda$executeCommand$3(SparkPlatform.java:370) ~[?:?]
        at TRANSFORMER/[email protected]/org.spongepowered.api.scheduler.Task$Builder.lambda$execute$0(Task.java:85) ~[?:?]
        at TRANSFORMER/[email protected]/org.spongepowered.common.scheduler.SpongeScheduler.lambda$startTask$1(SpongeScheduler.java:274) ~[?:?]
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) ~[?:?]
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1570) [?:?]

Extra Details

No response

@SamB440 SamB440 added the bug Something isn't working label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant