Assertion error running blockmodel inference after system update
Hello,
I am running graph-tool 2.45-1 installed from the AUR, with python 3.10.7.
After updating my system I get an error every time I ran functions for sbm inference.
Running the following script
from graph_tool.all import *
g = collection.data["football"]
state = minimize_blockmodel_dl(g)
I get
/usr/include/c++/12.2.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = std::tuple<std::vector<double, std::allocator<double> >, std::vector<double, std::allocator<double> > >; _Alloc = std::allocator<std::tuple<std::vector<double, std::allocator<double> >, std::vector<double, std::allocator<double> > > >; reference = std::tuple<std::vector<double, std::allocator<double> >, std::vector<double, std::allocator<double> > >&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Aborted (core dumped)
The gdb backtrace for the script
Starting program: /usr/bin/python test.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Detaching after vfork from child process 324076]
[Detaching after vfork from child process 324077]
Error while mapping shared library sections:
`/usr/lib': not in executable format: file format not recognized
Program received signal SIGABRT, Aborted.
0x00007ffff78a149c in ?? () from /usr/lib/libc.so.6
#0 0x00007ffff78a149c in () at /usr/lib/libc.so.6
#1 0x00007ffff7851958 in raise () at /usr/lib/libc.so.6
#2 0x00007ffff783b53d in abort () at /usr/lib/libc.so.6
#3 0x00007fffd1cd2112 in std::__glibcxx_assert_fail(char const*, int, char const*, char const*)
(file=<optimized out>, line=<optimized out>, function=<optimized out>, condition=<optimized out>) at /usr/src/debug/gcc/libstdc++-v3/src/c++11/debug.cc:60
#4 0x00007fffc2dba710 in ()
at /usr/lib/python3.10/site-packages/graph_tool/inference/libgraph_tool_inference.so
#5 0x00007fffc3317f0e in ()
at /usr/lib/python3.10/site-packages/graph_tool/inference/libgraph_tool_inference.so
#6 0x00007fffc331a358 in ()
at /usr/lib/python3.10/site-packages/graph_tool/inference/libgraph_tool_inference.so
#7 0x00007fffc331dca0 in ()
at /usr/lib/python3.10/site-packages/graph_tool/inference/libgraph_tool_inference.so
#8 0x00007fffc32e64fc in do_multilevel_mcmc_sweep(boost::python::api::object, boost::python::api::object, pcg_detail::extended<(unsigned char)10, (unsigned char)16, pcg_detail::engine<unsigned long, unsigned __int128, pcg_detail::xsl_rr_mixin<unsigned long, unsigned __int128>, false, pcg_detail::specific_stream<unsigned __int128>, pcg_detail::default_multiplier<unsigned __int128> >, pcg_detail::engine<unsigned long, unsigned long, pcg_detail::rxs_m_xs_mixin<unsigned long, unsigned long>, true, pcg_detail::oneseq_stream<unsigned long>, pcg_detail::default_multiplier<unsigned long> >, true>&) ()
at /usr/lib/python3.10/site-packages/graph_tool/inference/libgraph_tool_inference.so
#9 0x00007fffc2eebb01 in ()
at /usr/lib/python3.10/site-packages/graph_tool/inference/libgraph_tool_inference.so
#10 0x00007fffd474cab2 in boost::python::objects::function::call(_object*, _object*) const () at /usr/lib/libboost_python310.so.1.80.0
#11 0x00007fffd474ce8d in () at /usr/lib/libboost_python310.so.1.80.0
#12 0x00007fffd474b263 in boost::python::detail::exception_handler::operator()(boost::function0<void> const&) const () at /usr/lib/libboost_python310.so.1.80.0
#13 0x00007fffd282f948 in ()
at /usr/lib/python3.10/site-packages/graph_tool/libgraph_tool_core.so
#14 0x00007fffd282f918 in ()
at /usr/lib/python3.10/site-packages/graph_tool/libgraph_tool_core.so
#15 0x00007fffd282f8e8 in ()
at /usr/lib/python3.10/site-packages/graph_tool/libgraph_tool_core.so
#16 0x00007fffd4749dd1 in boost::python::handle_exception_impl(boost::function0<void>) () at /usr/lib/libboost_python310.so.1.80.0
#17 0x00007fffd4749ef7 in () at /usr/lib/libboost_python310.so.1.80.0
#18 0x00007ffff7b5024b in _PyObject_MakeTpCall ()
at /usr/lib/libpython3.10.so.1.0
#19 0x00007ffff7b4b58e in _PyEval_EvalFrameDefault ()
at /usr/lib/libpython3.10.so.1.0
#20 0x00007ffff7b56e29 in _PyFunction_Vectorcall ()
at /usr/lib/libpython3.10.so.1.0
#21 0x00007ffff7b465ba in _PyEval_EvalFrameDefault ()
at /usr/lib/libpython3.10.so.1.0
#22 0x00007ffff7b56e29 in _PyFunction_Vectorcall ()
at /usr/lib/libpython3.10.so.1.0
#23 0x00007ffff7b62c97 in PyObject_Call () at /usr/lib/libpython3.10.so.1.0
#24 0x00007ffff7b48c05 in _PyEval_EvalFrameDefault ()
at /usr/lib/libpython3.10.so.1.0
#25 0x00007ffff7b622b6 in () at /usr/lib/libpython3.10.so.1.0
#26 0x00007ffff7b62c97 in PyObject_Call () at /usr/lib/libpython3.10.so.1.0
#27 0x00007ffff7b48c05 in _PyEval_EvalFrameDefault ()
at /usr/lib/libpython3.10.so.1.0
#28 0x00007ffff7b56e29 in _PyFunction_Vectorcall ()
at /usr/lib/libpython3.10.so.1.0
#29 0x00007ffff7b46186 in _PyEval_EvalFrameDefault ()
at /usr/lib/libpython3.10.so.1.0
#30 0x00007ffff7b44dd0 in () at /usr/lib/libpython3.10.so.1.0
#31 0x00007ffff7bf3fb4 in PyEval_EvalCode () at /usr/lib/libpython3.10.so.1.0
#32 0x00007ffff7c039d3 in () at /usr/lib/libpython3.10.so.1.0
#33 0x00007ffff7bff36a in () at /usr/lib/libpython3.10.so.1.0
#34 0x00007ffff7aa273c in () at /usr/lib/libpython3.10.so.1.0
#35 0x00007ffff7aa23ed in _PyRun_SimpleFileObject ()
at /usr/lib/libpython3.10.so.1.0
#36 0x00007ffff7aa2da0 in _PyRun_AnyFileObject ()
at /usr/lib/libpython3.10.so.1.0
#37 0x00007ffff7c102ad in Py_RunMain () at /usr/lib/libpython3.10.so.1.0
#38 0x00007ffff7be547b in Py_BytesMain () at /usr/lib/libpython3.10.so.1.0
#39 0x00007ffff783c290 in () at /usr/lib/libc.so.6
#40 0x00007ffff783c34a in __libc_start_main () at /usr/lib/libc.so.6
#41 0x0000555555555045 in _start ()
Thanks in advance, Herlander