I found that the problem was caused because kodi was running inside a sandboxie container,which it can be sandboxed and used normally.
The problem starts when running kodi inside a sandbox, and then running objectdock.
Is there any solution for that?