cos00kun error loading module 'canvas' from file '.\canvas.lua':
C stack overflow
This is because you script is named as the LuaRT canvas module !
By doing this, LuaRT Studio don't stop to reload the canvas.lua
module again and again !
Just rename your current script with another name and everything should work as expected.
That's because when requiring for a module, Lua search path always starts with the current folder.