Today I was fighting with following error:
ERROR: COMXCore::Initialize - OMXCore failed to init, omx_err(0x80001009
solving for this issue is .. peace of cake, when you know the solution :-).
Go to raspi-config -> Advanced options -> Memory split -> set to 128