react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Install via .msixupload/.msix result in KERNELBASE.dll crashes on launch

Open warrenronsiek opened this issue 8 months ago • 2 comments

Problem Description

I have a RNW 0.74.8 app that I cant get through the Microsoft app store. Testers report that the application is crashing on launch with KERNELBASE.dll exception:

Application Error:
Faulting application name: ChronoKeep.exe, version: 1.0.0.0, time stamp: 0x666b74f2
Faulting module name: KERNELBASE.dll, version: 10.0.22000.2538, time stamp: 0x06aca232
Exception code: 0xe0434352
Fault offset: 0x0000000000052bdc
Faulting process id: 0x199c
Faulting application start time: 0x01dac0fa3707e67b
Faulting application path: C:\Program Files\WindowsApps\WarrenRonsiek.ChronoKeep_0.1.17.0_x64__fyfmssxvw1b2a\ChronoKeep.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 2696ba12-1e57-4111-a5b0-9d0b3dca6476
Faulting package full name: WarrenRonsiek.ChronoKeep_0.1.17.0_x64__fyfmssxvw1b2a
Faulting package-relative application ID: App

The app runs fine when installed via the install scripts in the generated sideloading _Test dir. However, when you try to install from the .misx file contained in the .misxupload bundle, the app will crash on launch with the above exception. I've replicated the issue in a public repo below and in several 4 different windows 10/11 environments.

Possibly related to https://github.com/microsoft/react-native-windows/issues/4749

Steps To Reproduce

  1. Create a generic react-native-windows C# project from init scripts
  2. Build the project in VStudio such that you get a .misxupload (also, npx react-native run-windows --release --no-deploy --no-launch --logging)
  3. Rename-Item -Path "MyApp_x64.msixupload" -NewName "MyApp.zip"
  4. Expand-Archive -Path MyApp.zip -DestinationPath MyApp
  5. Double-click install the MyApp\MyApp.misx package

You can also install/run the .misxupload bundle included in the demo git repo: https://github.com/warrenronsiek/RNW11Bug/tree/master/windows/RNW11Bug/AppPackages/

Expected Results

App launches normally.

CLI version

12.3.2

Environment

System:
  OS: Windows 10 10.0.20348
  CPU: (4) x64 Intel(R) Xeon(R) CPU @ 2.80GHz
  Memory: 12.52 GB / 16.00 GB
Binaries:
  Node:
    version: 20.11.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 3.6.4
    path: C:\Program Files\nodejs\yarn.CMD
  npm:
    version: 10.8.1
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    AllowAllTrustedApps: Enabled
    Versions:
      - 10.0.18362.0
      - 10.0.19041.0
      - 10.0.20348.0
      - 10.0.22000.0
      - 10.0.22621.0
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.9.34728.123 (Visual Studio Community 2022)
Languages:
  Java:
    version: 21.0.2
    path: /c/Program Files/OpenJDK/jdk-21.0.2/bin/javac
  Ruby:
    version: 3.3.0
    path: C:\tools\ruby33\bin\ruby.EXE
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.2
    wanted: 0.74.2
  react-native-windows:
    installed: 0.74.8
    wanted: 0.74.8
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Community Modules

No response

Target Platform Version

10.0.19041

Target Device(s)

Desktop

Visual Studio Version

Visual Studio 2022

Build Configuration

Release

Snack, code example, screenshot, or link to a repository

https://github.com/warrenronsiek/RNW11Bug

warrenronsiek avatar Jun 27 '24 17:06 warrenronsiek