Please retrieve and provide the .txt for this flight as requested by @msinger . I suggest that you also retrieve and provide the .DAT for this flight which is on the Mavic itself. (There may be a .dat on the tablet but that is not the right one). Since the app crashed the only way to know what happened during that interval is through the .DAT. Look here for info about retrieving the .DAT. It'll be large so you'll need to Dropbox or GoogleDrive it and provide a link here.
From your description it seems unlikely that there was a compass issue. But, if there was it's likely the .DAT will provide the necessary data.
With regard to the comments made about compass calibrations I've done some experiments and research over the last 18 months or so. My observations:
1) It's very difficult to get a bad compass calibration. I did an experiment with my P3 where I attempted to calibrate next to a large metallic object (my pickup). If the P3 was too close the Go App would complain about interference and reject the calibration. After several attempts I knew how close I could get and still have the calibration accepted. That "bad" calibration wasn't bad enough to cause a flight problem.
The other method I used was calibrate with an allen wrench attached to an adjacent leg (the compass is in one of the legs). After the calibration the wrench was removed which yielded a P3 with a bad calibration that probably would caused an incident had I flown it.
I suspect that under just the right circumstances it may be possible to unknowingly obtain a bad calibration. So why risk it.
2) With one exception I have never seen an incident caused by a bad calibration supported with data or some other compelling evidence. I've been looking at compass related incidents for well over a yer and that one exception happened last week. Actually, that incident was likely the result of a hardware change or partial failure that got "fixed" with a calibration. Take a look at
Fly Away
if interested.
3) It wan't stated explicitly here but some may believe that a calibration is necessary at a new location in order that the geomagnetic declination can be determined. The calibration procedure for the Mavic, P3, etc does not and can not determine the geomagnetic declination. The only thing that can be determined about the local geomagnetic filed is it's strength. I suspect the P3 was more sensitive to the geomagnetic strength than is the Mavic.
BTW, I've never calibrated my Mavic's compass or IMU.
If anybody is still reading this and is interested you might be interested in the MagData player in CsvView.
http://www.datfile.net/Doc/MagDataPlayer.pdf
Basically, it presents magnetometer data in a way that would expose a bad compass calibration. It's eye candy for geeks, but it's good eye candy.
Thank you. You are much appreciated and well informed on these topics.