7/30/24 - Test with payload and new firmware
7/30/24: IGC Test W/ payload on new FW Summary: I cloned all the tests I did previously. For brevity, I concatanated multiple similar steps into one step
Things that I tested and did not cause mem leak
Swapped between herelink nw blue settings and main app 20 times on a variety of different screens including flight view, plan view, application settings, etc and did not notice any memory leak or increased memory allocation. The only time memory significantly went up was when I swiped the map and more map tiles would load, which is expected.
Switching between video expanded and flight view expanded
Tapping on payload settings, taking photos, recording video, switching payload settings, switching video stream
Spammed every toolbar button on the top, spammed application settings, vehicle settings, analyze tools. Spammed each payload button, rtsp switch, etc.
Had both streams up the entire time for all tests, but tried having some streams down and seeing if it affected memory usage
Tried split screen, switching app while vehicle reboot, hot swapping batteries, setting rid emergency on herelink settings
Rebooted drone 5 times while keeping app open. Rebooted the drone 2 additional times while doing a battery swap
Things I did that caused crash:
With large mission loaded (650 waypoint mission) (a lot of memory allocated (0.8gb)), I switched applications to herelink settings and THEN accidentally switched applications to normal herelink settings that track data usage, then back to IGC and saw it restart. What I noticed before this is that rendering this mission caused a lot of graphical strain. Moving around the map was a bit jittery. This was also after I scrolled a ton through the map
This is recreatable. If you upload a large mission that takes 0.8gb or more and then switch apps, it will consistently crash IGC
New tests:
Testing to see how much it would take to crash the application when loading map tiles with a large mission
Results: I scrolled through the map a ton, loading a bunch of tiles. At first, memory went up, but then it stabilized despite continually loading tiles. I went back to previous locations and saw they got unloaded. Tile management does appear to work, and impact on memory is only noticable when tiles aren't initially loaded and then they become loading. This is for online tiles.

Takeaways from this test: Whenever memory allocated is around 0.8 GB or more, switching to herelink settings and then back to IGC consistently crashes IGC. Looking at the chart below, the initial spike is me loading a huge 650+ WP mission. Those spikes down are when IGC crashes. I was able to get it to crash 3 times with minimal effort after being above the 0.8GB threshold. At 0.7 GB I did not crash. ---------------------------------------------------------------------------------------- 2. Offline map test: Test to see if there is a difference when an offline map is loaded For this test, I loaded up a 10840 tile offline map (about 143.5 MB). For a normal users purposes, this should be good enough, it covers a large chunk of space. Zoom levels are between 13-19. The 143.5 MB of memory usage was not enough to have a substantial difference on performance. The amount of space allocated with no mission after clicking all the tabs sat around 0.43GB. A normal 65 wp survey mission barely had an affect on it, still around the same amount.
Graph from offline map upload (left side) and then test with drone + payload connected (right side). The offline map did not increase memory usage significantly, but a larger one might

Tested with an additional offline map. Now around 300mb total of offline maps exist. Thankfully, resources allocated look around the same. Offline maps appear to only load resources into memory if a user is scrolled on them, just like how online maps work.

Note: Each large dip is a restart of the application. memory usage with 143MB offline map was about 450mb memory usage with about 300mb of offline maps was about 480mb That difference could be attributed to other factors like me scrolling differently
Last updated