ucam-department-of-psychiatry / camcops

Cambridge Cognitive and Psychiatric Test Kit (CamCOPS)
Other
12 stars 8 forks source link

Possible memory leak in Qt's QScroller #363

Open RudolfCardinal opened 2 weeks ago

RudolfCardinal commented 2 weeks ago

Running CamCOPS with memory leak debugging (sudo apt install valgrind, then the "Memcheck" option from the Qt Creator menu) shows multiple instances of e.g.

16 bytes in 1 blocks are definitely lost in loss record <x> of <n> ... uifunc.cpp:559:0
32 bytes in 2 blocks are definitely lost in loss record <y> of <n> ... uifunc.cpp:559:0

This line is in the function void applyScrollGestures(QWidget* widget), and is

QScroller::grabGesture(widget, gesture_type);  // will ungrab any other

This is a known Qt bug:

Our action therefore likely to be: wait for the fix.