I've seen this happen when I messed up which framework and imports to use, it will compile and not run, with the problem in GLTexFromPixmap
Double check you have a valid context, can you use gldrawtext and flip?
Double check you have a valid context, can you use gldrawtext and flip?