mojira.dev
MC-271577

Regional Compliances' Timer Error after Resource Pack Troubleshooting.

Story

Hello!

I decided to test Regional Compliances and add My System Region (Russia) using ISO_3166-1_alpha-3 Code in Region Param with same Messages just to test this Feature and may be use it for self-caution about Minecraft Addiction.
I found that Timer can be cancelled after using Resource Pack with invalid Edit of the regional_compliancies.json File and even after troubleshooting the Resource Pack, the Resource Pack can't be applied because of "Already cancelled Timer"(Caught Error is listed below).

Error Messages:

Caught error loading resourcepacks, removing all selected resourcepacks
java.util.concurrent.CompletionException: java.lang.IllegalStateException: Timer already cancelled.
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at aua.a(SourceFile:69)
	at bot.d(SourceFile:162)
	at box.d(SourceFile:23)
	at bot.A(SourceFile:136)
	at bot.bA(SourceFile:121)
	at ffn.c(SourceFile:1239)
	at ffn.f(SourceFile:880)
	at net.minecraft.client.main.Main.main(SourceFile:265)
Caused by: java.lang.IllegalStateException: Timer already cancelled.
	at java.base/java.util.Timer.sched(Timer.java:409)
	at java.base/java.util.Timer.scheduleAtFixedRate(Timer.java:340)
	at fft.a(SourceFile:95)
	at fft.a(SourceFile:30)
	at atz.a(SourceFile:13)
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718)
	... 9 more

How it was produced

The invalid editing was changing the Message or Title parametres to

[{"text":"<text>"}]

and troubleshooting in this case is returning to Standard "<text>".

Expected Behavior:

Resource Pack should be appliable after Troubleshooting.

Observed Behavior:

Resource Pack can't be applied.

How to reproduce:

0. Apply

[media]

,
1. Wait for first Appearing of Time Toast,
2. Unapply

[media]

and apply

[media]

,
3. Wait for 1 minute (or better to wait 1-2 minute(s)),
4. Unapply

[media]

and reapply

[media]

,
5. Resource Pack can't be applied because of some Error (all Information is above and in the pinned Comment(s))

Attachments

Comments 4

As I decided to find some Information in Source Code... I found that net/minecraft/client/PeriodicNotificationManager.java contains Information that Message and Title Params should be in String Type.

And also the Timer.java File that in same Directory with mentioned recently by Me in this Message File can be useful for Time-related things...

May be somehow this Information will help to find something that corresponds to My Bug.

Please update the description to include steps to reproduce this issue, as well as expected VS observed results.

Please also attach any needed commands, datapacks, resourcepacks, screenshots, videos or worlds needed to help reproduce this issue.

Can confirm, I also was unable to apply the resource pack.

Thank you for your report!
After consideration, the issue is being closed as Won't Fix.

Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Cybereggs1337

(Unassigned)

Community Consensus

(Unassigned)

Regionalcompliances, Resourcepacks, regional-compliances, regional_compliances, regionalcompliances, resource-pack, resource-packs, resource_pack, resourcepack

1.20.6, 24w18a, 24w21b, 1.21 Pre-Release 4

Retrieved