Actually I don’t think it’s memory size problem. And I found somehow I am able to run it in ‘run’ mode without this bug anymore, but cannot go through it in ‘debug’ mode, which are two modes in PyCharm IDE. It’s weird but it happens. Thanks anyway!