Ticket #845 (closed bug: fixed)
Problem with large attribute tables
I tried to open the database table of a very large shape file.
dbf -> 770 MB shp -> 384 MB shx -> 7 MB
Loading and visualizing the file works fine, although it takes some minutes, but opening the attribute table fails.
The error message is:
QIconvCodec::convertToUnicode: using ASCII for conversion, iconv_open failed terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Abgebrochen (core dumped)
When I generate a stacktrace, all it says is:
#0 0xffffe410 in ?? () Cannot access memory at address 0xbf8e8520
# Comment by Marco Hugentober:
The problem is that you run out of virtual memory (RAM and swap partition are full) and so the bad_alloc exception is thrown.In the short run we should add a try/catch block and in the long run not read all the rows into memory.