marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
13.4k stars 460 forks source link

[BUG] 3.1.2 Beta 3/4 - Crash on ARM64 when run without elevation. (FAST_FAIL_GUARD_ICALL_CHECK_FAILURE) #2844

Open RonnyTNL opened 1 month ago

RonnyTNL commented 1 month ago

Please confirm these before moving forward

UniGetUI Version

3.1.2 beta 3 & 4 (not tested 1 & 2)

Windows version, edition, and architecture

Windows 11 - ARM64 (Runs x64 arch).

Describe your issue

Starting 3.1.2 beta x as Admin user, but not elevated crashes UniGetUI on ARM64 with FAST_FAIL_GUARD_ICALL_CHECK_FAILURE. Previous 3.1.1. version did not have this behavior, reproduces over 2 different machines.

Steps to reproduce the issue

Take an ARM64 Win11 machine and upgrade to the 3.2.1. beta train, try to start it without using "Run as Administrator" if you keep an eye on the process (e.g. process explorer) you will notice werfault kicking in as the process is crashing.

(3a28.1024): Security check failure or stack buffer overrun - code c0000409 (first/second chance not available)
Subcode: 0xa FAST_FAIL_GUARD_ICALL_CHECK_FAILURE 
ntdll!RtlFailFast2:
00007fff`a3875930 d43e0060 brk         #0xF003

CONTEXT:  (.ecxr)
 x0=000000000000000a   x1=00007fff58a09140   x2=0000000000000000   x3=0000000000000000
 x4=000000574ab8dd68   x5=0000000000000000   x6=0000000000000000   x7=0000000000000000
 x8=0000010000000010   x9=00007fffa38694a8  x10=00007fffa39b3170  x11=00007fffa3875930
x12=0000000000000000  x13=0000000000000000  x14=0000000000000000  x15=000000000000014d
x16=0000000000000007  x17=00000000000000ff  x18=000000574adab000  x19=00007fff58a09140
x20=0000000000000000  x21=0000000000000000  x22=0000000000000000  x23=5555555555555555
x24=000001bcaa31db00  x25=000000574ab8e2d0  x26=000000574ab8e310  x27=000001bca9ee1af0
x28=000000574ab8c740   fp=000000574ab8dbc0   lr=00007fffa38d90d8   sp=000000574ab8dbc0
 pc=00007fffa3875930  psr=00000000 ---- EL0

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00007fffa3875930 (ntdll!RtlFailFast2)
   ExceptionCode: c0000409 (Security check failure or stack buffer overrun)
  ExceptionFlags: 00000001
NumberParameters: 1
   Parameter[0]: 000000000000000a
Subcode: 0xa FAST_FAIL_GUARD_ICALL_CHECK_FAILURE 

FAILURE_BUCKET_ID:  FAIL_FAST_GUARD_ICALL_CHECK_FAILURE_NOSOS_c0000409_Microsoft.Internal.FrameworkUdk.System.dll!winrt::impl::capture_to_IWpnPlatform,int_

UniGetUI Log

N/A as crash

Package Managers Logs

N/A as crash

Relevant information

No response

Screenshots and videos

No response

marticliment commented 1 month ago

Please test 3.1.1, 3.1.2 beta 1 and 3.1.2 beta 2. There have been internal library changes that could lead to this issue happening.

RonnyTNL commented 1 month ago

3.1.1 works as of 3.1.2 beta 1 it starts crashing.

marticliment commented 1 month ago

I will investigate

marticliment commented 1 month ago

Sorry, and https://github.com/marticliment/UniGetUI/releases/tag/3.1.2-beta0 is also crashing?

RonnyTNL commented 1 month ago

Yes, confirmed