Python. Turtle module. Terminator error

ERROR:
Traceback (most recent call last):
File “C:/Users/miste/Desktop/PYthon files/snake.py”, line 22, in
scr.update()
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\turtle.py”, line 1303, in update
t._update_data()
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\turtle.py”, line 2646, in _update_data
self.screen._incrementudc()
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\turtle.py”, line 1292, in _incrementudc
raise Terminator
turtle.Terminator

import turtle
import time
import random
import os
true=True
false=False

scr=turtle.Screen()
scr.title('SNAKE GAME')
scr.bgcolor('black')
scr.setup(width=600,height=600)
scr.tracer(0)

t=turtle.Turtle()
t.speed(0)
t.shape('square')
t.color('green')
t.penup()
t.direction='stop'

while true:
    scr.update()




scr.mainloop()

Hi, Im using python and the turtle module and this error has appeard on two of my projects I don’t know why and I don’t know what does it mean. Can some one explain it to me?