Weird error in the output

I’am getting this weird error in the output, and I don’t understand what’s causing it:


1 Like

thats no error, thats info about where the error is occurring. I’m assuming this is in game and a published place so to view errors occurring during run time you can check the game page in dev hub.

1 Like

It was happening in studio, however the game is published, also it doesn’t give information about what the error is about/what’s causing it. The line that’s it happening is just calling itself self:setup() is what it’s’ calling.

1 Like

Try see if you get the error in the console/output if you try playing it in Roblox but not in studio

1 Like

It doens’t always happen, I tried again in studio and it didn’t happen

1 Like

Alright, I think it might be a studio bug that is why I am suggesting try to see if you get the error in the Roblox client

1 Like

Thats the stack trace, it seems weird that Roblox isn’t trimming the trace here? If Setup is calling itself multiple times, thats a stack overflow.

function Setup()
  return Setup() -- Stack overflow!!

If you want more info on stack overflows, this wikipedia page might help. Not showing the error itself isn’t very useful here for diagnosing for whats actually happening.

What I may suggest is wrapping your Setup function in a pcall, so you can capture the actual error without it spamming your console with the stack trace.