IMG format raster image file with a large number of class records displays with errors "ERROR: bad allocation"
The ERDAS IMAGINE 2D Viewer does not handle thematic images with a large number of attribute rows (i.e. color table).
It has not been determined as to how many records in a file will cause this problem to be observed. The test images used had a range of records starting from 1.4 million rows. The file displays in the Viewer with errors and is not usable in the 2D Viewer after the initial display.
No IMG file is seen in the TOC, no access to Inquire Cursor, no access to the file Attribute table, etc. The 2D Viewer has to be removed to restore display functionality.
You may see an error similar to the one below
.......... SessionMgr(4536): ERROR: bad allocation