Boost logo

Boost Users :

Subject: [Boost-users] problem of deserializing from a xml file
From: breadbread1984 (breadbread1984_at_[hidden])
Date: 2015-07-29 22:21:52

I am having problem deserializing from a file of a serialized object. An exception of
input stream error always occurs. The class of the object is pasted [here]
( The xml file is pasted [here]
( I tried debugging the program. The top few frames
of the back trace of the exception is as follows

#0 0x00007f8f9be4c267 in __GI_raise (sig=sig_at_entry=6) at
../sysdeps/unix/sysv/linux/raise.c:55 #1 0x00007f8f9be4deca in
__GI_abort () at abort.c:89 #2 0x00007f8f9c76006d in
__gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-
gnu/ #3 0x00007f8f9c75dee6 in ?? () from
/usr/lib/x86_64-linux-gnu/ #4 0x00007f8f9c75df31 in std::terminate() ()
from /usr/lib/x86_64-linux-gnu/ #5
 0x00007f8f9c75e149 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/
                                                          #6 0x00007f8f9e661734 in void
e::archive_exception const&) () from /usr/lib/x86_64-linux-
gnu/ #7 0x00007f8f9e67e2f7 in
const*) () from /usr/lib/x86_64-linux-gnu/ #8
 0x0000000000486ab4 in
ap<int, std::deque<Observation, std::allocator<Observation> >, std::less<int>,
std::allocator<std::pair<int const, std::deque<Observation,
std::allocator<Observation> > > > > > (this=0x7ffe12327440, t=...)
                            at /usr/include/boost/archive/basic_xml_iarchive.hpp:85

It seems the problem occurs when the std::map<int, std::deque<Observation,
std::allocator<Observation> > in Status is loaded. I can't step into frame #7 to
checkout the detail of the exception. Could anyone give a hint of the problem. Thanks!

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at