I think this bug is happening because you run it with sudo. You shouldn't run graphical applications with sudo as root. partitionmanager is designed to be run by non-root user.