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

crash: visualization does not work #86

Closed
duboz opened this issue May 2, 2022 · 3 comments
Closed

crash: visualization does not work #86

duboz opened this issue May 2, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@duboz
Copy link
Collaborator

duboz commented May 2, 2022

Can not observe simulation results in output editor window.

Actions : Select lotka-volterra QSS2, check observation for X variable, import model in simulation tab -> crash

(gdb) bt
#0 0x00007ffff7a46a7c in pthread_kill () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff79f2476 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff79d87f3 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007ffff79d871b in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x00007ffff79e9e96 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#5 0x000055555568447c in irt::simulation_init_observation(irt::simulation_editor&, irt::tree_node&, irt::component&) ()
#6 0x0000555555684745 in irt::simulation_init_observation(irt::component_editor&, irt::simulation_editor&, irt::tree_node&) ()
#7 0x0000555555684b7c in irt::simulation_copy(irt::component_editor&, irt::simulation_editor&) ()
#8 0x000055555568500b in irt::simulation_copy_impl(void*) ()
#9 0x000055555556dbc1 in irt::worker::run() ()
#10 0x00005555555a25b9 in void std::__invoke_impl<void, void (irt::worker::)() noexcept, irt::worker>(std::__invoke_memfun_deref, void (irt::worker::&&)() noexcept, irt::worker&&) ()
#11 0x00005555555a2375 in std::__invoke_result<void (irt::worker::)() noexcept, irt::worker>::type std::__invoke<void (irt::worker::)() noexcept, irt::worker>(void (irt::worker::&&)() noexcept, irt::worker&&) ()
#12 0x00005555555a2273 in void std::thread::_Invoker<std::tuple<void (irt::worker::)() noexcept, irt::worker> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>)
()
#13 0x00005555555a20f4 in std::thread::_Invoker<std::tuple<void (irt::worker::)() noexcept, irt::worker> >::operator()() ()
#14 0x00005555555a1c50 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (irt::worker::)() noexcept, irt::worker> > >::_M_run() ()
#15 0x00007ffff7dbd2c3 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#16 0x00007ffff7a44b43 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#17 0x00007ffff7ad6a00 in ?? () from /lib/x86_64-linux-gnu/libc.so.6

@duboz duboz added the bug Something isn't working label May 2, 2022
@duboz
Copy link
Collaborator Author

duboz commented May 2, 2022

Update : I run "git submodule update --remote" to be sure my branch is updated. I recompile from scratch, but the same error remains.
Note: I do a root install (not secure I know ;).

@duboz
Copy link
Collaborator Author

duboz commented May 15, 2022

I tried import lotka volterra model first in simulation tab, then check X and Y observation checkboxes and simulation runs. But when I select action "Plot line" or "Plot scatter" in output editor, irritator crashes. If I select "Plot Raw", simulation runs but nothing is displayed.

Here the bt from gdb, same for both "Plot line" or "Plot scatter":

#0 0x0000555555634731 in irt::ring_bufferirt::simulation_observation::raw_observation::iterator::operator->() const ()
#1 0x00005555556b0079 in irt::compute_and_store_interpolate(irt::simulation_observation&, double, irt::function_ref<double (irt::fixed_real_array<4ul> const&, double)>, ImVector&) ()
#2 0x00005555556b10c2 in irt::simulation_observation::compute_interpolate(double, ImVector&) ()
#3 0x0000555555633ee7 in irt::show_output_widget(irt::application&) ()
#4 0x0000555555634200 in irt::application::show_output_editor_widget() ()
#5 0x000055555556c2ec in irt::application::show_main_as_tabbar(ImVec2, ImVec2, int, int, int) ()
#6 0x000055555556bd73 in irt::application_show_windows(irt::application&) ()
#7 0x000055555556bf6d in irt::application::show() ()
#8 0x00005555557b205a in main ()

@quesnel
Copy link
Member

quesnel commented Jun 7, 2022

Fix in master branch.

@quesnel quesnel closed this as completed Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants