Error 516: Unable to write: Broken pipe

Im doing an app to control a robot arm using an arduino and a hc-06 bluetooth module, but when I start running the app after a few seconds it freezes and crashes showing the error 516, can anybody help me please:(? im new using arduino and mit app inventor

Here's a recent thread discussing error 516 ...

Posting your code might help.