The following block of code runs good in windows VS Code. However, When I try same method in Ubuntu 20 Environment. It shows runtime error: invalid memory address or nil poi