xournalpp
xournalpp copied to clipboard
Weird assert failure in std::chrono in VerticalToolView::on(SetVerticalShiftRequest)
Operating System
Linux
(Linux only) Distribution
Arch Linux
(Linux only) Desktop Environment
GNOME
(Linux Only) Display Server
X.Org
Installation Method
Pacman
Xournal++ Version
1.2.5
libgtk Version
3.24.48
Bug Description
I was anotating a long pdf and suddenly the program crashed.
Expected Behaviour
The program should not crash.
Steps to Reproduce
Additional Context
No response
The backtrance in the crash log is very weird
[bt] #5 /usr/lib/libstdc++.so.6(_ZNSt6chrono3_V212system_clock3nowEv+0) [0x7da0650d3f70]
std::chrono::_V2::system_clock::now() at /usr/src/debug/gcc/gcc/libstdc++-v3/src/c++11/chrono.cc:52
[bt] #6 /usr/bin/xournalpp(_ZN3xoj4view16VerticalToolView2onENS1_23SetVerticalShiftRequestEd+0x1b0) [0x586eb44a3450]
There is no call to std::chrono in VerticalToolView::on(SetVerticalShiftRequest), so it is probably something gcc added for debugging which caused the crash...
It only happened when I was editing that one particular pdf and hasn't happened again since then.