You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rarely, using the fetch API from an HTML5 context will result in a ConcurrentModificationException, though the only indication of it is a single line chat message that says 135: java.util.ConcurrentModificationException.
It creates a frame5 that repeatedly makes fetch() calls.
Wait
Eventually see some 135: java.util.ConcurrentModificationException in chat.
Expected Behaviour
The CME should be avoided or handled appropriately, and not be presented to the user via chat.
Screenshots
No response
MapTool Info
MapTool 1.13.1
Desktop
Linux Mint 21.1
Additional Context
I managed to set a breakpoint for the CME and it is being thrown in MTXMLHttpRequest._getResponseHeaders(), specifically the responseHeaders.forEach() call is being complained about in the JavaFX Application Thread.
After some quick digging, I believe we're running into a race between MTXMLHttpRequest and RequestHandler which both modify the response headers but on different threads. We're also ignoring the result of thenApply(), which allows the two thenApply() call to be sequenced in the reverse order that they were called.
The text was updated successfully, but these errors were encountered:
@kwvanderlinde do you want to try this one in your setup with the latest from develop? I ran it to see if I could quickly find the error but it has yet to fail (30+ minutes)
Just found a similar intermittent issue about statusText. Didn't get a copy of the error, but I'll include a small change to handle an edge case there as well.
Describe the Bug
Rarely, using the fetch API from an HTML5 context will result in a ConcurrentModificationException, though the only indication of it is a single line chat message that says
135: java.util.ConcurrentModificationException
.To Reproduce
135: java.util.ConcurrentModificationException
in chat.Expected Behaviour
The CME should be avoided or handled appropriately, and not be presented to the user via chat.
Screenshots
No response
MapTool Info
MapTool 1.13.1
Desktop
Linux Mint 21.1
Additional Context
I managed to set a breakpoint for the CME and it is being thrown in
MTXMLHttpRequest._getResponseHeaders()
, specifically theresponseHeaders.forEach()
call is being complained about in theJavaFX Application Thread
.After some quick digging, I believe we're running into a race between
MTXMLHttpRequest
andRequestHandler
which both modify the response headers but on different threads. We're also ignoring the result ofthenApply()
, which allows the twothenApply()
call to be sequenced in the reverse order that they were called.The text was updated successfully, but these errors were encountered: