Code Monkey home page Code Monkey logo

Comments (24)

DArt503 avatar DArt503 commented on June 15, 2024 1

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.

fredemmott avatar fredemmott commented on June 15, 2024 1

I have checked deps dll with dependencies walker

The windows app runtime (needed for winui3) is pretty strange here.

from openkneeboard.

fredemmott avatar fredemmott commented on June 15, 2024 1

Thanks! 1d61a55 will have stopped these invalid settings from being saved in the future

from openkneeboard.

fredemmott avatar fredemmott commented on June 15, 2024

with previous version

Is that 0.2.2, or 0.1.something?

from openkneeboard.

DArt503 avatar DArt503 commented on June 15, 2024

Was 0.1.x (old UI)

from openkneeboard.

fredemmott avatar fredemmott commented on June 15, 2024

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:

image

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.

fredemmott avatar fredemmott commented on June 15, 2024

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.

DArt503 avatar DArt503 commented on June 15, 2024

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.

DArt503 avatar DArt503 commented on June 15, 2024

Test_viewer.exe is working, window opens correctly.

from openkneeboard.

fredemmott avatar fredemmott commented on June 15, 2024

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.

DArt503 avatar DArt503 commented on June 15, 2024

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.

fredemmott avatar fredemmott commented on June 15, 2024

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.

fredemmott avatar fredemmott commented on June 15, 2024

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.

DArt503 avatar DArt503 commented on June 15, 2024

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:
image

I think that the problem is certainly due to my dev env but I have not found the reason yet :)

from openkneeboard.

DArt503 avatar DArt503 commented on June 15, 2024

My bad, I installed the .NET tools, it fixes the build. :)

from openkneeboard.

DArt503 avatar DArt503 commented on June 15, 2024

Here is the debug for the openXR alpha version (same behavior than std version):
image

from openkneeboard.

DArt503 avatar DArt503 commented on June 15, 2024

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.

fredemmott avatar fredemmott commented on June 15, 2024

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.

fredemmott avatar fredemmott commented on June 15, 2024

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.

fredemmott avatar fredemmott commented on June 15, 2024

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.

DArt503 avatar DArt503 commented on June 15, 2024

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.

image

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.

fredemmott avatar fredemmott commented on June 15, 2024

image

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.

DArt503 avatar DArt503 commented on June 15, 2024

_Settings.zip

That's it !!!! It is working now ! Here the faulty settings thx for your support !

from openkneeboard.

fredemmott avatar fredemmott commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.