Load test using Shinycannon fails Playback failed: receiveQueue is full (max = 5)

Hi All,

I'm trying to run a load test for a shiny app deployed to RSC.

I recorded the log using shinyloadtest, and trying to run the simulation using shinyconnon.

Unfortunately this fails:

shinycannon recording.log https://<link> --workers 1 --loaded-duration-minutes 2 --output-dir run2
2021-04-21 12:06:38.189 INFO [thread00] - Detected target application type: RStudio Server Connect
2021-04-21 12:06:38.194 INFO [thread00] - Waiting for warmup to complete
2021-04-21 12:06:38.193 INFO [progress] - Running: 0, Failed: 0, Done: 0
2021-04-21 12:06:38.194 INFO [thread01] - Warming up
2021-04-21 12:06:38.196 INFO [thread00] - Maintaining for 2 minutes (120000 ms)
2021-04-21 12:06:43.196 INFO [progress] - Running: 1, Failed: 0, Done: 0
2021-04-21 12:06:48.196 INFO [progress] - Running: 1, Failed: 0, Done: 0
2021-04-21 12:06:53.196 INFO [progress] - Running: 1, Failed: 0, Done: 0
2021-04-21 12:06:58.197 INFO [progress] - Running: 1, Failed: 0, Done: 0
2021-04-21 12:07:01.764 ERROR [thread01] - Playback failed: receiveQueue is full (max = 5)
java.lang.Exception: receiveQueue is full (max = 5)
	at com.rstudio.shinycannon.Event$WS_OPEN$handle$2$$special$$inlined$also$lambda$1.onTextMessage(Events.kt:280)2021-04-21 12:07:01.764 INFO [thread01] - Running again

I'm running this on Ubuntu 20.04.

I tried to google the error but no luck, so maybe someone here could help me.
Thank you.

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.

Hi @olga_mie ,

I know this is 6 months later, but did your app by chance have many custom messages sent to the browser from the Shiny server?

(It is hard to debug an error like this without a reprex and I found one producing this error and had its --debug --log-level debug logs.

Thank you,

Hopefully fixed in PR: Bump `receiveQueue` limit from 5 to 50 by schloerke · Pull Request #63 · rstudio/shinycannon · GitHub

Thanks Barret! I stumbled upon this thread after receiving this error message, and your fix made it for me.

I did a refactoring of the app and didn't have the issue before. My intuition is that it comes from having a lot of call with the shinyjs package (especially the shinyjs::html function).