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
Create a notebook with two cells (two cells are required):
varfuncCount=0LdeffastLoop() = {
funcCount +=1
}
and
for(i <-Iterator.range(0,1000)) {
fastLoop()
}
Evaluate the first cell once and then the second cell several times. It will hang after a few tries (or just make the number bigger).
I'm not exactly sure what is happening but it appears that the kernel is generating lots of messages when the variable is modified and something is breaking under the hood to do with queues. I've seen the messages of the form
but increasing ServerApp.iopub_msg_rate_limit didn't solve the problem. Either way, this should not be generating any messages or it will result in a significant performance problem (which is how I came across it).
If I replace the top-level variable with a class and modify a member the problem goes away.
If I put both statements in the same cell the problem goes away.
Create a notebook with two cells (two cells are required):
and
Evaluate the first cell once and then the second cell several times. It will hang after a few tries (or just make the number bigger).
I'm not exactly sure what is happening but it appears that the kernel is generating lots of messages when the variable is modified and something is breaking under the hood to do with queues. I've seen the messages of the form
but increasing
ServerApp.iopub_msg_rate_limit
didn't solve the problem. Either way, this should not be generating any messages or it will result in a significant performance problem (which is how I came across it).If I replace the top-level variable with a class and modify a member the problem goes away.
If I put both statements in the same cell the problem goes away.
Maybe related to #549 and #768
Tested under:
Almond 0.13.1
Ammonite 2.5.4-13-1ebd00a6
Scala 2.13.8
Java 8 & 17
The text was updated successfully, but these errors were encountered: