AMP icon indicating copy to clipboard operation
AMP copied to clipboard

Concurrent "send console input" schedules can break

Open UncleThaodan opened this issue 3 years ago • 1 comments

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. image

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 and say test2 image
  • 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)

UncleThaodan avatar Feb 09 '22 17:02 UncleThaodan

Interesting. Looks like a locking issue, should be simple enough to fix.

PhonicUK avatar Feb 12 '22 13:02 PhonicUK

Still present in the latest version

creaper3 avatar Mar 29 '24 12:03 creaper3