When using the SAM extension (v0.8.0) in QuPath 0.6.0 to track n annotations (SAM0, SAM1,..., SAMn) over >500 frames in XYT mode with sam2_hiera_tiny.pt (at least), I encounter a java.net.SocketTimeoutException: Read timed out error after ~300 frames in the GUI and similar failures in a custom scripts. The server SAM API (v0.6.1) responds correctly for small batches (<100 frames), but large sequences fail consistently.
GUI error: "Task failed with exception java.net.SocketTimeoutException: Read timed out" and no masks generated for failing batches.
QuPath log:
Task failed: org.elephant.sam.tasks.SAMSequenceTask@283548e4[Completed exceptionally: java.net.SocketTimeoutException: Read timed out]
java.net.SocketTimeoutException: Read timed out
at java.base/sun.nio.ch.NioSocketImpl.timedRead(Unknown Source)
at java.base/sun.nio.ch.NioSocketImpl.implRead(Unknown Source)
...
at org.elephant.sam.http.HttpUtils.postRequest(HttpUtils.java:218)
at org.elephant.sam.tasks.SAMSequenceTask.detectObjects(SAMSequenceTask.java:197)
...