Я работаю над приложением на основе Cordova, которое должно поддерживать Windows. Я использую Cordova 8.0.0 и Cordova-Windows 6.0.0 с Visual Studio 2017.
После сборки приложения в Visual Studio и запуска на Локальный компьютер , если используется конфигурация debug , приложение будет успешно запущено, если используется release configurion он просто падает, и в консоли остается совсем немного:
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\WWAHost.exe'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\iertutil.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Unloaded 'C:\Windows\System32\sechost.dll'
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
The thread 0x5948 has exited with code 0 (0x0).
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\WwaExt.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\edgehtml.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\mlang.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\Chakra.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\rmclient.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\srpapi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\fltLib.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\urlmon.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\MrmCoreR.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
onecoreuap\base\mrt\runtime\com\winrt\core\lib\winrtresourcemanager.cpp(893)\MrmCoreR.dll!00007FFA1B5C90C8: (caller: 00007FFA1B5C8D67) ReturnHr(1) tid(1904) 80070015 The device is not ready.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\InputHost.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Unloaded 'C:\Windows\System32\CoreUIComponents.dll'
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Unloaded 'C:\Windows\System32\CoreMessaging.dll'
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\d2d1.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreUAPCommonProxyStub.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\BCP47mrm.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
onecoreuap\base\mrt\runtime\com\winrt\core\lib\contextmanager.cpp(237)\MrmCoreR.dll!00007FFA1B5E1A1A: (caller: 00007FFA1B5E101D) ReturnHr(2) tid(1904) 80070490 Element not found.
'WWAHost.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll'
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\UiaManager.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.Core.TextInput.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Graphics.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\sspicli.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\ninput.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Internal.SecurityMitigationsBroker.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\imagehlp.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\userenv.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\ki124455.inf_amd64_0f9ddfab4df0266d\igd10iumd64.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\ncrypt.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\ntasn1.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\ki124455.inf_amd64_0f9ddfab4df0266d\igc64.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\DWrite.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\edgeIso.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\msimtf.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\directmanipulation.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\profext.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\dcomp.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\BCP47Langs.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Windows\System32\WwaApi.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
'WWAHost.exe' (Win32): Loaded 'C:\Program Files\Common Files\microsoft shared\VS7Debug\pdm.dll'. Skipped loading symbols. Module is native, and native debugging is currently disabled.
The thread 0x5978 has exited with code 0 (0x0).
The thread 0x1200 has exited with code 0 (0x0).
The thread 0x5344 has exited with code 0 (0x0).
The thread 0x1904 has exited with code 0 (0x0).
The thread 0xfb4 has exited with code 0 (0x0).
The thread 0x3ecc has exited with code 0 (0x0).
The thread 0x5148 has exited with code 0 (0x0).
The thread 0x5acc has exited with code 0 (0x0).
The thread 0x5668 has exited with code 0 (0x0).
The thread 0x4b70 has exited with code 0 (0x0).
The thread 0x4664 has exited with code 0 (0x0).
The thread 0x4c38 has exited with code 0 (0x0).
The thread 0x4578 has exited with code 0 (0x0).
The thread 0x6b4 has exited with code 0 (0x0).
The thread 0x5b90 has exited with code 0 (0x0).
The thread 0x3018 has exited with code 0 (0x0).
The thread 0x598c has exited with code 0 (0x0).
The thread 0x59fc has exited with code 0 (0x0).
The thread 0x5930 has exited with code 0 (0x0).
The thread 0x28dc has exited with code 0 (0x0).
The thread 0x53a8 has exited with code 0 (0x0).
The program '[13104] WWAHost.exe' has exited with code 0 (0x0).
При запуске в режиме отладки я вижу эту ошибку:
APPHOST9603: Can’t load the ActiveX plug-in that has the class ID '{D27CDB6E-AE6D-11CF-96B8-444553540000}'. Apps can't load ActiveX controls.
index.html
Что я не понимаю, потому что я не использую элементы управления ActiveX. Однако это не мешает работе приложения, поэтому я его игнорирую. Я не уверен, может ли такая ошибка вызвать сбой приложения при работе с конфигурацией release .
Мне удалось воспроизвести ту же проблему при создании проекта Cordova по умолчанию, а также моего собственного приложения.
Что еще интереснее, это то, что после сбоя приложения в выпуск , если я открою меню «Пуск» и запусту его сам (т. Е. Запустил версию Visual Studio, установленную, но запускаю за пределами Visual Studio), работать просто отлично. Когда я упаковываю вещи в магазин и запускаю эту версию, она мгновенно снова падает.