Failed to open and upload big image file, map_file and map_server
I am using Kinetic and Ubuntu 16.04.6 LTS, I am trying to upload a map file for map_server and use it for navigation and amcl localization, but it is really big, 25500 x 5300 pixels (.pgm). The map_server is not starting and shows this message:
[ERROR] [1556905481.419883442]: failed to open image file "/home/dev/src/robot/navigation/maps/bigger_map.pgm": Out of memory
Is possible to use a map with a big number of pixels or I need to reduce the number of pixels to work well? Is it depends on computer memory RAM?
I have tried to use in .png file format, but the message was the same.
I'm not into navigation at all, but 25500 x 5300 == 135150000 bytes (approx 128MB). And that is just if each cell only occupies a single byte (which is probably not the case). High resolution maps could be an issue. Do things work if you subsample the map? Otherwise I'd suggest to search for some previous Q&As about map resolution and related problems.