It uses the RPG::Cache, so garbage collection shouldn't be needed, but this occurs on a menu, whereas the only thing that should be affected there is the viewport size will be initialized as the resolution size if it was set to 640x480. The "failed to create bitmap" usually occurs for other reasons, such as creating negative or nil values for the size.