Unfortunately, there is a bug in lgi library causing the incorrect values being returned and the example crashes. I am going to send a patch to lgi to fix the issues.