M2Team / NanaZip

The 7-Zip derivative intended for the modern Windows experience
https://sourceforge.net/projects/nanazip/
Other
8.89k stars 224 forks source link

Crash on exit in `twinapi.appcore.dll` #400

Closed dinhngtu closed 5 months ago

dinhngtu commented 7 months ago

The newest version of NanaZip (2b5fb9872f750bbb431abf902c873ef2e6c23484) is crashing on Windows 10 (10.0.19045.4291). Strangely I couldn't reproduce under debugger. I disabled mitigations and DllBlock but it didn't fix the issue.

Unhandled exception at 0x00007FFE44A223CE (twinapi.appcore.dll) in NanaZip.Modern.exe.17892.dmp: 0xC0000005: Access violation reading location 0x0000000000000000.

    twinapi.appcore.dll!Microsoft::WRL::ActivationFactory<struct Microsoft::WRL::Implements<struct Microsoft::WRL::RuntimeClassFlags<3>,struct Windows::ApplicationModel::Core::ICoreApplication,struct Windows::ApplicationModel::Core::ICoreApplication2,struct Windows::ApplicationModel::Core::ICoreApplication3,struct Windows::ApplicationModel::Core::ICoreApplicationExit,struct Windows::ApplicationModel::Core::ICoreImmersiveApplication,struct Windows::ApplicationModel::Core::ICoreImmersiveApplication2,struct Windows::ApplicationModel::Core::ICoreImmersiveApplication3,struct Windows::ApplicationModel::Core::ICoreApplicationUnhandledError,struct Microsoft::WRL::Implements<struct Microsoft::WRL::RuntimeClassFlags<3>,struct Microsoft::WRL::CloakedIid<struct Windows::ApplicationModel::Core::ICoreApplicationUseCount>,struct Microsoft::WRL::CloakedIid<struct IServiceProvider>,struct Microsoft::WRL::CloakedIid<struct IObjectWithSite>,struct Microsoft::WRL::CloakedIid<struct Windows::ApplicationModel::Infrastructure::ICoreApplicationInitializat()   Unknown
    Windows.UI.Xaml.dll!ctl::ComPtr<DirectUI::IThemeResourceExpression>::InternalRelease() Line 276 C++
    [Inline Frame] Windows.UI.Xaml.dll!ctl::ComPtr<Windows::ApplicationModel::Core::ICoreApplication2>::{dtor}() Line 345   C++
    Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::HookBackgroundActivationEvents(bool fRegister) Line 1233    C++
    Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::~FrameworkApplication() Line 591    C++
    Windows.UI.Xaml.dll!ctl::ComObject<DirectUI::FrameworkApplication>::`scalar deleting destructor'(unsigned int)  C++
    Windows.UI.Xaml.dll!ctl::ComBase::ReleaseImpl() Line 307    C++
>   [Inline Frame] NanaZip.Modern.exe!winrt::Windows::Foundation::IUnknown::release_ref() Line 2264 C++
    [Inline Frame] NanaZip.Modern.exe!winrt::Windows::Foundation::IUnknown::{dtor}() Line 2169  C++
    [Inline Frame] NanaZip.Modern.exe!winrt::impl::root_implements<winrt::NanaZip::Modern::implementation::App,winrt::Windows::UI::Xaml::IApplicationOverrides,winrt::Windows::UI::Xaml::IApplicationOverrides2,winrt::composing,winrt::Windows::UI::Xaml::Markup::IXamlMetadataProvider>::{dtor}() Line 7656   C++
    NanaZip.Modern.exe!winrt::impl::heap_implements<winrt::NanaZip::Modern::implementation::App>::`scalar deleting destructor'(unsigned int)    C++
    [Inline Frame] NanaZip.Modern.exe!winrt::impl::root_implements<winrt::NanaZip::Modern::implementation::AboutPage,winrt::NanaZip::Modern::AboutPage,winrt::composing,winrt::Windows::UI::Xaml::Controls::IPageOverrides,winrt::Windows::UI::Xaml::Controls::IControlOverrides,winrt::Windows::UI::Xaml::Controls::IControlOverrides6,winrt::Windows::UI::Xaml::IFrameworkElementOverrides,winrt::Windows::UI::Xaml::IFrameworkElementOverrides2,winrt::Windows::UI::Xaml::IUIElementOverrides,winrt::Windows::UI::Xaml::IUIElementOverrides7,winrt::Windows::UI::Xaml::IUIElementOverrides8,winrt::Windows::UI::Xaml::IUIElementOverrides9,winrt::Windows::UI::Xaml::Markup::IComponentConnector,winrt::Windows::UI::Xaml::Markup::IComponentConnector2>::NonDelegatingRelease() Line 7727   C++
    [Inline Frame] NanaZip.Modern.exe!winrt::impl::root_implements<winrt::NanaZip::Modern::implementation::AboutPage,winrt::NanaZip::Modern::AboutPage,winrt::composing,winrt::Windows::UI::Xaml::Controls::IPageOverrides,winrt::Windows::UI::Xaml::Controls::IControlOverrides,winrt::Windows::UI::Xaml::Controls::IControlOverrides6,winrt::Windows::UI::Xaml::IFrameworkElementOverrides,winrt::Windows::UI::Xaml::IFrameworkElementOverrides2,winrt::Windows::UI::Xaml::IUIElementOverrides,winrt::Windows::UI::Xaml::IUIElementOverrides7,winrt::Windows::UI::Xaml::IUIElementOverrides8,winrt::Windows::UI::Xaml::IUIElementOverrides9,winrt::Windows::UI::Xaml::Markup::IComponentConnector,winrt::Windows::UI::Xaml::Markup::IComponentConnector2>::Release() Line 7612    C++
    [Inline Frame] NanaZip.Modern.exe!winrt::implements<winrt::NanaZip::Modern::implementation::AboutPage,winrt::NanaZip::Modern::AboutPage,winrt::composing,winrt::Windows::UI::Xaml::Controls::IPageOverrides,winrt::Windows::UI::Xaml::Controls::IControlOverrides,winrt::Windows::UI::Xaml::Controls::IControlOverrides6,winrt::Windows::UI::Xaml::IFrameworkElementOverrides,winrt::Windows::UI::Xaml::IFrameworkElementOverrides2,winrt::Windows::UI::Xaml::IUIElementOverrides,winrt::Windows::UI::Xaml::IUIElementOverrides7,winrt::Windows::UI::Xaml::IUIElementOverrides8,winrt::Windows::UI::Xaml::IUIElementOverrides9,winrt::Windows::UI::Xaml::Markup::IComponentConnector,winrt::Windows::UI::Xaml::Markup::IComponentConnector2>::Release() Line 8252   C++
    NanaZip.Modern.exe!winrt::impl::produce_base<winrt::NanaZip::Modern::implementation::AboutPage,winrt::NanaZip::Modern::IAboutPage,void>::Release() Line 7281    C++
    Windows.UI.Xaml.dll!ctl::release_interface<DirectUI::FrameworkApplication>(DirectUI::FrameworkApplication * & pInterface) Line 137  C++
    [Inline Frame] Windows.UI.Xaml.dll!DirectUI::FrameworkApplication::GlobalDeinit() Line 668  C++
    Windows.UI.Xaml.dll!DeinitializeDll() Line 319  C++
    Windows.UI.Xaml.dll!DllMain(HINSTANCE__ * hinstDLL, unsigned int fdwReason, void * __formal) Line 394   C++
    Windows.UI.Xaml.dll!dllmain_dispatch(HINSTANCE__ * const instance, const unsigned long reason, void * const reserved) Line 200  C++
    ntdll.dll!LdrpCallInitRoutine() Unknown
    ntdll.dll!LdrShutdownProcess()  Unknown
    ntdll.dll!RtlExitUserProcess()  Unknown
    kernel32.dll!ExitProcessImplementation()    Unknown
    ucrtbase.dll!exit_or_terminate_process()    Unknown
    ucrtbase.dll!common_exit()  Unknown
    NanaZip.Modern.exe!__scrt_common_main_seh() Line 295    C++
    kernel32.dll!BaseThreadInitThunk()  Unknown
    ntdll.dll!RtlUserThreadStart()  Unknown
MouriNaruto commented 6 months ago

I can reproduce that on my Windows 10 Build 1904x devices. I tried to make a workaround for that.

Kenji Mouri

MouriNaruto commented 5 months ago

The NanaZip 3.0 has been released. The issue can be closed due to fixed.

Kenji Mouri