Compiling AOSP , emulator failed to create drawable, Could not make gles 2.x context current! Ubuntu 16.04

After compiling AOSP with lunch aosp_arm-eng command emulator fails to run below is the output of $ emulator Couldn't statvfs() path: No such file or directory emulator: WARNING: encryption is off