Open GirkovArpa opened 8 months ago
Thanks for the report.
Was this in a long-running server process? Could you describe what the server does and which APIs it uses?
It's a long-running websocket server:
Deno.serve(async req => {
if (req.headers.get('upgrade') != 'websocket') {
return new Response(null, { status: 501 });
}
const { socket, response } = Deno.upgradeWebSocket(req);
It uses this function a lot, inside a computationally-intensive function:
function pause(ms) {
return new Promise(resolve => setTimeout(resolve, ms || 0));
}
But I've been experimenting with it for weeks, and left it running for hours, without any problems. Until today, it randomly crashed with this error, without me updating the code.
What does this error even mean? For example, what is a "ring", and what does that number refer to? It seems too large to be a line number.