Hi Nico, I am testing it on Samsung Galaxy S7 Edge and other high end products, so there is definitely no problems with lack of resources like RAM etc. There is no specific logic for it e.g. I got it working fine yesterday with Catalyst connected to TMM and Mapit as the mapping software for about 30 min. I do remember changing the correction source to local caster at some point, but it was also working fine.
Then I got the antenna disconnected and afterwards I was not able to see Mock location populated any more. Checked the trace and this was included above.
It is definitely happening somewhere in the thread where you are populating the Mock location details or receiving solution as this error is running in the loop until you STOP SHARING position. You press SHARE POSITION again and is starting again.
You are building couple of Arrays for Satellites information snr, rpn, azi, ele - maybe is somewhere there??? as the problem is java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 .
This error is very common and I am having lots of customers having this problem.
1. Start TMM and share position (TMM set as mock location app in Android>Developers Settings)
2. If you install Mapit (no extension needed to test this, but I am happy to provide unlock codes if needed - I will send you some from home tonight over email) - then in Mapit Settings->External GNSS switch on Trimble switch:
3. Get back to the map if GPSInfo is saying "Waiting for Location" - you may need to restart Mapit.
4. In normal circumstance you will get the GPS Info populated like this:

5. If you still see nothing - please check TMM Log and you will definitely see the error quoted above.
I will try to replicate the error over weekend and if I spot anything will post here.
This is very inconsistent and sometimes work sometimes not.
Kind Regards,
Andrzej