AMP
AMP copied to clipboard
Concurrent "send console input" schedules can break
Bug Report
System Information
- OS: Ubuntu Linux (20.04 LTS)
- AMP: v2.3.2, built 31/01/2022 (Mainline)
I confirm:
- [x] that I have searched for an existing bug report for this issue.
- [x] that I am using the latest available version of AMP.
- [x] that my operating system is up-to-date.
Symptoms
- What are you trying to do? Setting multiple schedules that may trigger in the same minute, each sending their own command to the input of the Minecraft server.
- What are you expecting to happen? Commands get run sequentially, in any order.
- What is actually happening? ('Nothing' is not an acceptable answer!)
The commands sometimes work independently and sometimes get concatenated.
Reproduction
-
Set up a Minecraft server (tried Fabric and Paper 1.18.1 so far)
-
Create 2 schedules, each triggering every minute
- Set a command for each, for example
say test1
andsay test2
- Set a command for each, for example
-
Put a bit of load on ther server. It doesn't have to be laggy, just joining the server does the trick it seems.
-
Wait. (In testing, i'm getting a wrongly formatted command every 3-4 minutes, YMMV)
Interesting. Looks like a locking issue, should be simple enough to fix.
Still present in the latest version