AnsweredAssumed Answered

Cannot create large number of layers on iOS

Question asked by stolba on Feb 5, 2020
Latest reply on Feb 7, 2020 by stolba

I need to create large number (hundreds) of custom ImageTiledLayer layers which use locally stored tiles. It works fine on desktop (Linux) and Android, but crashes on iOS. It turned out, that the cause of the crash is that the app has too many open file handles, as on iOS the limit is typically fairly low (e.g., 256). The app crashes when opening around 190 layers.

 

I have a couple of questions:

- Can anyone confirm this is really the case? Is the ImageTiledLayer keeping open file handlers?

- If so, can we somehow determine how many? Is it one per tile, or one per layer?

- Also is there any way how to force the layer to close the file handlers after loading the tiles?

 

Best Regards,

Michal Stolba

Outcomes