Comments (24)
no problem, I am the developer of LotAtc so I am not scary about crashes, debugger, powershell or dumps :D
here the results:
- Winui 3 controls gallery works correctly, no problem here
- Uninstall procedure + reinstall gives me same crash at start.
I will try to get the code and compile myself in order to have a solid callstack on debugger!
from openkneeboard.
I have checked deps dll with dependencies walker
The windows app runtime (needed for winui3) is pretty strange here.
- if running from an appx/msix, it's "magically" loaded without being linked against it
- otherwise, it's dynamically loaded at runtime from winmain: https://github.com/fredemmott/OpenKneeboard/blob/56a69f80f8d0cc7b29db01760f87ba4478c1d700/src/app/app-winui3/App.xaml.cpp#L163-L183
from openkneeboard.
Thanks! 1d61a55 will have stopped these invalid settings from being saved in the future
from openkneeboard.
with previous version
Is that 0.2.2, or 0.1.something?
from openkneeboard.
Was 0.1.x (old UI)
from openkneeboard.
Huh, that looks like it's crashing before my code, but I have the same versions of the libraries :(
Could you see if https://www.microsoft.com/store/productId/9P3JFPWWDZRC opens for you or if it has the same problem?
If you're comfortable with debuggers, it would be really useful to know what's in the stowed exceptions here - the information isn't in the dump:
One thing to try:
- uninstall openkneeboard (and winui 3 controls gallery if you install it)
- open powershell
- run
Get-AppxPackage -name "*WindowsAppRuntime*" | Remove-AppxPackage
- install openkneeboard again
This sounds scary, but:
- the windows app runtime is a very new thing (december 2021) and hardly anything depends on it yet
- Remove-AppxPackage will refuse to remove any packages that something else is declared as depending on
from openkneeboard.
I will try to get the code and compile myself in order to have a solid callstack on debugger!
there's also a debug build and symbols at https://github.com/fredemmott/OpenKneeboard/actions/runs/2022974226 - I removed them from the release page to simplify things for non-developers :)
it does need the windows app SDK debug libraries, which are only available as part of the windows app SDK package though
from openkneeboard.
I have compiled it in debug, same behavior but it crashes in very early stage (debugger does not catch it). I have checked deps dll with dependencies walker, no issue there....
This is a dev computer, perhaps I have something installed that causes troubles....
Here the log (not very useful):
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'F:\code\OpenKneeboard\out\build\x64-Debug\src\utilities\OpenKneeboard-Launch-WindowsApp.exe'. Symbols loaded.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140_1d.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Unloaded 'C:\Windows\System32\ucrtbased.dll'
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Unloaded 'C:\Windows\System32\ucrtbased.dll'
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\AppXDeploymentClient.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\Windows.ApplicationModel.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\Windows.StateRepositoryPS.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\Windows.StateRepositoryClient.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\Windows.StateRepositoryBroker.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Shell.ServiceHostBuilder.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\UserMgrProxy.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\ActivationClient.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'.
'OpenKneeboard-Launch-WindowsApp.exe' (Win32): Loaded 'C:\Windows\System32\execmodelproxy.dll'.
The thread 0x6dac has exited with code 0 (0x0).
The thread 0x9b38 has exited with code 0 (0x0).
The thread 0x9e68 has exited with code 0 (0x0).
The thread 0x5898 has exited with code 0 (0x0).
The thread 0x75e0 has exited with code 0 (0x0).
The thread 0x9cbc has exited with code 0 (0x0).
The thread 0x803c has exited with code 0 (0x0).
The program '[27320] OpenKneeboard-Launch-WindowsApp.exe' has exited with code 0 (0x0).
from openkneeboard.
Test_viewer.exe is working, window opens correctly.
from openkneeboard.
It's OpenKneeboardApp.exe
you want to run in the debugger - OpenKneeboard-Launch-WindowsApp.exe
is essentially a shortcut for people that want to launch OpenKneeboard from something else that requires an exe and doesn't support appx/msix/windows store apps
from openkneeboard.
It's
OpenKneeboardApp.exe
you want to run in the debugger -OpenKneeboard-Launch-WindowsApp.exe
is essentially a shortcut for people that want to launch OpenKneeboard from something else that requires an exe and doesn't support appx/msix/windows store apps
copy, it seems to not been build by default... any special values for CMake I could forgot ? I have just opened the folder in Visual Studio and launch the build.
from openkneeboard.
in visual studio code with cmake extensions, the default 'all' target will build it ; I'm not familiar with visual studio itself (I rarely work on windows-only stuff)
otherwise, in the build directory (with a CMakeCache.txt): cmake --build . --config Debug --parallel
will build everything - it'll then be in something like (sorry, can't check right now) BUILD_DIR/src/app/app-winui-3/msbuild-out-Debug/OpenKneeboardApp.exe
from openkneeboard.
https://github.com/microsoft/microsoft-ui-xaml/blob/main/docs/debugging_crashes.md might be useful, especially https://github.com/microsoft/microsoft-ui-xaml/blob/main/docs/debugging_crashes.md#how-to-get-a-good-callstack-for-crashes , which goes into stowed exceptions related to the xaml handling, which matches the original trace/dump
from openkneeboard.
Sorry for late response, I have at current master version of today.
I got same crash at start with last version
I try to build from source but I got that:
I think that the problem is certainly due to my dev env but I have not found the reason yet :)
from openkneeboard.
My bad, I installed the .NET tools, it fixes the build. :)
from openkneeboard.
Here is the debug for the openXR alpha version (same behavior than std version):
from openkneeboard.
and it comes from:
if (!isPackaged) {
PACKAGE_VERSION minimumVersion {WINDOWSAPPSDK_RUNTIME_VERSION_UINT64};
winrt::check_hresult(MddBootstrapInitialize(
WINDOWSAPPSDK_RELEASE_MAJORMINOR,
WINDOWSAPPSDK_RELEASE_VERSION_TAG_W,
minimumVersion));
}
Do you need a special Windows SDK ?
from openkneeboard.
Those constants are defined by the version of the Windows App SDK (which isn't part of the windows SDK) you have installed; I don't understand how it can mismatch for you, though you can download all the runtimes at https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads
from openkneeboard.
MddBootstrapInitialize
problems do currently lead to a silent exit (Microsoft are planning to provide alternatives in windows app sdk 1.1), though it's not the same issue as when running from the MSIX, as isPackaged
is true in those runs
I've hit something similar to the original microsoft ui xaml stowed exception one: this is a pain to debug. It essentially means something, somewhere in the App.xaml.cpp initialization (Which includes the MainWindow.xaml.cpp initialization) threw an exception - but the internals of the xaml library hide the original exception :(
from openkneeboard.
For the original issue, it's probably best to try and use the 'app package' functionality to launch the debugger from an msix, or something like it, after adding OPENKNEEBOARD_BREAK to https://github.com/fredemmott/OpenKneeboard/blob/a82a56928dbea1b1e4b21f4fc2b7d267c3001c4f/src/app/app-winui3/App.xaml.cpp#L134
For something like it, you can run cmake --install . --config Debug --prefix some-directory
, then Add-AppxPackage -Register -Path "$(Get-Location)/appxmanifest.xml"
from that directory to register that directory as if it were an msix installation
from openkneeboard.
Here is the stack for last release 0.3.0 with your debug symbols. I cannot compile it because it needs visual 20 and I have only visual 19 on my computer. As it is my main dev machine, I prefer not install too much thing on it.
It seems to be related to some json settings, so is there some file I can remove ? I try the reset data button from Windows with no success.
if (!mSettings.NonVR.is_null()) { mVRConfig = mSettings.VR; }
from openkneeboard.
Could you share the dump, or the source lines for these frames?
It seems to be related to some json settings, so is there some file I can remove ?
Yep - Saved Games\OpenKneeboard\Settings.json
- it would also be useful if you can share that
I try the reset data button from Windows with no success.
Sadly, yes - the places that affects can potentially be automatically deleted when upgrading between versions. It's really intended for caches etc
from openkneeboard.
That's it !!!! It is working now ! Here the faulty settings thx for your support !
from openkneeboard.
Thanks to v1.1 of the Windows App SDK release last week, as of cd74506 there is no dependency on external framework packages at runtime - everything necessary is in the build/install dir.
from openkneeboard.
Related Issues (20)
- Enable clang-tidy
- OpenKneeboard is looking for the wrong AH-64D folder HOT 8
- App container error HOT 4
- Jump overlay
- CPU usage when editing VR settings HOT 1
- OpenKneeboard crash when loading DCS mission HOT 16
- Brightness SteamVR
- Corrupted saved games foilder HOT 1
- Make OpenKneeboard Viewer have different titles for each instance.
- Switching profiles does not apply the profiles' DirectInput bindings HOT 2
- Support Kneeboard Live? HOT 1
- PDF Chart rotation (feature requrest) - essential for civilian flight (MSFS/X-Plane)
- Filterable text/log file reader (tab) to read BeyondATC and Pilot2ATC instructions. HOT 1
- 32-bit OpenXR API layer HOT 19
- OpenKneeboard crashes if it attempts to load an invalid PDF HOT 4
- OKB freezing during mid race HOT 5
- Make a separate automatic update channel for manually clicking 'check for updates'
- Bindable JsButtons for the web dashboard
- Crop a window to the interesting section HOT 3
- Request: keyboard emulation API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openkneeboard.