AttributeError: Window object has no attribute _progSignedTexFont

I am on Ubuntu 22.04. My code was working very well before I upgraded the Ubuntu system, and now it started throwing this error.

Basically my software producing this error as following, I have a separate GUI in which I am starting an experiment and everything works well with no issues, however once I close PsychoPy window (the experiment’s window) and try to start it again through the GUI I get a black screen and an error will be thrown at the drawing line (text.draw()) as following:

Exception in thread Thread-5:
Traceback (most recent call last):
  File "/home/XYZ/miniconda3/envs/tenv/lib/python3.8/", line 932, in _bootstrap_inner
  File "/home/XYZ/miniconda3/envs/tenv/lib/python3.8/", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/XYZ/YYY/EyeTrackingRepo/src/", line 498, in initialize_calibration
  File "/home/XYZ/miniconda3/envs/tenv/lib/python3.8/site-packages/psychopy/visual/", line 714, in draw
AttributeError: 'Window' object has no attribute '_progSignedTexFont'

Any idea or suggestion would be appreciated.

Have you seen this thread?

Yeah I have checked already. I got sure that my graphics card drivers is updated but still it didn’t solve the problem.