Ported app from Vivoactive HR to Vivoactive 4 works in emulator but crashes in watch.

I tried to port an app to Vivoactiv 4. It works in the developement tool emulator, but crashes when downloaded to the watch. It seems to be an unknown exeption but I can't find any problems.