Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error PDAL: Unknown subpackage v3: 6 when reading a RIEGL rxp file #4080

Open
philwilkes opened this issue Jun 13, 2023 · 8 comments
Open

Error PDAL: Unknown subpackage v3: 6 when reading a RIEGL rxp file #4080

philwilkes opened this issue Jun 13, 2023 · 8 comments

Comments

@philwilkes
Copy link

When some processing rxp files:

pdal info ../../ScanPos007.SCNPOS/scans/230526_060717.rxp

I get the error:

PDAL: Unknown subpackage v3: 6
Bus error (core dumped)

PDAL version 2.4.3

This is does not happen for all files. These can be imported into RiSCAN so don't think files are corrupt.

Happy to share rxp file if required.

@hobu
Copy link
Member

hobu commented Jun 13, 2023

A stack trace of a debug build would be more helpful.

@philwilkes
Copy link
Author

Thanks @hobu, is this more helpful

(base) bash-4.2$ ~/opt/PDAL-2.4.3-src/build/bin/pdal info ../../ScanPos007.SCNPOS/scans/230526_060717.rxp --developer-debug -v 4
(PDAL Debug) Debugging...
(pdal info Debug) Attempting to load plugin '/home/ucfaptv/opt/PDAL-2.4.3-src/build/lib/libpdal_plugin_reader_rxp.so'.
(pdal info Debug) Loaded plugin '/home/ucfaptv/opt/PDAL-2.4.3-src/build/lib/libpdal_plugin_reader_rxp.so'.
(pdal info Debug) Initialized plugin '/home/ucfaptv/opt/PDAL-2.4.3-src/build/lib/libpdal_plugin_reader_rxp.so'.
(pdal info Debug) Executing pipeline in stream mode.
terminate called after throwing an instance of 'std::runtime_error'
what(): Unknown subpackage v3: 6
Aborted (core dumped)

@hobu
Copy link
Member

hobu commented Jun 13, 2023

Must be something inside the RXP library throwing an exception we're not capturing. I guess I would need the file to be able to fix it.

@philwilkes
Copy link
Author

I understand you are probably very busy but that would be great! :)

You can download a file from here.

@hobu
Copy link
Member

hobu commented Jun 13, 2023

#8  0x0000ffffee141364 in void scanlib::decompressor<scanlib::compressed_packets::impl>::decompress<unsigned int const*>(scanlib::packed_shot_echos_sbl_hr<unsigned int const*> const&) ()
   from /var/task/lib/libpdal_plugin_reader_rxp.so
#9  0x0000ffffee173594 in scanlib::basic_packets::on_dispatch(unsigned int const* const&, unsigned int const* const&) () from /var/task/lib/libpdal_plugin_reader_rxp.so
#10 0x0000ffffedff8f6c in pdal::RxpPointcloud::savePoints() ()
   from /var/task/lib/libpdal_plugin_reader_rxp.so
#11 0x0000ffffedffc0fc in pdal::RxpPointcloud::readOne(pdal::PointRef&) ()
   from /var/task/lib/libpdal_plugin_reader_rxp.so
#12 0x0000fffff7baafa0 in pdal::Streamable::execute(pdal::StreamPointTable&, std::__cxx11::list<pdal::Streamable*, std::allocator<pdal::Streamable*> >&, std::map<pdal::Streamable*, pdal::SpatialReference, std::less<pdal::Streamable*>, std::allocator<std::pair<pdal::Streamable* const, pdal::SpatialReference> > >&) () from /var/task/bin/../lib/libpdal_base.so.15
#13 0x0000fffff7bac05c in pdal::Streamable::execute(pdal::StreamPointTable&) ()

@hobu
Copy link
Member

hobu commented Jun 13, 2023

Is this an old file or a new file? I'm using the latest RivLib release. I assume we must need to ask scanlib if this particular packet type packed_shot_echos_sbl_hr is available

@philwilkes
Copy link
Author

philwilkes commented Jun 13, 2023

Data generated with a VZ400i, this instrument is ~12 months old.

For this project we ran the scanner at 600 khz i.e. >1 MTA zone, I have not noticed this issue for data generated at 300 khz before (1 MTA zone).

I can share more files from this same project e.g. that do and do not through this error.

@hobu
Copy link
Member

hobu commented Jun 13, 2023

ok. the RivLIB has a bunch of different packet types, and this file doesn't have the expected packet type. I dont know RivLIB well enough to fix this with a quick one. We are available for hire if you wanted to go that route, otherwise you're going to have to slug it out with RivLIB to make a pull request to overcome this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants