getsize may fail