PDAL/PDAL — Issue #60: Qfit reader - throwing 'end of file'
Author: gadomski
Created: 2011-11-18 17:58:45+00:00
State: open

I'm running `pcinfo 20101120_000244.ATM4BT2.qi` (that's a NASA ATM file) and coming up with the following output:

```
terminate called after throwing an instance of 'std::out_of_range'
what(): end of file encountered
```

The file is 54M, and I've tried this on several other ATM files with the same results. Backtrace:

```
#0 0x0000003a11a30265 in raise () from /lib64/libc.so.6
#1 0x0000003a11a31d10 in abort () from /lib64/libc.so.6
#2 0x0000003a240bed14 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib64/libstdc++.so.6
#3 0x0000003a240bce16 in ?? () from /usr/lib64/libstdc++.so.6
#4 0x0000003a240bce43 in std::terminate() () from /usr/lib64/libstdc++.so.6
#5 0x0000003a240bcf2a in __cxa_throw () from /usr/lib64/libstdc++.so.6
#6 0x00007ffff7d301c7 in pdal::Utils::check_stream_state > (
srtm=) at /opt/pdal/src/../include/pdal/Utils.hpp:186
#7 0x00007ffff7d65a62 in pdal::drivers::qfit::Reader::Reader (this=0x6374f0,
options=) at /opt/pdal/src/../include/pdal/Utils.hpp:117
#8 0x00007ffff7d0f2f9 in pdal::create_QfitReader (options=...)
at /opt/pdal/src/StageFactory.cpp:127
#9 0x00007ffff7d10b6a in pdal::StageFactory::createReader (this=, type=...,
options=...) at /opt/pdal/src/StageFactory.cpp:187
#10 0x0000000000421b77 in AppSupport::makeReader (options=...) at /opt/pdal/apps/AppSupport.cpp:119
#11 0x0000000000412fa5 in PcInfo::execute (this=0x7fffffffe510) at /opt/pdal/apps/pcinfo.cpp:235
#12 0x000000000041c607 in Application::innerRun (this=0x7fffffffe510)
at /opt/pdal/apps/Application.cpp:155
#13 0x000000000041d241 in Application::run (this=0x7fffffffe510)
at /opt/pdal/apps/Application.cpp:92
#14 0x0000000000412121 in main (argc=, argv=)
at /opt/pdal/apps/pcinfo.cpp:276
```

Options dump from frame 10:

```
{
"Option":
{
"Name": "debug",
"Value": "false"
},
"Option":
{
"Name": "filename",
"Value": "20101120_000244.ATM4BT2.qi"
},
"Option":
{
"Name": "liblas",
"Value": "false"
},
"Option":
{
"Name": "verbose",
"Value": "0"
}
}
```