xournalpp icon indicating copy to clipboard operation
xournalpp copied to clipboard

Weird assert failure in std::chrono in VerticalToolView::on(SetVerticalShiftRequest)

Open alfranbe opened this issue 1 year ago • 2 comments

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

errorlog.20250314-202739.log

Additional Context

No response

alfranbe avatar Mar 17 '25 14:03 alfranbe

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...

bhennion avatar Mar 24 '25 07:03 bhennion

It only happened when I was editing that one particular pdf and hasn't happened again since then.

alfranbe avatar Mar 31 '25 09:03 alfranbe