Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-66096

Application crash on exit when a QChart is created inside a DLL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.10.0
    • Fix Version/s: None
    • Component/s: Charts
    • Labels:
      None
    • Environment:
      OS: Windows 10 Home

      QtCreator: 4.5

      Qt 5.10

      MSVC 2015 32Bits

       

      Anything else?

      Description

      I have wrote a small example app to reproduce the issue.

      Tried to attach the zip but JIRA wont let-me as Im missing some signature (??)

      Heres the sample app: https://ufile.io/kwi9r

       

      If we comment the whole  LChartTest::refresh() ** method, the app no longer crash.

       

      The stacktrace:

      .  0  Id: 60.28e4 Suspend: 1 Teb: 0068d000 Unfrozen
      ChildEBP RetAddr  
      008fd130 503e60ad Qt5Widgetsd!QApplicationPrivate::notify_helper(class QObject * receiver = 0x00a77db8, class QEvent * e = 0x00a81748)+0x126 [c:\users\qt\work\qt\qtbase\src\widgets\kernel\qapplication.cpp @ 3732]
      008fd7d0 6001730c Qt5Widgetsd!QApplication::notify(class QObject * receiver = 0x00a77db8, class QEvent * e = 0x00a81748)+0x39d [c:\users\qt\work\qt\qtbase\src\widgets\kernel\qapplication.cpp @ 3104]
      008fd810 600204c9 Qt5Cored!QCoreApplication::notifyInternal2(class QObject * receiver = 0x00a77db8, class QEvent * event = 0x00a81748)+0xec [c:\users\qt\work\qt\qtbase\src\corelib\kernel\qcoreapplication.cpp @ 1044]
      008fd820 600186f9 Qt5Cored!QCoreApplication::sendEvent(class QObject * receiver = 0x00a77db8, class QEvent * event = 0x00a81748)+0x29 [c:\users\qt\work\qt\qtbase\src\corelib\kernel\qcoreapplication.h @ 234]
      008fd8ac 600b1644 Qt5Cored!QCoreApplicationPrivate::sendPostedEvents(class QObject * receiver = 0x00000000, int event_type = 0n0, class QThreadData * data = 0x009990e0)+0x339 [c:\users\qt\work\qt\qtbase\src\corelib\kernel\qcoreapplication.cpp @ 1719]
      008fd8c8 5fa65190 Qt5Cored!QEventDispatcherWin32::sendPostedEvents(void)+0x24 [c:\users\qt\work\qt\qtbase\src\corelib\kernel\qeventdispatcher_win.cpp @ 1079]
      008fd8d4 600afca3 qwindowsd!QWindowsGuiEventDispatcher::sendPostedEvents(void)+0x10 [c:\users\qt\work\qt\qtbase\src\platformsupport\eventdispatchers\qwindowsguieventdispatcher.cpp @ 82]
      008fd998 75b8e0bb Qt5Cored!qt_internal_proc(struct HWND__ * hwnd = 0x0004099e 0+0+136x39 'QEventDispatcherWin32_Internal_Widget1607452163', unsigned int message = 0x401, unsigned int wp = 0, long lp = 0n0)+0x473 [c:\users\qt\work\qt\qtbase\src\corelib\kernel\qeventdispatcher_win.cpp @ 239]
      WARNING: Stack unwind information not available. Following frames may be wrong.
      008fd9c4 75b98849 USER32!AddClipboardFormatListener+0x4b
      008fd9e8 75b9b145 USER32!EndTask+0x8469
      008fdab8 75b890dc USER32!EndTask+0xad65
      008fdb24 75b88c20 USER32!DispatchMessageW+0x4cc
      008fdb30 600b0449 USER32!DispatchMessageW+0x10
      008ff830 5fa65168 Qt5Cored!QEventDispatcherWin32::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag> flags = class QFlags<enum QEventLoop::ProcessEventsFlag>)+0x479 [c:\users\qt\work\qt\qtbase\src\corelib\kernel\qeventdispatcher_win.cpp @ 630]
      008ff848 6001280c qwindowsd!QWindowsGuiEventDispatcher::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag> flags = class QFlags<enum QEventLoop::ProcessEventsFlag>)+0x28 [c:\users\qt\work\qt\qtbase\src\platformsupport\eventdispatchers\qwindowsguieventdispatcher.cpp @ 74]
      008ff860 60012a17 Qt5Cored!QEventLoop::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag> flags = class QFlags<enum QEventLoop::ProcessEventsFlag>)+0x4c [c:\users\qt\work\qt\qtbase\src\corelib\kernel\qeventloop.cpp @ 135]
      008ff8c4 60015592 Qt5Cored!QEventLoop::exec(class QFlags<enum QEventLoop::ProcessEventsFlag> flags = class QFlags<enum QEventLoop::ProcessEventsFlag>)+0x157 [c:\users\qt\work\qt\qtbase\src\corelib\kernel\qeventloop.cpp @ 212]
      008ff920 0fc54338 Qt5Cored!QCoreApplication::exec(void)+0x132 [c:\users\qt\work\qt\qtbase\src\corelib\kernel\qcoreapplication.cpp @ 1332]
      008ff928 503e5d09 Qt5Guid!QGuiApplication::exec(void)+0x18 [c:\users\qt\work\qt\qtbase\src\gui\kernel\qguiapplication.cpp @ 1688]
      008ff930 0115243f Qt5Widgetsd!QApplication::exec(void)+0x9 [c:\users\qt\work\qt\qtbase\src\widgets\kernel\qapplication.cpp @ 2918]
      008ff988 011557bd app!main(int argc = 0n1, char ** argv = 0x00998e60)+0x5f [d:\projetos\chartviewtest\app\main.cpp @ 10]
      008ff9bc 01153ace app!WinMain(struct HINSTANCE__ * __formal = 0x01150000, struct HINSTANCE__ * __formal = 0x00000000, char * __formal = 0x009964c5 "", int __formal = 0n10)+0xad [c:\users\qt\work\qt\qtbase\src\winmain\qtmain_win.cpp @ 104]
      008ff9d4 01153930 app!invoke_main(void)+0x1e [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl @ 99]
      008ffa2c 011537cd app!__scrt_common_main_seh(void)+0x150 [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl @ 253]
      008ffa34 01153ae8 app!__scrt_common_main(void)+0xd [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl @ 296]
      008ffa3c 77868654 app!WinMainCRTStartup(void)+0x8 [f:\dd\vctools\crt\vcstartup\src\startup\exe_winmain.cpp @ 17]
      008ffa50 77984a77 KERNEL32!BaseThreadInitThunk+0x24
      008ffa98 77984a47 ntdll!RtlGetAppContainerNamedObjectPath+0x137
      008ffaa8 00000000 ntdll!RtlGetAppContainerNamedObjectPath+0x107
      

        Attachments

        1. chartviewtest.zip
          4 kB
        2. qchart-debug.JPG
          qchart-debug.JPG
          190 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            e0348803 Miikka Heikkinen
            Reporter:
            alexsoletti Alex Soletti
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes