Some applications produce question marks for their subwindows in the unity menu instead of ordinary icons. What could cause this behaviour?

Some applications produce question marks for their subwindows in the unity menu instead of ordinary icons. What could cause this behaviour?
