Incomprehensible crash maybe related to QT_CONFIG(accessibility)
-
My app is crashing using qtcreator debug in a way that is incomprehensible to me. I see that the call which fails is #ifdef QT_CONFIG(accessibility) and wonder what this accessibility is and do I need it?
In case that is irrelevant here is the stack trace (I am using 6.1.2)
1 RaiseException KERNELBASE 0x7ffe41e94ed9
2 CxxThrowException ucrtbase 0x7ffe4226da1d
3 UIAutomationCore 0x7ffdfbcb8d1e
4 UiaGetReservedMixedAttributeValue UIAutomationCore 0x7ffdfbd070d6
5 UiaGetReservedMixedAttributeValue UIAutomationCore 0x7ffdfbd06fa8
6 UIAutomationCore 0x7ffdfbcd1196
7 DllCanUnloadNow UIAutomationCore 0x7ffdfbcea710
8 UiaClientsAreListening UIAutomationCore 0x7ffdfbcfcea9
9 WindowPattern_WaitForInputIdle UIAutomationCore 0x7ffdfbe37f5c
10 WindowPattern_WaitForInputIdle UIAutomationCore 0x7ffdfbe385f9
11 UiaRegisterProviderCallback UIAutomationCore 0x7ffdfbd46956
12 UiaReturnRawElementProvider UIAutomationCore 0x7ffdfbcd2ad1
13 QWindowsUiaWrapper::returnRawElementProvider qwindowsuiawrapper.cpp 94 0x7ff708ed948f
14 QWindowsUiaAccessibility::handleWmGetObject qwindowsuiaaccessibility.cpp 83 0x7ff708115163
15 QWindowsContext::windowsProc qwindowscontext.cpp 1230 0x7ff70807dbbb
16 qWindowsWndProc qwindowscontext.cpp 1692 0x7ff70806fe6e
17 CallWindowProcW USER32 0x7ffe42e1e858
18 DispatchMessageW USER32 0x7ffe42e1e3dc
19 SendMessageTimeoutW USER32 0x7ffe42e30bc3
20 KiUserCallbackDispatcher ntdll 0x7ffe44370c54
21 NtUserPeekMessage win32u 0x7ffe41ad1064
22 PeekMessageW USER32 0x7ffe42e1a5c3
23 PeekMessageW USER32 0x7ffe42e1a523
24 QEventDispatcherWin32::processEvents qeventdispatcher_win.cpp 503 0x7ff709a73eda
25 QWindowsGuiEventDispatcher::processEvents qwindowsguieventdispatcher.cpp 72 0x7ff708ec47fa
26 QEventLoop::processEvents qeventloop.cpp 140 0x7ff7099e5a8c
27 QEventLoop::exec qeventloop.cpp 232 0x7ff7099e5d64
28 QCoreApplication::exec qcoreapplication.cpp 1363 0x7ff709729557
29 QGuiApplication::exec qguiapplication.cpp 1889 0x7ff708c98b28
30 QApplication::exec qapplication.cpp 2616 0x7ff7084e95bb
31 main main.cpp 145 0x7ff707c8bcab
32 WinMain qtentrypoint_win.cpp 97 0x7ff709d6dcb2
33 invoke_main exe_common.inl 107 0x7ff709d6a522
34 __scrt_common_main_seh exe_common.inl 288 0x7ff709d6a40e
35 __scrt_common_main exe_common.inl 331 0x7ff709d6a2ce
36 WinMainCRTStartup exe_winmain.cpp 17 0x7ff709d6a5be
37 BaseThreadInitThunk KERNEL32 0x7ffe441d7034
38 RtlUserThreadStart ntdll 0x7ffe44322651 -
In what file is that
#ifdef QT_CONFIG(accessibility)line? Also, what is on the line before or after that? I don't think it can actually crash on a preprocessor directive line. What OS is this running on? I've noticed that MS Window's cdb debugger sometimes reports the wrong line that causes the crash (the actual line is either one before or one after).