Mavproxy module disconnecting QGroundControl

I am currently working on making my BlueRov autonomous using a raspberry pi and mavproxy. When I upload modules that have autonomous control to the raspberry pi, they load with no errors. However mavproxy becomes unresponsive and after a few seconds I lose connection to QGroundControl and have to restart mavproxy. Simple example modules upload fine and run fine. The module that I want to use also used to work properly before adding one similar to it… What could be my error?

Thanks

I am currently working on making my BlueRov autonomous using a raspberry pi
and mavproxy. When I upload modules that have autonomous control to the
raspberry pi, they load with no errors. However mavproxy becomes
unresponsive and after a few seconds I lose connection to QGroundControl
and have to restart mavproxy. Simple example modules upload fine and run
fine. The module that I want to use also used to work properly before
adding one similar to it… What could be my error?

Are you using separate mavlink source system ids for MAVProxy and the
scripts on the Pi?