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

cannot find string element /int8_t in registry #18

Open
AlexanderFabisch opened this issue Feb 20, 2018 · 4 comments
Open

cannot find string element /int8_t in registry #18

AlexanderFabisch opened this issue Feb 20, 2018 · 4 comments

Comments

@AlexanderFabisch
Copy link

I am trying to load a logfile with pocolog_cpp. I get the following exception:

terminate called after throwing an instance of 'std::runtime_error'
  what():  cannot find string element /int8_t in registry

This is the backtrace:

#8  0x00007ffff7bc495e in pocolog_cpp::InputDataStream::loadTypeLib (this=this@entry=0x706b50)
    at /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog_cpp/src/InputDataStream.cpp:37
37	    Typelib::PluginManager::load("tlb", stream, empty, *m_registry);
(gdb) 
#9  0x00007ffff7bc4b74 in pocolog_cpp::InputDataStream::InputDataStream (this=0x706b50, desc=..., 
    index=...)
    at /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog_cpp/src/InputDataStream.cpp:20
20	    loadTypeLib();
(gdb) down
#8  0x00007ffff7bc495e in pocolog_cpp::InputDataStream::loadTypeLib (this=this@entry=0x706b50)
    at /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog_cpp/src/InputDataStream.cpp:37
37	    Typelib::PluginManager::load("tlb", stream, empty, *m_registry);
(gdb) up
#9  0x00007ffff7bc4b74 in pocolog_cpp::InputDataStream::InputDataStream (this=0x706b50, desc=..., 
    index=...)
    at /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog_cpp/src/InputDataStream.cpp:20
20	    loadTypeLib();
(gdb) up
#10 0x00007ffff7bc82bb in pocolog_cpp::LogFile::LogFile (this=0x638080, fileName=...)
    at /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog_cpp/src/LogFile.cpp:50
50	                streams.push_back(new InputDataStream(*it, indexFile->getIndexForStream(*it)));
(gdb) up
#11 0x00007ffff7bce74d in pocolog_cpp::MultiFileIndex::createIndex (this=this@entry=0x637b40, 
    fileNames=std::vector of length 1, capacity 1 = {...})
    at /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog_cpp/src/MultiFileIndex.cpp:139
139	        LogFile *curLogfile = new LogFile(*it);
(gdb) up
#12 0x000000000041ae4b in convert (logfiles=std::vector of length 1, capacity 1 = {...}, 
    output="output.msg", size=size@entry=8, containerLimit=containerLimit@entry=10000, only="", 
    start=start@entry=0, end=-1, verbose=0)
    at /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog2msgpack/src/Converter.cpp:36
36	    multiIndex->createIndex(logfiles);

Does anybody have an idea? The logfile can be loaded in rock-replay and I could not find any port that uses int8_t.

@AlexanderFabisch
Copy link
Author

@hemker

Maybe you could have an idea? Do I have to load an additional typekit? How can I do that?

@hemker
Copy link
Member

hemker commented Feb 20, 2018

Hey,
could you please provide me your source code? I think it has something to do with missing typekits. If you want to, take a look into https://github.com/rock-cpp/rock_replay/blob/master/src/ReplayHandler.cpp especially method loadStreams (directly at the beginning). There is some general typekit (not on demand) loading stuff.

@AlexanderFabisch
Copy link
Author

AlexanderFabisch commented Feb 20, 2018

This line here is crashing: https://git.hb.dfki.de/InFuse/pocolog2msgpack/blob/master/src/Converter.cpp#L35

I am trying to add

orocos_cpp::PluginHelper::loadTypekitAndTransports("orocos");

I hope that is all. tools/orocos_cpp seems to have a lot of dependencies... I pushed it to another branch: https://git.hb.dfki.de/InFuse/pocolog2msgpack/tree/orocos_cpp . I still have the problem with the logfile that I am working on.

Maybe the logfile is just broken. Loading a specific stream with pocolog (ruby) crashes with another error:

pocolog recupera_part_system_devices_deployment.0.log  --show /joints.joints_status 
pocolog.rb[INFO]: loading file info from ./recupera_part_system_devices_deployment.0.idx... 
/home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog/lib/pocolog/data_reader.rb:129:in `add_standard_cxx_types': type /uint8_t already defined in registry (ArgumentError)
	from /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog/lib/pocolog/data_reader.rb:129:in `rescue in registry'
	from /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog/lib/pocolog/data_reader.rb:126:in `registry'
	from /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog/lib/pocolog/data_reader.rb:159:in `type'
	from /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog/bin/pocolog:117:in `stream'
	from /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog/bin/pocolog:507:in `show'
	from /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog/bin/pocolog:598:in `block (2 levels) in <main>'
	from /usr/lib/ruby/2.3.0/optparse.rb:1540:in `block in parse_in_order'
	from /usr/lib/ruby/2.3.0/optparse.rb:1527:in `catch'
	from /usr/lib/ruby/2.3.0/optparse.rb:1527:in `parse_in_order'
	from /usr/lib/ruby/2.3.0/optparse.rb:1521:in `order!'
	from /usr/lib/ruby/2.3.0/optparse.rb:1513:in `order'
	from /home/dfki.uni-bremen.de/afabisch/tmp/envire/tools/pocolog/bin/pocolog:695:in `<main>'

@hemker
Copy link
Member

hemker commented Feb 21, 2018

Okay, could you provide the logfile via Fileserver/Temp please?

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