The following code works for me correctly in Windows, but Linux does not work. I am using the same PC, both operating systems are installed native.