Windows app startup crash "abort() has been called)"

Author: karimb11Created May 31, 2025Updated Apr 20, 2026
LabelsMissing repro

Description

Image

When I debug the app using Visual Studio I get the following:

KernelBase.dll!00007ffe94aaaf29() Unknown
  [External Code] 
> app.exe!winrt::throw_hresult(const winrt::hresult result) Line 5061  C++
  app.exe!winrt::check_hresult(const winrt::hresult result) Line 5159  C++
  app.exe!winrt::get_activation_factory<winrt::Windows::Foundation::IActivationFactory>(const winrt::param::hstring & name) Line 6204  C++
  app.exe!winrt::impl::factory_cache_entry<winrt::RNSVG::ReactPackageProvider,winrt::Windows::Foundation::IActivationFactory>::call<winrt::RNSVG::ReactPackageProvider (__cdecl*)(winrt::Windows::Foundation::IActivationFactory const &)>(winrt::RNSVG::ReactPackageProvider(*)(const winrt::Windows::Foundation::IActivationFactory &) && callback) Line 6454  C++
  app.exe!winrt::impl::call_factory_cast<winrt::RNSVG::ReactPackageProvider (__cdecl*)(winrt::Windows::Foundation::IActivationFactory const &),winrt::RNSVG::ReactPackageProvider,winrt::Windows::Foundation::IActivationFactory,winrt::RNSVG::ReactPackageProvider <lambda>(const winrt::Windows::Foundation::IActivationFactory &)>(winrt::RNSVG::ReactPackageProvider::winrt::RNSVG::ReactPackageProvider <lambda>(const winrt::Windows::Foundation::IActivationFactory &) && callback) Line 6515 C++
  app.exe!winrt::RNSVG::ReactPackageProvider::ReactPackageProvider() Line 23 C++
  [External Code] 
  app.exe!WinMain(HINSTANCE__ * instance, HINSTANCE__ * __formal, char * __formal, int showCmd) Line 39  C++
  [External Code] 

  | Name | Value | Type -- | -- | -- | -- ▶ | impl::error_class_not_registered | REGDB_E_CLASSNOTREG Class not registered | winrt::hresult ▶ | result | REGDB_E_CLASSNOTREG Class not registered | winrt::hresult   | take_ownership_from_abi | {...} | winrt::take_ownership_from_abi_t

Steps to reproduce

  1. npx --yes @react-native-community/cli@next init example --version ^0.78.5
  2. npm install react-native-windows@^0.78.5
  3. npx react-native init-windows --template cpp-app --overwrite
  4. npm install react-native-svg
  5. npx react-native run-windows

Snack or a link to a repository

none

SVG version

15.12.0

React Native version

0.78.5

Platforms

Windows

JavaScript runtime

Hermes

Workflow

None

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

Real device

Device model

No response

Acknowledgements

Yes

Source: software-mansion/react-native-svg