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

Missing regeneration of index files #7

Open
saarnold opened this issue Aug 27, 2015 · 3 comments
Open

Missing regeneration of index files #7

saarnold opened this issue Aug 27, 2015 · 3 comments

Comments

@saarnold
Copy link

Currently when replaying logs, containing already existing index files, errors like this occur:

/tools/pocolog/lib/pocolog/file.rb:745:in `data_header': payload was supposed to be  bytes, but found 1422563323 (RuntimeError)

After the last update of the stream aligner #6 it seems necessary to recreate existing index files. This is not triggered automatically.

@doudou
Copy link
Member

doudou commented Aug 27, 2015

Complete backtrace, please.

@doudou
Copy link
Member

doudou commented Aug 27, 2015

And ideally a log file / index file combination which triggers the problem ...

@saarnold
Copy link
Author

saarnold commented Sep 3, 2015

Backtrace:

/home/sirius/master/tools/pocolog/lib/pocolog/file.rb:745:in `data_header': payload was supposed to be  bytes, but found 449 (RuntimeError)
    from /home/sirius/master/tools/pocolog/lib/pocolog/data_reader.rb:96:in `data_header'
    from /home/sirius/master/tools/pocolog/lib/pocolog/data_reader.rb:208:in `rescue in read_one_raw_data_sample'
    from /home/sirius/master/tools/pocolog/lib/pocolog/data_reader.rb:199:in `read_one_raw_data_sample'
    from /home/sirius/master/tools/orocos.rb/lib/orocos/log/task_context.rb:364:in `raw_read'
    from /home/sirius/master/tools/orocos.rb/lib/orocos/async/log/ports.rb:104:in `raw_last_sample'
    from /home/sirius/master/tools/orocos.rb/lib/orocos/async/task_context_proxy.rb:235:in `reachable!'
    from /home/sirius/master/tools/orocos.rb/lib/orocos/async/task_context_proxy.rb:850:in `block in connect_port'
    from /home/sirius/master/tools/utilrb/lib/utilrb/event_loop.rb:158:in `call'
    from /home/sirius/master/tools/utilrb/lib/utilrb/event_loop.rb:158:in `call'
    from /home/sirius/master/tools/utilrb/lib/utilrb/event_loop.rb:615:in `block in step'
    from /home/sirius/master/tools/utilrb/lib/utilrb/event_loop.rb:704:in `call'
    from /home/sirius/master/tools/utilrb/lib/utilrb/event_loop.rb:704:in `handle_errors'
    from /home/sirius/master/tools/utilrb/lib/utilrb/event_loop.rb:615:in `step'
    from /home/sirius/master/tools/utilrb/lib/utilrb/event_loop.rb:521:in `exec'
    from /home/sirius/master/tools/utilrb/lib/utilrb/event_loop.rb:541:in `wait_for'
    from /home/sirius/master/tools/orocos.rb/lib/orocos/async/object_base.rb:347:in `wait'
    from /home/sirius/master/tools/orocos.rb/lib/orocos/async/log/ports.rb:96:in `to_proxy'
    from /home/sirius/master/gui/vizkit/lib/vizkit/vizkit_items.rb:969:in `port_from_items'
    from /home/sirius/master/gui/vizkit/lib/vizkit/vizkit_items.rb:485:in `context_menu'
    from /home/sirius/master/gui/vizkit/lib/vizkit/tree_view.rb:15:in `block in setup_tree_view'
    from /home/sirius/master/.gems/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2470:in `call'
    from /home/sirius/master/.gems/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2470:in `invoke'
    from /home/sirius/master/.gems/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `qt_metacall'
    from /home/sirius/master/.gems/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `method_missing'
    from /home/sirius/master/.gems/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `exec'
    from /home/sirius/master/gui/vizkit/lib/vizkit/vizkit.rb:137:in `exec'
    from /home/sirius/master/gui/vizkit/bin/rock-replay:105:in `replay'
    from /home/sirius/master/gui/vizkit/bin/rock-replay:150:in `<main>'
    from /home/sirius/master/tools/utilrb/lib/utilrb/event_loop.rb:622:in `step'
    from /home/sirius/master/tools/utilrb/lib/utilrb/event_loop.rb:521:in `exec'
    from /home/sirius/master/tools/utilrb/lib/utilrb/event_loop.rb:541:in `wait_for'
    from /home/sirius/master/tools/orocos.rb/lib/orocos/async/object_base.rb:347:in `wait'
    from /home/sirius/master/tools/orocos.rb/lib/orocos/async/log/ports.rb:96:in `to_proxy'
    from /home/sirius/master/gui/vizkit/lib/vizkit/vizkit_items.rb:969:in `port_from_items'
    from /home/sirius/master/gui/vizkit/lib/vizkit/vizkit_items.rb:485:in `context_menu'
    from /home/sirius/master/gui/vizkit/lib/vizkit/tree_view.rb:15:in `block in setup_tree_view'
    from /home/sirius/master/.gems/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2470:in `call'
    from /home/sirius/master/.gems/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2470:in `invoke'
    from /home/sirius/master/.gems/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `qt_metacall'
    from /home/sirius/master/.gems/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `method_missing'
    from /home/sirius/master/.gems/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in `exec'
    from /home/sirius/master/gui/vizkit/lib/vizkit/vizkit.rb:137:in `exec'
    from /home/sirius/master/gui/vizkit/bin/rock-replay:105:in `replay'
    from /home/sirius/master/gui/vizkit/bin/rock-replay:150:in `<main>'

Example log and idx file:
https://dl.dropboxusercontent.com/u/86500405/DFKI/test_log.zip
As soon one does a right click on the RBS output port the error occurs.

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