https://bugs.kde.org/show_bug.cgi?id=311264

Jaak Ristioja <j...@ristioja.ee> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDSINFO                   |REOPENED
         Resolution|WAITINGFORINFO              |---
     Ever confirmed|0                           |1

--- Comment #7 from Jaak Ristioja <j...@ristioja.ee> ---
Yes, it has been almost 10 years now. Reopening this for the third time
already. I didn't manage to get it to crash, but valgrind does show some ugly
stuff:

$ valgrind --track-origins=yes --trace-children=yes /usr/bin/step 
==5801== Memcheck, a memory error detector
==5801== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==5801== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==5801== Command: /usr/bin/step
==5801== 
==5850== Memcheck, a memory error detector
==5850== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==5850== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==5850== Command: /bin/sh -c gnuplot\ -\ 2\>/dev/null
==5850== 
==5850== 
==5850== HEAP SUMMARY:
==5850==     in use at exit: 159,342 bytes in 1,208 blocks
==5850==   total heap usage: 1,363 allocs, 155 frees, 179,636 bytes allocated
==5850== 
==5850== LEAK SUMMARY:
==5850==    definitely lost: 0 bytes in 0 blocks
==5850==    indirectly lost: 0 bytes in 0 blocks
==5850==      possibly lost: 0 bytes in 0 blocks
==5850==    still reachable: 159,342 bytes in 1,208 blocks
==5850==         suppressed: 0 bytes in 0 blocks
==5850== Rerun with --leak-check=full to see details of leaked memory
==5850== 
==5850== For lists of detected and suppressed errors, rerun with: -s
==5850== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==5801== Conditional jump or move depends on uninitialised value(s)
==5801==    at 0x4A932C6: KnownVariable::set(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >) (Variable.cc:342)
==5801==    by 0x4A95479:
KnownVariable::KnownVariable(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
>, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >, bool, bool, bool)
(Variable.cc:280)
==5801==    by 0x4A3B26C: Calculator::loadDefinitions(char const*, bool, bool)
(Calculator-definitions.cc:1584)
==5801==    by 0x4A59595:
Calculator::loadGlobalDefinitions(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >) (Calculator-definitions.cc:130)
==5801==    by 0x4A598E9: Calculator::loadGlobalVariables()
(Calculator-definitions.cc:143)
==5801==    by 0x1C0483: UnitsCalc::UnitsCalc() (unitscalc.cc:63)
==5801==    by 0x1C0654: UnitsCalc::self() (unitscalc.cc:38)
==5801==    by 0x16BF9E: MainWindow::MainWindow() (mainwindow.cc:73)
==5801==    by 0x15412B: main (main.cc:79)
==5801==  Uninitialised value was created by a heap allocation
==5801==    at 0x48460E3: operator new(unsigned long) (vg_replace_malloc.c:422)
==5801==    by 0x4A3B212: Calculator::loadDefinitions(char const*, bool, bool)
(Calculator-definitions.cc:1584)
==5801==    by 0x4A59595:
Calculator::loadGlobalDefinitions(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >) (Calculator-definitions.cc:130)
==5801==    by 0x4A598E9: Calculator::loadGlobalVariables()
(Calculator-definitions.cc:143)
==5801==    by 0x1C0483: UnitsCalc::UnitsCalc() (unitscalc.cc:63)
==5801==    by 0x1C0654: UnitsCalc::self() (unitscalc.cc:38)
==5801==    by 0x16BF9E: MainWindow::MainWindow() (mainwindow.cc:73)
==5801==    by 0x15412B: main (main.cc:79)
==5801== 
QTextBrowser: No document for objinfo:World
QTextBrowser: No document for objinfo:World
QTextBrowser: No document for objinfo:Disk
==5801== Conditional jump or move depends on uninitialised value(s)
==5801==    at 0xB4F9086:
QtWaylandClient::QWaylandInputDevice::Keyboard::keyboard_key(unsigned int,
unsigned int, unsigned int, unsigned int) (qwaylandinputdevice.cpp:1275)
==5801==    by 0xBA4667D: ffi_call_unix64 (unix64.S:105)
==5801==    by 0xBA459DE: ffi_call_int (ffi64.c:672)
==5801==    by 0xB5EDCA0: wl_closure_invoke (connection.c:1025)
==5801==    by 0xB5E9F89: dispatch_event.isra.0 (wayland-client.c:1595)
==5801==    by 0xB5EB9CB: dispatch_queue (wayland-client.c:1741)
==5801==    by 0xB5EB9CB: wl_display_dispatch_queue_pending
(wayland-client.c:1983)
==5801==    by 0xB4F9D69: QtWaylandClient::QWaylandDisplay::flushRequests()
(qwaylanddisplay.cpp:253)
==5801==    by 0x68D8F53: QObject::event(QEvent*) (qobject.cpp:1314)
==5801==    by 0x59E0AF6: QApplicationPrivate::notify_helper(QObject*, QEvent*)
(qapplication.cpp:3637)
==5801==    by 0x68A9037: QCoreApplication::notifyInternal2(QObject*, QEvent*)
(qcoreapplication.cpp:1064)
==5801==    by 0x68AC83D: QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) (qcoreapplication.cpp:1821)
==5801==    by 0x6903D06: postEventSourceDispatch(_GSource*, int (*)(void*),
void*) (qeventdispatcher_glib.cpp:277)
==5801==  Uninitialised value was created by a heap allocation
==5801==    at 0x48460E3: operator new(unsigned long) (vg_replace_malloc.c:422)
==5801==    by 0xB4F86B9: createKeyboard (qwaylandinputdevice.cpp:471)
==5801==    by 0xB4F86B9:
QtWaylandClient::QWaylandInputDevice::seat_capabilities(unsigned int)
(qwaylandinputdevice.cpp:438)
==5801==    by 0xBA4667D: ffi_call_unix64 (unix64.S:105)
==5801==    by 0xBA459DE: ffi_call_int (ffi64.c:672)
==5801==    by 0xB5EDCA0: wl_closure_invoke (connection.c:1025)
==5801==    by 0xB5E9F89: dispatch_event.isra.0 (wayland-client.c:1595)
==5801==    by 0xB5EB9CB: dispatch_queue (wayland-client.c:1741)
==5801==    by 0xB5EB9CB: wl_display_dispatch_queue_pending
(wayland-client.c:1983)
==5801==    by 0xB5EBF4E: wl_display_roundtrip_queue (wayland-client.c:1370)
==5801==    by 0xB4FC9BE:
QtWaylandClient::QWaylandDisplay::registry_global(unsigned int, QString const&,
unsigned int) (qwaylanddisplay.cpp:530)
==5801==    by 0xB52408D: QtWayland::wl_registry::handle_global(void*,
wl_registry*, unsigned int, char const*, unsigned int)
(qwayland-wayland.cpp:94)
==5801==    by 0xBA4667D: ffi_call_unix64 (unix64.S:105)
==5801==    by 0xBA459DE: ffi_call_int (ffi64.c:672)
==5801== 
QTextBrowser: No document for objinfo:
QTextBrowser: No document for objinfo:Disk
QTextBrowser: No document for objinfo:Disk
QTextBrowser: No document for objinfo:World
QTextBrowser: No document for objinfo:Box
QTextBrowser: No document for objinfo:Polygon
QTextBrowser: No document for objinfo:Spring
org.kde.kf5.kwindowsystem.kwayland: Failed to recreate shadow for
QWidgetWindow(0x22861cd0, name="qtooltip_labelWindow")
QTextBrowser: No document for objinfo:Polygon
QTextBrowser: No document for objinfo:Spring
QTextBrowser: No document for objinfo:Spring
QTextBrowser: No document for objinfo:Spring
QTextBrowser: No document for objinfo:Spring
QTextBrowser: No document for objinfo:Spring
QTextBrowser: No document for objinfo:Spring
FPS: 8.443094
QTextBrowser: No document for objinfo:Gas
QUndoStack::endMacro(): no matching beginMacro()
QTextBrowser: No document for objinfo:Box
QTextBrowser: No document for objinfo:Spring
QTextBrowser: No document for objinfo:Polygon
QTextBrowser: No document for objinfo:Disk
QTextBrowser: No document for objinfo:Disk
QTextBrowser: No document for objinfo:Polygon
qt.qpa.wayland: setGrabPopup called with a parent,
QtWaylandClient::QWaylandXdgSurface(0xbc11530) which does not match the current
topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x22f0ecf0)
According to the xdg-shell protocol, this is not allowed. The wayland QPA
plugin is currently handling it by setting the parent to the topmost grabbing
popup. Note, however, that this may cause positioning errors and popups closing
unxpectedly because xdg-shell mandate that child popups close before parents
FPS: 8.058018
QTextBrowser: No document for objinfo:Gas
QTextBrowser: No document for objinfo:Spring
==5801== Invalid read of size 8
==5801==    at 0x194B89: vectorToPoint (stepgraphicsitem.h:109)
==5801==    by 0x194B89: ParticleGraphicsItem::worldDataChanged(bool)
(particlegraphics.cc:118)
==5801==    by 0x177FC7: WorldScene::worldDataChanged(bool) (worldscene.cc:392)
==5801==    by 0x68E1FA5: call (qobjectdefs_impl.h:398)
==5801==    by 0x68E1FA5: void doActivate<false>(QObject*, int, void**)
(qobject.cpp:3886)
==5801==    by 0x15E6B2: WorldModel::worldDataChanged(bool)
(moc_worldmodel.cpp:190)
==5801==    by 0x16EDB4: WorldModel::doEmitChanged() (worldmodel.cc:418)
==5801==    by 0x68E1FA5: call (qobjectdefs_impl.h:398)
==5801==    by 0x68E1FA5: void doActivate<false>(QObject*, int, void**)
(qobject.cpp:3886)
==5801==    by 0x68E6E6D: QTimer::timeout(QTimer::QPrivateSignal)
(moc_qtimer.cpp:208)
==5801==    by 0x68D8E5E: QObject::event(QEvent*) (qobject.cpp:1336)
==5801==    by 0x59E0AF6: QApplicationPrivate::notify_helper(QObject*, QEvent*)
(qapplication.cpp:3637)
==5801==    by 0x68A9037: QCoreApplication::notifyInternal2(QObject*, QEvent*)
(qcoreapplication.cpp:1064)
==5801==    by 0x690284D: QTimerInfoList::activateTimers()
(qtimerinfo_unix.cpp:643)
==5801==    by 0x69031A0: timerSourceDispatch (qeventdispatcher_glib.cpp:183)
==5801==    by 0x69031A0: idleTimerSourceDispatch(_GSource*, int (*)(void*),
void*) (qeventdispatcher_glib.cpp:230)
==5801==  Address 0x22fff2e8 is 72 bytes inside a block of size 128 free'd
==5801==    at 0x48484C3: free (vg_replace_malloc.c:872)
==5801==    by 0x1C7E3D: StepCore::ItemGroup::clear() (itemgroup.cc:85)
==5801==    by 0x1C7E86: StepCore::ItemGroup::~ItemGroup() (itemgroup.cc:93)
==5801==    by 0x1E07C6: ~Gas (gas.h:170)
==5801==    by 0x1E07C6: StepCore::Gas::~Gas() (gas.h:170)
==5801==    by 0x172A21: ~CommandNewItem (worldmodel.cc:131)
==5801==    by 0x172A21: ~CommandNewItem (worldmodel.cc:131)
==5801==    by 0x172A21: pushCommand (worldmodel.cc:686)
==5801==    by 0x172A21: WorldModel::deleteItem(StepCore::Item*)
(worldmodel.cc:618)
==5801==    by 0x172F12: WorldModel::deleteSelectedItems() (worldmodel.cc:643)
==5801==    by 0x68E1FFB: void doActivate<false>(QObject*, int, void**)
(qobject.cpp:3898)
==5801==    by 0x59D9C85: QAction::triggered(bool) (moc_qaction.cpp:379)
==5801==    by 0x59DCB03: QAction::activate(QAction::ActionEvent)
(qaction.cpp:1161)
==5801==    by 0x59DD756: event (qaction.cpp:1086)
==5801==    by 0x59DD756: QAction::event(QEvent*) (qaction.cpp:1075)
==5801==    by 0x59E0AF6: QApplicationPrivate::notify_helper(QObject*, QEvent*)
(qapplication.cpp:3637)
==5801==    by 0x68A9037: QCoreApplication::notifyInternal2(QObject*, QEvent*)
(qcoreapplication.cpp:1064)
==5801==  Block was alloc'd at
==5801==    at 0x48458E9: malloc (vg_replace_malloc.c:381)
==5801==    by 0x1E26F7: aligned_malloc (Memory.h:182)
==5801==    by 0x1E26F7: conditional_aligned_malloc<true> (Memory.h:241)
==5801==    by 0x1E26F7: operator new (gas.h:41)
==5801==    by 0x1E26F7: StepCore::MetaObjectHelper<StepCore::GasParticle,
0>::cloneObjectHelper(StepCore::Object const&) (object.h:354)
==5801==    by 0x1C8431: cloneObject (object.h:203)
==5801==    by 0x1C8431: StepCore::ItemGroup::operator=(StepCore::ItemGroup
const&) [clone .part.0] (itemgroup.cc:119)
==5801==    by 0x1E0D08: Gas (gas.h:170)
==5801==    by 0x1E0D08: StepCore::MetaObjectHelper<StepCore::Gas,
0>::cloneObjectHelper(StepCore::Object const&) (object.h:354)
==5801==    by 0x1C8431: cloneObject (object.h:203)
==5801==    by 0x1C8431: StepCore::ItemGroup::operator=(StepCore::ItemGroup
const&) [clone .part.0] (itemgroup.cc:119)
==5801==    by 0x1C84F2: StepCore::ItemGroup::operator=(StepCore::ItemGroup
const&) (itemgroup.cc:111)
==5801==    by 0x1CB313: StepCore::World::operator=(StepCore::World const&)
[clone .part.0] (world.cc:109)
==5801==    by 0x174D12: CommandSimulate::CommandSimulate(WorldModel*)
(worldmodel.cc:281)
==5801==    by 0x174E52: WorldModel::simulationStart() (worldmodel.cc:934)
==5801==    by 0x68E1FA5: call (qobjectdefs_impl.h:398)
==5801==    by 0x68E1FA5: void doActivate<false>(QObject*, int, void**)
(qobject.cpp:3886)
==5801==    by 0x59D9C85: QAction::triggered(bool) (moc_qaction.cpp:379)
==5801==    by 0x59DCB03: QAction::activate(QAction::ActionEvent)
(qaction.cpp:1161)
==5801== 
==5801== Invalid read of size 8
==5801==    at 0x194B8E: ParticleGraphicsItem::worldDataChanged(bool)
(particlegraphics.cc:118)
==5801==    by 0x177FC7: WorldScene::worldDataChanged(bool) (worldscene.cc:392)
==5801==    by 0x68E1FA5: call (qobjectdefs_impl.h:398)
==5801==    by 0x68E1FA5: void doActivate<false>(QObject*, int, void**)
(qobject.cpp:3886)
==5801==    by 0x15E6B2: WorldModel::worldDataChanged(bool)
(moc_worldmodel.cpp:190)
==5801==    by 0x16EDB4: WorldModel::doEmitChanged() (worldmodel.cc:418)
==5801==    by 0x68E1FA5: call (qobjectdefs_impl.h:398)
==5801==    by 0x68E1FA5: void doActivate<false>(QObject*, int, void**)
(qobject.cpp:3886)
==5801==    by 0x68E6E6D: QTimer::timeout(QTimer::QPrivateSignal)
(moc_qtimer.cpp:208)
==5801==    by 0x68D8E5E: QObject::event(QEvent*) (qobject.cpp:1336)
==5801==    by 0x59E0AF6: QApplicationPrivate::notify_helper(QObject*, QEvent*)
(qapplication.cpp:3637)
==5801==    by 0x68A9037: QCoreApplication::notifyInternal2(QObject*, QEvent*)
(qcoreapplication.cpp:1064)
==5801==    by 0x690284D: QTimerInfoList::activateTimers()
(qtimerinfo_unix.cpp:643)
==5801==    by 0x69031A0: timerSourceDispatch (qeventdispatcher_glib.cpp:183)
==5801==    by 0x69031A0: idleTimerSourceDispatch(_GSource*, int (*)(void*),
void*) (qeventdispatcher_glib.cpp:230)
==5801==  Address 0x22fff2e0 is 64 bytes inside a block of size 128 free'd
==5801==    at 0x48484C3: free (vg_replace_malloc.c:872)
==5801==    by 0x1C7E3D: StepCore::ItemGroup::clear() (itemgroup.cc:85)
==5801==    by 0x1C7E86: StepCore::ItemGroup::~ItemGroup() (itemgroup.cc:93)
==5801==    by 0x1E07C6: ~Gas (gas.h:170)
==5801==    by 0x1E07C6: StepCore::Gas::~Gas() (gas.h:170)
==5801==    by 0x172A21: ~CommandNewItem (worldmodel.cc:131)
==5801==    by 0x172A21: ~CommandNewItem (worldmodel.cc:131)
==5801==    by 0x172A21: pushCommand (worldmodel.cc:686)
==5801==    by 0x172A21: WorldModel::deleteItem(StepCore::Item*)
(worldmodel.cc:618)
==5801==    by 0x172F12: WorldModel::deleteSelectedItems() (worldmodel.cc:643)
==5801==    by 0x68E1FFB: void doActivate<false>(QObject*, int, void**)
(qobject.cpp:3898)
==5801==    by 0x59D9C85: QAction::triggered(bool) (moc_qaction.cpp:379)
==5801==    by 0x59DCB03: QAction::activate(QAction::ActionEvent)
(qaction.cpp:1161)
==5801==    by 0x59DD756: event (qaction.cpp:1086)
==5801==    by 0x59DD756: QAction::event(QEvent*) (qaction.cpp:1075)
==5801==    by 0x59E0AF6: QApplicationPrivate::notify_helper(QObject*, QEvent*)
(qapplication.cpp:3637)
==5801==    by 0x68A9037: QCoreApplication::notifyInternal2(QObject*, QEvent*)
(qcoreapplication.cpp:1064)
==5801==  Block was alloc'd at
==5801==    at 0x48458E9: malloc (vg_replace_malloc.c:381)
==5801==    by 0x1E26F7: aligned_malloc (Memory.h:182)
==5801==    by 0x1E26F7: conditional_aligned_malloc<true> (Memory.h:241)
==5801==    by 0x1E26F7: operator new (gas.h:41)
==5801==    by 0x1E26F7: StepCore::MetaObjectHelper<StepCore::GasParticle,
0>::cloneObjectHelper(StepCore::Object const&) (object.h:354)
==5801==    by 0x1C8431: cloneObject (object.h:203)
==5801==    by 0x1C8431: StepCore::ItemGroup::operator=(StepCore::ItemGroup
const&) [clone .part.0] (itemgroup.cc:119)
==5801==    by 0x1E0D08: Gas (gas.h:170)
==5801==    by 0x1E0D08: StepCore::MetaObjectHelper<StepCore::Gas,
0>::cloneObjectHelper(StepCore::Object const&) (object.h:354)
==5801==    by 0x1C8431: cloneObject (object.h:203)
==5801==    by 0x1C8431: StepCore::ItemGroup::operator=(StepCore::ItemGroup
const&) [clone .part.0] (itemgroup.cc:119)
==5801==    by 0x1C84F2: StepCore::ItemGroup::operator=(StepCore::ItemGroup
const&) (itemgroup.cc:111)
==5801==    by 0x1CB313: StepCore::World::operator=(StepCore::World const&)
[clone .part.0] (world.cc:109)
==5801==    by 0x174D12: CommandSimulate::CommandSimulate(WorldModel*)
(worldmodel.cc:281)
==5801==    by 0x174E52: WorldModel::simulationStart() (worldmodel.cc:934)
==5801==    by 0x68E1FA5: call (qobjectdefs_impl.h:398)
==5801==    by 0x68E1FA5: void doActivate<false>(QObject*, int, void**)
(qobject.cpp:3886)
==5801==    by 0x59D9C85: QAction::triggered(bool) (moc_qaction.cpp:379)
==5801==    by 0x59DCB03: QAction::activate(QAction::ActionEvent)
(qaction.cpp:1161)
==5801== 
==5801== Invalid read of size 4
==5801==    at 0x194D33: ParticleGraphicsItem::paint(QPainter*,
QStyleOptionGraphicsItem const*, QWidget*) (particlegraphics.cc:61)
==5801==    by 0x5D3F470: QGraphicsScenePrivate::draw(QGraphicsItem*,
QPainter*, QTransform const*, QTransform const*, QRegion*, QWidget*, double,
QTransform const*, bool, bool) (qgraphicsscene.cpp:4981)
==5801==    by 0x5D403C2:
QGraphicsScenePrivate::drawSubtreeRecursive(QGraphicsItem*, QPainter*,
QTransform const*, QRegion*, QWidget*, double, QTransform const*)
(qgraphicsscene.cpp:4873)
==5801==    by 0x5D40A30: QGraphicsScenePrivate::drawItems(QPainter*,
QTransform const*, QRegion*, QWidget*) (qgraphicsscene.cpp:4735)
==5801==    by 0x5D666DE: QGraphicsView::paintEvent(QPaintEvent*)
(qgraphicsview.cpp:3561)
==5801==    by 0x5A24F7D: QWidget::event(QEvent*) (qwidget.cpp:9033)
==5801==    by 0x5AD56C1: QFrame::event(QEvent*) (qframe.cpp:550)
==5801==    by 0x68A8D94: sendThroughObjectEventFilters
(qcoreapplication.cpp:1190)
==5801==    by 0x68A8D94:
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)
(qcoreapplication.cpp:1179)
==5801==    by 0x59E0AE5: QApplicationPrivate::notify_helper(QObject*, QEvent*)
(qapplication.cpp:3631)
==5801==    by 0x68A9037: QCoreApplication::notifyInternal2(QObject*, QEvent*)
(qcoreapplication.cpp:1064)
==5801==    by 0x5A1CDB9: QWidgetPrivate::sendPaintEvent(QRegion const&)
(qwidget.cpp:5467)
==5801==    by 0x5A1D5E9: QWidgetPrivate::drawWidget(QPaintDevice*, QRegion
const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*,
QWidgetRepaintManager*) (qwidget.cpp:5417)
==5801==  Address 0x22e25ab8 is 40 bytes inside a block of size 128 free'd
==5801==    at 0x48484C3: free (vg_replace_malloc.c:872)
==5801==    by 0x1C7E3D: StepCore::ItemGroup::clear() (itemgroup.cc:85)
==5801==    by 0x1C7E86: StepCore::ItemGroup::~ItemGroup() (itemgroup.cc:93)
==5801==    by 0x1E07C6: ~Gas (gas.h:170)
==5801==    by 0x1E07C6: StepCore::Gas::~Gas() (gas.h:170)
==5801==    by 0x172A21: ~CommandNewItem (worldmodel.cc:131)
==5801==    by 0x172A21: ~CommandNewItem (worldmodel.cc:131)
==5801==    by 0x172A21: pushCommand (worldmodel.cc:686)
==5801==    by 0x172A21: WorldModel::deleteItem(StepCore::Item*)
(worldmodel.cc:618)
==5801==    by 0x172F12: WorldModel::deleteSelectedItems() (worldmodel.cc:643)
==5801==    by 0x68E1FFB: void doActivate<false>(QObject*, int, void**)
(qobject.cpp:3898)
==5801==    by 0x59D9C85: QAction::triggered(bool) (moc_qaction.cpp:379)
==5801==    by 0x59DCB03: QAction::activate(QAction::ActionEvent)
(qaction.cpp:1161)
==5801==    by 0x59DD756: event (qaction.cpp:1086)
==5801==    by 0x59DD756: QAction::event(QEvent*) (qaction.cpp:1075)
==5801==    by 0x59E0AF6: QApplicationPrivate::notify_helper(QObject*, QEvent*)
(qapplication.cpp:3637)
==5801==    by 0x68A9037: QCoreApplication::notifyInternal2(QObject*, QEvent*)
(qcoreapplication.cpp:1064)
==5801==  Block was alloc'd at
==5801==    at 0x48458E9: malloc (vg_replace_malloc.c:381)
==5801==    by 0x1E26F7: aligned_malloc (Memory.h:182)
==5801==    by 0x1E26F7: conditional_aligned_malloc<true> (Memory.h:241)
==5801==    by 0x1E26F7: operator new (gas.h:41)
==5801==    by 0x1E26F7: StepCore::MetaObjectHelper<StepCore::GasParticle,
0>::cloneObjectHelper(StepCore::Object const&) (object.h:354)
==5801==    by 0x1C8431: cloneObject (object.h:203)
==5801==    by 0x1C8431: StepCore::ItemGroup::operator=(StepCore::ItemGroup
const&) [clone .part.0] (itemgroup.cc:119)
==5801==    by 0x1E0D08: Gas (gas.h:170)
==5801==    by 0x1E0D08: StepCore::MetaObjectHelper<StepCore::Gas,
0>::cloneObjectHelper(StepCore::Object const&) (object.h:354)
==5801==    by 0x1C8431: cloneObject (object.h:203)
==5801==    by 0x1C8431: StepCore::ItemGroup::operator=(StepCore::ItemGroup
const&) [clone .part.0] (itemgroup.cc:119)
==5801==    by 0x1C84F2: StepCore::ItemGroup::operator=(StepCore::ItemGroup
const&) (itemgroup.cc:111)
==5801==    by 0x1CB313: StepCore::World::operator=(StepCore::World const&)
[clone .part.0] (world.cc:109)
==5801==    by 0x174D12: CommandSimulate::CommandSimulate(WorldModel*)
(worldmodel.cc:281)
==5801==    by 0x174E52: WorldModel::simulationStart() (worldmodel.cc:934)
==5801==    by 0x68E1FA5: call (qobjectdefs_impl.h:398)
==5801==    by 0x68E1FA5: void doActivate<false>(QObject*, int, void**)
(qobject.cpp:3886)
==5801==    by 0x59D9C85: QAction::triggered(bool) (moc_qaction.cpp:379)
==5801==    by 0x59DCB03: QAction::activate(QAction::ActionEvent)
(qaction.cpp:1161)
==5801== 
FPS: 7.446016
FPS: 7.095218
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
FPS: 8.499065
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
QTransform::fromTranslate with NaN called
FPS: 8.595496
qt.qpa.wayland: setGrabPopup called with a parent,
QtWaylandClient::QWaylandXdgSurface(0xbc11530) which does not match the current
topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x230df8a0)
According to the xdg-shell protocol, this is not allowed. The wayland QPA
plugin is currently handling it by setting the parent to the topmost grabbing
popup. Note, however, that this may cause positioning errors and popups closing
unxpectedly because xdg-shell mandate that child popups close before parents
qt.qpa.wayland: setGrabPopup called with a parent,
QtWaylandClient::QWaylandXdgSurface(0xbc11530) which does not match the current
topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x230df8a0)
According to the xdg-shell protocol, this is not allowed. The wayland QPA
plugin is currently handling it by setting the parent to the topmost grabbing
popup. Note, however, that this may cause positioning errors and popups closing
unxpectedly because xdg-shell mandate that child popups close before parents
FPS: 7.572316
FPS: 8.382230
FPS: 8.445946
FPS: 9.803922
FPS: 10.195759
FPS: 10.208248
==5801== Invalid read of size 4
==5801==    at 0x6FFD3E4: pthread_mutex_lock@@GLIBC_2.2.5
(pthread_mutex_lock.c:80)
==5801==    by 0xB5EA1BE: wl_event_queue_destroy (wayland-client.c:327)
==5801==    by 0xB4FD97B: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:384)
==5801==    by 0xB4FDFDC: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:385)
==5801==    by 0xB4EB68C:
QtWaylandClient::QWaylandIntegration::~QWaylandIntegration()
(qwaylandintegration.cpp:132)
==5801==    by 0x60921AC: QGuiApplicationPrivate::~QGuiApplicationPrivate()
(qguiapplication.cpp:1728)
==5801==    by 0x59DF4BC: QApplicationPrivate::~QApplicationPrivate()
(qapplication.cpp:163)
==5801==    by 0x154234: main (main.cc:95)
==5801==  Address 0xbb21758 is 248 bytes inside a block of size 328 free'd
==5801==    at 0x48484C3: free (vg_replace_malloc.c:872)
==5801==    by 0xB4FD96C: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:381)
==5801==    by 0xB4FDFDC: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:385)
==5801==    by 0xB4EB68C:
QtWaylandClient::QWaylandIntegration::~QWaylandIntegration()
(qwaylandintegration.cpp:132)
==5801==    by 0x60921AC: QGuiApplicationPrivate::~QGuiApplicationPrivate()
(qguiapplication.cpp:1728)
==5801==    by 0x59DF4BC: QApplicationPrivate::~QApplicationPrivate()
(qapplication.cpp:163)
==5801==    by 0x154234: main (main.cc:95)
==5801==  Block was alloc'd at
==5801==    at 0x484ACC3: calloc (vg_replace_malloc.c:1328)
==5801==    by 0xB5EAC12: zalloc (wayland-private.h:234)
==5801==    by 0xB5EAC12: wl_display_connect_to_fd (wayland-client.c:1151)
==5801==    by 0xB5EAE5F: wl_display_connect (wayland-client.c:1272)
==5801==    by 0xB4FA4DC:
QtWaylandClient::QWaylandDisplay::QWaylandDisplay(QtWaylandClient::QWaylandIntegration*)
(qwaylanddisplay.cpp:338)
==5801==    by 0xB4EDA6E:
QtWaylandClient::QWaylandIntegration::QWaylandIntegration()
(qwaylandintegration.cpp:115)
==5801==    by 0x485951A:
QtWaylandClient::QWaylandIntegrationPlugin::create(QString const&, QStringList
const&) (main.cpp:59)
==5801==    by 0x6088960: QPlatformIntegrationFactory::create(QString const&,
QStringList const&, int&, char**, QString const&)
(qplatformintegrationfactory.cpp:71)
==5801==    by 0x60963AF: init_platform (qguiapplication.cpp:1223)
==5801==    by 0x60963AF: QGuiApplicationPrivate::createPlatformIntegration()
(qguiapplication.cpp:1481)
==5801==    by 0x6097DF7: QGuiApplicationPrivate::createEventDispatcher()
(qguiapplication.cpp:1498)
==5801==    by 0x68AFFD8: QCoreApplicationPrivate::init()
(qcoreapplication.cpp:835)
==5801==    by 0x609A004: QGuiApplicationPrivate::init()
(qguiapplication.cpp:1527)
==5801==    by 0x59E63DC: QApplicationPrivate::init() (qapplication.cpp:513)
==5801== 
==5801== Invalid read of size 4
==5801==    at 0x6FFCC8D: __pthread_mutex_lock_full (pthread_mutex_lock.c:186)
==5801==    by 0xB5EA1BE: wl_event_queue_destroy (wayland-client.c:327)
==5801==    by 0xB4FD97B: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:384)
==5801==    by 0xB4FDFDC: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:385)
==5801==    by 0xB4EB68C:
QtWaylandClient::QWaylandIntegration::~QWaylandIntegration()
(qwaylandintegration.cpp:132)
==5801==    by 0x60921AC: QGuiApplicationPrivate::~QGuiApplicationPrivate()
(qguiapplication.cpp:1728)
==5801==    by 0x59DF4BC: QApplicationPrivate::~QApplicationPrivate()
(qapplication.cpp:163)
==5801==    by 0x154234: main (main.cc:95)
==5801==  Address 0xbb21758 is 248 bytes inside a block of size 328 free'd
==5801==    at 0x48484C3: free (vg_replace_malloc.c:872)
==5801==    by 0xB4FD96C: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:381)
==5801==    by 0xB4FDFDC: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:385)
==5801==    by 0xB4EB68C:
QtWaylandClient::QWaylandIntegration::~QWaylandIntegration()
(qwaylandintegration.cpp:132)
==5801==    by 0x60921AC: QGuiApplicationPrivate::~QGuiApplicationPrivate()
(qguiapplication.cpp:1728)
==5801==    by 0x59DF4BC: QApplicationPrivate::~QApplicationPrivate()
(qapplication.cpp:163)
==5801==    by 0x154234: main (main.cc:95)
==5801==  Block was alloc'd at
==5801==    at 0x484ACC3: calloc (vg_replace_malloc.c:1328)
==5801==    by 0xB5EAC12: zalloc (wayland-private.h:234)
==5801==    by 0xB5EAC12: wl_display_connect_to_fd (wayland-client.c:1151)
==5801==    by 0xB5EAE5F: wl_display_connect (wayland-client.c:1272)
==5801==    by 0xB4FA4DC:
QtWaylandClient::QWaylandDisplay::QWaylandDisplay(QtWaylandClient::QWaylandIntegration*)
(qwaylanddisplay.cpp:338)
==5801==    by 0xB4EDA6E:
QtWaylandClient::QWaylandIntegration::QWaylandIntegration()
(qwaylandintegration.cpp:115)
==5801==    by 0x485951A:
QtWaylandClient::QWaylandIntegrationPlugin::create(QString const&, QStringList
const&) (main.cpp:59)
==5801==    by 0x6088960: QPlatformIntegrationFactory::create(QString const&,
QStringList const&, int&, char**, QString const&)
(qplatformintegrationfactory.cpp:71)
==5801==    by 0x60963AF: init_platform (qguiapplication.cpp:1223)
==5801==    by 0x60963AF: QGuiApplicationPrivate::createPlatformIntegration()
(qguiapplication.cpp:1481)
==5801==    by 0x6097DF7: QGuiApplicationPrivate::createEventDispatcher()
(qguiapplication.cpp:1498)
==5801==    by 0x68AFFD8: QCoreApplicationPrivate::init()
(qcoreapplication.cpp:835)
==5801==    by 0x609A004: QGuiApplicationPrivate::init()
(qguiapplication.cpp:1527)
==5801==    by 0x59E63DC: QApplicationPrivate::init() (qapplication.cpp:513)
==5801== 
==5801== Invalid read of size 4
==5801==    at 0x6FFEE84: __pthread_mutex_unlock_usercnt
(pthread_mutex_unlock.c:51)
==5801==    by 0xB4FD97B: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:384)
==5801==    by 0xB4FDFDC: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:385)
==5801==    by 0xB4EB68C:
QtWaylandClient::QWaylandIntegration::~QWaylandIntegration()
(qwaylandintegration.cpp:132)
==5801==    by 0x60921AC: QGuiApplicationPrivate::~QGuiApplicationPrivate()
(qguiapplication.cpp:1728)
==5801==    by 0x59DF4BC: QApplicationPrivate::~QApplicationPrivate()
(qapplication.cpp:163)
==5801==    by 0x154234: main (main.cc:95)
==5801==  Address 0xbb21758 is 248 bytes inside a block of size 328 free'd
==5801==    at 0x48484C3: free (vg_replace_malloc.c:872)
==5801==    by 0xB4FD96C: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:381)
==5801==    by 0xB4FDFDC: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:385)
==5801==    by 0xB4EB68C:
QtWaylandClient::QWaylandIntegration::~QWaylandIntegration()
(qwaylandintegration.cpp:132)
==5801==    by 0x60921AC: QGuiApplicationPrivate::~QGuiApplicationPrivate()
(qguiapplication.cpp:1728)
==5801==    by 0x59DF4BC: QApplicationPrivate::~QApplicationPrivate()
(qapplication.cpp:163)
==5801==    by 0x154234: main (main.cc:95)
==5801==  Block was alloc'd at
==5801==    at 0x484ACC3: calloc (vg_replace_malloc.c:1328)
==5801==    by 0xB5EAC12: zalloc (wayland-private.h:234)
==5801==    by 0xB5EAC12: wl_display_connect_to_fd (wayland-client.c:1151)
==5801==    by 0xB5EAE5F: wl_display_connect (wayland-client.c:1272)
==5801==    by 0xB4FA4DC:
QtWaylandClient::QWaylandDisplay::QWaylandDisplay(QtWaylandClient::QWaylandIntegration*)
(qwaylanddisplay.cpp:338)
==5801==    by 0xB4EDA6E:
QtWaylandClient::QWaylandIntegration::QWaylandIntegration()
(qwaylandintegration.cpp:115)
==5801==    by 0x485951A:
QtWaylandClient::QWaylandIntegrationPlugin::create(QString const&, QStringList
const&) (main.cpp:59)
==5801==    by 0x6088960: QPlatformIntegrationFactory::create(QString const&,
QStringList const&, int&, char**, QString const&)
(qplatformintegrationfactory.cpp:71)
==5801==    by 0x60963AF: init_platform (qguiapplication.cpp:1223)
==5801==    by 0x60963AF: QGuiApplicationPrivate::createPlatformIntegration()
(qguiapplication.cpp:1481)
==5801==    by 0x6097DF7: QGuiApplicationPrivate::createEventDispatcher()
(qguiapplication.cpp:1498)
==5801==    by 0x68AFFD8: QCoreApplicationPrivate::init()
(qcoreapplication.cpp:835)
==5801==    by 0x609A004: QGuiApplicationPrivate::init()
(qguiapplication.cpp:1527)
==5801==    by 0x59E63DC: QApplicationPrivate::init() (qapplication.cpp:513)
==5801== 
==5801== Invalid read of size 4
==5801==    at 0x6FFEEE0: __pthread_mutex_unlock_usercnt
(pthread_mutex_unlock.c:55)
==5801==    by 0xB4FD97B: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:384)
==5801==    by 0xB4FDFDC: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:385)
==5801==    by 0xB4EB68C:
QtWaylandClient::QWaylandIntegration::~QWaylandIntegration()
(qwaylandintegration.cpp:132)
==5801==    by 0x60921AC: QGuiApplicationPrivate::~QGuiApplicationPrivate()
(qguiapplication.cpp:1728)
==5801==    by 0x59DF4BC: QApplicationPrivate::~QApplicationPrivate()
(qapplication.cpp:163)
==5801==    by 0x154234: main (main.cc:95)
==5801==  Address 0xbb21758 is 248 bytes inside a block of size 328 free'd
==5801==    at 0x48484C3: free (vg_replace_malloc.c:872)
==5801==    by 0xB4FD96C: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:381)
==5801==    by 0xB4FDFDC: QtWaylandClient::QWaylandDisplay::~QWaylandDisplay()
(qwaylanddisplay.cpp:385)
==5801==    by 0xB4EB68C:
QtWaylandClient::QWaylandIntegration::~QWaylandIntegration()
(qwaylandintegration.cpp:132)
==5801==    by 0x60921AC: QGuiApplicationPrivate::~QGuiApplicationPrivate()
(qguiapplication.cpp:1728)
==5801==    by 0x59DF4BC: QApplicationPrivate::~QApplicationPrivate()
(qapplication.cpp:163)
==5801==    by 0x154234: main (main.cc:95)
==5801==  Block was alloc'd at
==5801==    at 0x484ACC3: calloc (vg_replace_malloc.c:1328)
==5801==    by 0xB5EAC12: zalloc (wayland-private.h:234)
==5801==    by 0xB5EAC12: wl_display_connect_to_fd (wayland-client.c:1151)
==5801==    by 0xB5EAE5F: wl_display_connect (wayland-client.c:1272)
==5801==    by 0xB4FA4DC:
QtWaylandClient::QWaylandDisplay::QWaylandDisplay(QtWaylandClient::QWaylandIntegration*)
(qwaylanddisplay.cpp:338)
==5801==    by 0xB4EDA6E:
QtWaylandClient::QWaylandIntegration::QWaylandIntegration()
(qwaylandintegration.cpp:115)
==5801==    by 0x485951A:
QtWaylandClient::QWaylandIntegrationPlugin::create(QString const&, QStringList
const&) (main.cpp:59)
==5801==    by 0x6088960: QPlatformIntegrationFactory::create(QString const&,
QStringList const&, int&, char**, QString const&)
(qplatformintegrationfactory.cpp:71)
==5801==    by 0x60963AF: init_platform (qguiapplication.cpp:1223)
==5801==    by 0x60963AF: QGuiApplicationPrivate::createPlatformIntegration()
(qguiapplication.cpp:1481)
==5801==    by 0x6097DF7: QGuiApplicationPrivate::createEventDispatcher()
(qguiapplication.cpp:1498)
==5801==    by 0x68AFFD8: QCoreApplicationPrivate::init()
(qcoreapplication.cpp:835)
==5801==    by 0x609A004: QGuiApplicationPrivate::init()
(qguiapplication.cpp:1527)
==5801==    by 0x59E63DC: QApplicationPrivate::init() (qapplication.cpp:513)
==5801== 
==5801== 
==5801== HEAP SUMMARY:
==5801==     in use at exit: 1,369,332 bytes in 16,433 blocks
==5801==   total heap usage: 3,697,369 allocs, 3,680,936 frees, 942,475,726
bytes allocated
==5801== 
==5801== LEAK SUMMARY:
==5801==    definitely lost: 259,572 bytes in 857 blocks
==5801==    indirectly lost: 486,864 bytes in 6,258 blocks
==5801==      possibly lost: 0 bytes in 0 blocks
==5801==    still reachable: 622,896 bytes in 9,318 blocks
==5801==         suppressed: 0 bytes in 0 blocks
==5801== Rerun with --leak-check=full to see details of leaked memory
==5801== 
==5801== For lists of detected and suppressed errors, rerun with: -s
==5801== ERROR SUMMARY: 20306 errors from 9 contexts (suppressed: 0 from 0)

Version 22.08.3.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to