Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-2182

Assert at editor shutdown

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • Qt 3D Studio 2.1 BETA1
    • Editor Application
    • None
    • 1cd80688a0c23a1cfea07a757e4c4054d1fc3681

    Description

      Sometimes editor asserts at shutdown:

      Assertion thrown C:\dev\qt\NDD\qt3ds1\src\Runtime\Source\Qt3DSFoundation\Source\foundation\TrackingAllocator.cpp(38): mAllocations.size() == 0

      Presumably this indicates a memory leak.

      It is difficult to repro, and I have not been able to find a reliable sequence but I suspect it is related to perspective view somehow.

      1 qt_message_fatal qlogging.cpp 1836 0x7ffaeec3024b 
      2 QMessageLogger::fatal qlogging.cpp 880 0x7ffaeec2e9e2 
      3 qt3ds::Qt3DSAssert StudioApp.cpp 215 0x7ff6e38eb871 
      4 qt3ds::foundation::CAllocator::~CAllocator TrackingAllocator.cpp 38 0x7ff6e4465342 
      5 qt3ds::foundation::CAllocator::`vector deleting destructor' Qt3DStudio 0x7ff6e43d41c4 
      6 std::_Ref_count_obj<qt3ds::foundation::CAllocator>::_Destroy memory 913 0x7ff6e42dae63 
      7 std::_Ref_count_base::_Decref memory 113 0x7ff6e3907192 
      8 std::_Ptr_base<qt3ds::NVAllocatorCallback>::_Decref memory 339 0x7ff6e3bd7333 
      9 std::shared_ptr<qt3ds::NVAllocatorCallback>::~shared_ptr<qt3ds::NVAllocatorCallback> memory 567 0x7ff6e3bd712c 
      10 Q3DStudio::Foundation::SStudioFoundation::~SStudioFoundation Qt3DStudio 0x7ff6e3bd7167 
      11 CWGLRenderContext::~CWGLRenderContext WGLRenderContext.cpp 63 0x7ff6e3bd5e80 
      12 CWGLRenderContext::`scalar deleting destructor' Qt3DStudio 0x7ff6e3b678e7 
      13 std::_Ref_count_obj<CWGLRenderContext>::_Destroy memory 913 0x7ff6e3b6f2d7 
      14 std::_Ref_count_base::_Decref memory 113 0x7ff6e3907192 
      15 std::_Ptr_base<CWGLRenderContext>::_Decref memory 339 0x7ff6e3b6f023 
      16 std::shared_ptr<CWGLRenderContext>::~shared_ptr<CWGLRenderContext> memory 567 0x7ff6e3b6619c 
      17 std::shared_ptr<CWGLRenderContext>::operator= memory 555 0x7ff6e3b668cc 
      18 `anonymous namespace'::SRendererImpl::Close StudioRenderer.cpp 556 0x7ff6e3b67f92 
      19 CStudioApp::performShutdown StudioApp.cpp 267 0x7ff6e38ed710 
      20 QtPrivate::FunctorCall<QtPrivate::IndexesList<>,QtPrivate::List<>,void,void (__cdecl CStudioApp:: *)(void) __ptr64>::call qobjectdefs_impl.h 134 0x7ff6e3909561 
      21 QtPrivate::FunctionPointer<void (__cdecl CStudioApp:: *)(void) __ptr64>::call<QtPrivate::List<>,void> qobjectdefs_impl.h 168 0x7ff6e38fd18d 
      22 QtPrivate::QSlotObject<void (__cdecl CStudioApp:: *)(void) __ptr64,QtPrivate::List<>,void>::impl qobjectdefs_impl.h 397 0x7ff6e390aef6 
      23 QtPrivate::QSlotObjectBase::call qobjectdefs_impl.h 376 0x7ffaef027288 
      24 QSingleShotTimer::timerEvent qtimer.cpp 320 0x7ffaef0840e8 
      25 QObject::event qobject.cpp 1233 0x7ffaef0671a3 
      26 QApplicationPrivate::notify_helper qapplication.cpp 3727 0x7ffb067c778e 
      27 QApplication::notify qapplication.cpp 3099 0x7ffb067c222f 
      28 QCoreApplication::notifyInternal2 qcoreapplication.cpp 1048 0x7ffaef00e116 
      29 QCoreApplication::sendEvent qcoreapplication.h 234 0x7ffaef019632 
      30 QEventDispatcherWin32::event qeventdispatcher_win.cpp 1062 0x7ffaef0ce06b 
      31 QApplicationPrivate::notify_helper qapplication.cpp 3727 0x7ffb067c778e 
      32 QApplication::notify qapplication.cpp 3099 0x7ffb067c222f 
      33 QCoreApplication::notifyInternal2 qcoreapplication.cpp 1048 0x7ffaef00e116 
      34 QCoreApplication::sendEvent qcoreapplication.h 234 0x7ffaef019632 
      35 QCoreApplicationPrivate::sendPostedEvents qcoreapplication.cpp 1745 0x7ffaef00faad 
      36 QEventDispatcherWin32::sendPostedEvents qeventdispatcher_win.cpp 1085 0x7ffaef0ce22a 
      37 QWindowsGuiEventDispatcher::sendPostedEvents qwindowsguieventdispatcher.cpp 82 0x7ffaff1ad1d4 
      38 qt_internal_proc qeventdispatcher_win.cpp 239 0x7ffaef0cbfcb 
      39 CallWindowProcW USER32 0x7ffb3480b85d 
      40 DispatchMessageW USER32 0x7ffb3480b1ef 
      41 QEventDispatcherWin32::processEvents qeventdispatcher_win.cpp 630 0x7ffaef0cc94d 
      42 QWindowsGuiEventDispatcher::processEvents qwindowsguieventdispatcher.cpp 74 0x7ffaff1ad194 
      43 QEventLoop::processEvents qeventloop.cpp 137 0x7ffaef008293 
      44 QEventLoop::exec qeventloop.cpp 214 0x7ffaef0084ce 
      45 QCoreApplication::exec qcoreapplication.cpp 1336 0x7ffaef00bc5f 
      46 QGuiApplication::exec qguiapplication.cpp 1762 0x7ffaf280aea8 
      47 QApplication::exec qapplication.cpp 2902 0x7ffb067c1bfa 
      48 CStudioApp::runApplication StudioApp.cpp 690 0x7ff6e38ed905 
      49 CStudioApp::blankRunApplication StudioApp.cpp 627 0x7ff6e38ed98b 
      50 CStudioApp::run StudioApp.cpp 376 0x7ff6e38eca1d 
      51 main StudioApp.cpp 145 0x7ff6e38f752b 
      52 WinMain qtmain_win.cpp 104 0x7ff6e563a4bd 
      53 invoke_main exe_common.inl 99 0x7ff6e5636acd 
      54 __scrt_common_main_seh exe_common.inl 253 0x7ff6e5636997 
      55 __scrt_common_main exe_common.inl 296 0x7ff6e563685e 
      56 WinMainCRTStartup exe_winmain.cpp 17 0x7ff6e5636ae9 
      57 BaseThreadInitThunk KERNEL32 0x7ffb34ab1fe4 
      58 RtlUserThreadStart ntdll 0x7ffb353ecb31 
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jakangas Janne Kangas
            e0348803 Miikka Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes