[1.6.14] Location selection crashes when using the share extension
If you use the share menu with e.g. a pdf, the form for a new transaction appears and you can enter your data. If you want to add a location and tap on the button for that, the entry form immediately disappear and thats it. The whole transaction is gone.

Log in to comment and vote
Comments1
Fabian
Aug 4, 2024
Hi @Rene,
I have taken another look at the problem. Unfortunately, I have to tell you that this is a limitation made by Apple that I cannot solve :(
The reason is that as soon as you select the location, a new view opens which contains an MKMapView (see https://developer.apple.com/documentation/mapkit/mkmapview). This is a standard component from Apple to display maps from Apple Maps. The problem is that the MKMapView consumes a lot of memory depending on the location (i.e. the more roads, buildings, etc. are displayed, the more memory it consumes).
Unfortunately, Share Extensions have a memory limit that is exceeded when MKMapView is displayed. This results in an EXC_RESOURCE exception which causes the share extension to be terminated by the operating system (see https://developer.apple.com/documentation/xcode/exc_resource). To prevent the crash from happening again, I will disable the location selection from the share extension in the next update and hide the section there.
I hope you understand this and thank you for reporting the bug :)
Best regards
Fabian