Closed embeddedt closed 3 years ago
I am also having this problem, only started happening with new Paper 1.16.5, Java 11 OpenJ9
Probably caused by https://github.com/PaperMC/Paper/commit/193f80148c02700d0a1bf0f28727a89478c5dfb5
This event didn't exist before so the illegal access from another thread probably went unnoticed. In order to fix this I think locateNearestStructure
will need to be invoked on the sync thread and the other thread will have to wait for it.
Please give 2.3.1 a shot!
Describe the bug
The server console gets filled with a warning (see below). The thread number changes for each instance of the warning, but the stack trace is the same.
To Reproduce
Run the server version specified below with dynmap-structures installed.
Expected behavior
The plugin should run without printing a warning.
Desktop (please complete the following information):
Additional context
The error only seems to have started occuring with this version of Paper, unless I missed something in server logs. Previously I was using git-Paper-352 (for 1.16.4).
At first glance, the issue may be here. If my understanding of the API is correct, this function needs to be called on the main thread, not another one.