Random crashes from calculations
The application crashes seemingly randomly when doing calculations:
Thread 1 "kalk" received signal SIGABRT, Aborted.
0x00007ffff5a2334c in __pthread_kill_implementation () from /usr/lib/libc.so.6
(gdb) backtrace
#0 0x00007ffff5a2334c in __pthread_kill_implementation ()
from /usr/lib/libc.so.6
#1 0x00007ffff59d64b8 in raise () from /usr/lib/libc.so.6
#2 0x00007ffff59c0534 in abort () from /usr/lib/libc.so.6
#3 0x00007ffff5a17397 in __libc_message () from /usr/lib/libc.so.6
#4 0x00007ffff5a2d33c in malloc_printerr () from /usr/lib/libc.so.6
#5 0x00007ffff5a2f420 in _int_free () from /usr/lib/libc.so.6
#6 0x00007ffff5a31be3 in free () from /usr/lib/libc.so.6
#7 0x000055555556cf41 in __gnu_cxx::new_allocator<int>::deallocate (
this=0x5555555d7c78 <InputManager::inst()::singleton+24>,
__p=0x555556104a40, __t=16)
at /usr/include/c++/11.2.0/ext/new_allocator.h:145
#8 0x000055555556cf00 in std::allocator_traits<std::allocator<int> >::deallocate (__a=..., __p=0x555556104a40, __n=16)
at /usr/include/c++/11.2.0/bits/alloc_traits.h:492
#9 0x000055555556cea0 in std::_Vector_base<int, std::allocator<int> >::_M_deallocate (this=0x5555555d7c78 <InputManager::inst()::singleton+24>,
__p=0x555556104a40, __n=16)
at /usr/include/c++/11.2.0/bits/stl_vector.h:354
#10 0x000055555556fc3e in std::vector<int, std::allocator<int> >::_M_realloc_insert<int> (this=0x5555555d7c78 <InputManager::inst()::singleton+24>,
__position=80) at /usr/include/c++/11.2.0/bits/vector.tcc:500
--Type <RET> for more, q to quit, c to continue without paging--
nt> (this=0x5555555d7c78 <InputManager::inst()::singleton+24>) at /usr/include/c++/11.2.0/bits/vector.tcc:121
#12 0x000055555556f364 in std::vector<int, std::allocator<int> >::push_back (this=0x5555555d7c78 <InputManager::inst()::singleton+24>, __x=@0x7fffffff4760: 1)
at /usr/include/c++/11.2.0/bits/stl_vector.h:1204
#13 0x000055555556e120 in InputManager::append (this=0x5555555d7c60 <InputManager::inst()::singleton>, subexpression=...) at /home/devin/Flow/kde/kalk/src/inputmanager.cpp:70
#14 0x000055555556bc71 in InputManager::qt_static_metacall (_o=0x5555555d7c60 <InputManager::inst()::singleton>, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fffffff49b0)
at /home/devin/Flow/kde/kalk/build/src/kalklib_autogen/EWIEGA46WW/moc_inputmanager.cpp:129
#15 0x000055555556c0ad in InputManager::qt_metacall (this=0x5555555d7c60 <InputManager::inst()::singleton>, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fffffff49b0)
at /home/devin/Flow/kde/kalk/build/src/kalklib_autogen/EWIEGA46WW/moc_inputmanager.cpp:224
#16 0x00007ffff692d396 in ?? () from /usr/lib/libQt5Qml.so.5
#17 0x00007ffff683023d in ?? () from /usr/lib/libQt5Qml.so.5
#18 0x00007ffff6831182 in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const () from /usr/lib/libQt5Qml.so.5
#19 0x00007ffff685009e in QV4::Runtime::CallPropertyLookup::call(QV4::ExecutionEngine*, QV4::Value const&, unsigned int, QV4::Value*, int) () from /usr/lib/libQt5Qml.so.5
#20 0x00007fffac5139ae in ?? ()
#21 0x0000000000000000 in ?? ()