I am running Ubuntu 16.04 and Emacs 25.1.2, which I installed from here:
https://launchpad.net/~kelleyk/+archive/ubuntu/emacs
According to:
Emacs toolbar icons missing in Ubuntu-16.10, struggle to compile emacs24 and 25
the kellyk build should resolve the empty menu problem, but I still get some empty menus, for example when I open a .tex file, the Latex menu is just a grey rectangle if I click on the menu. The menu only becomes populated when I hit F10, but I was wondering if anyone knows how to fix it so that I can click on it.