pit-ray / win-vind

You can operate Windows with key bindings like Vim.
https://pit-ray.github.io/win-vind/
MIT License
1.97k stars 45 forks source link

[Question] Why my win-vind crashed immediately after I ran `win-vind.exe` in the Powershell? #238

Open happy-riosky opened 7 months ago

happy-riosky commented 7 months ago

First I launched the Powershell in Administrator Mode. I used choco install win-vind to install the win-vind and the process was fine: image

Then, I ran win-vind.exe and there was no prompt message. And I checked the status bar which told that the win-vind was actually launched but the icon disappeared in about 3 seceond: image

I thought it might due to the defenser so I tried to close all my defenser but the issue preserved: bar

The program still crashed almost immediately after I ran win-vind.exe. There is also a strange thing that I could hardly take a screenshot as the system seems unstable while the win-vind icon was trying to run away.

happy-riosky commented 7 months ago

I changed the way I installed win-vind to use the installer. And also I stopped every security defenser. Still, the software crashed after I clicked its icon.

But this time, after pressing win+r, I ran eventvwr to check the crash reason of the win-vind. Here is what I fond in the C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_win-vind.exe_e0643f81754417ab58d3404fbf9e7ebf784cb7fa_d061f6b5_9c664c3e-ed6c-4d05-8cf5-3de18ea99ccd which is automatically generated by Windows:

Version=1
EventType=BEX64
EventTime=133574484948416899
ReportType=2
Consent=1
UploadTime=133574484951704867
ReportStatus=268435456
ReportIdentifier=9c664c3e-ed6c-4d05-8cf5-3de18ea99ccd
IntegratorReportIdentifier=d69a8204-c26d-4548-b499-9c557cb2f7f4
Wow64Host=34404
NsAppName=win-vind.exe
OriginalFilename=win-vind.exe
AppSessionGuid=000010dc-0001-0312-3770-294e498dda01
TargetAppId=W:000632fc25b10309ae0b60e4d49fb808097500000904!00007115b6e91f15266f993e414693312dfa9d77f0cb!win-vind.exe
TargetAppVer=2024//02//23:12:37:26!0!win-vind.exe
BootId=4294967295
TargetAsId=808
IsFatal=1
EtwNonCollectReason=4
Response.BucketId=3c16e1017dd77bcf4d31c46cc4751a4c
Response.BucketTable=5
Response.LegacyBucketId=2103678472390253132
Response.type=4
Sig[0].Name=应用程序名(Application Name)
Sig[0].Value=win-vind.exe
Sig[1].Name=应用程序版本(Application Version)
Sig[1].Value=5.11.3.0
Sig[2].Name=应用程序时间戳(Application Timestamp)
Sig[2].Value=65d89186
Sig[3].Name=故障模块名称(Fault Model Name)
Sig[3].Value=win-vind.exe
Sig[4].Name=故障模块版本(Fault Model Version)
Sig[4].Value=5.11.3.0
Sig[5].Name=故障模块时间戳(Fault Model Timestamp)
Sig[5].Value=65d89186
Sig[6].Name=异常偏移(Abnormal Migration)
Sig[6].Value=00000000000bd605
Sig[7].Name=异常代码(Abnormal Code)
Sig[7].Value=c0000409
Sig[8].Name=异常数据(Abnormal Data)
Sig[8].Value=0000000000000007
DynamicSig[1].Name=OS 版本
DynamicSig[1].Value=10.0.22621.2.0.0.768.99
DynamicSig[2].Name=区域设置 ID
DynamicSig[2].Value=2052
DynamicSig[22].Name=其他信息 1
DynamicSig[22].Value=2c9c
DynamicSig[23].Name=其他信息 2
DynamicSig[23].Value=2c9c50bcf240ee1a477d055f658fe28f
DynamicSig[24].Name=其他信息 3
DynamicSig[24].Value=6f3a
DynamicSig[25].Name=其他信息 4
DynamicSig[25].Value=6f3abf5b8e0f4ae22d229e1fdd1b643f
UI[2]=C:\Program Files\win-vind\win-vind.exe
LoadedModule[0]=C:\Program Files\win-vind\win-vind.exe
LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\WINDOWS\System32\KERNEL32.DLL
LoadedModule[3]=C:\WINDOWS\System32\KERNELBASE.dll
LoadedModule[4]=C:\WINDOWS\System32\USER32.dll
LoadedModule[5]=C:\WINDOWS\System32\win32u.dll
LoadedModule[6]=C:\WINDOWS\System32\GDI32.dll
LoadedModule[7]=C:\WINDOWS\SYSTEM32\dwmapi.dll
LoadedModule[8]=C:\WINDOWS\SYSTEM32\USERENV.dll
LoadedModule[9]=C:\WINDOWS\System32\gdi32full.dll
LoadedModule[10]=C:\WINDOWS\System32\ucrtbase.dll
LoadedModule[11]=C:\WINDOWS\System32\msvcp_win.dll
LoadedModule[12]=C:\WINDOWS\System32\RPCRT4.dll
LoadedModule[13]=C:\WINDOWS\System32\combase.dll
LoadedModule[14]=C:\WINDOWS\System32\SHELL32.dll
LoadedModule[15]=C:\WINDOWS\System32\ole32.dll
LoadedModule[16]=C:\WINDOWS\System32\ADVAPI32.dll
LoadedModule[17]=C:\WINDOWS\System32\msvcrt.dll
LoadedModule[18]=C:\WINDOWS\System32\sechost.dll
LoadedModule[19]=C:\WINDOWS\System32\bcrypt.dll
LoadedModule[20]=C:\WINDOWS\SYSTEM32\icuuc.dll
LoadedModule[21]=C:\WINDOWS\SYSTEM32\icu.DLL
LoadedModule[22]=C:\WINDOWS\System32\IMM32.DLL
LoadedModule[23]=C:\WINDOWS\System32\shcore.dll
LoadedModule[24]=C:\WINDOWS\system32\uxtheme.dll
LoadedModule[25]=C:\WINDOWS\SYSTEM32\profapi.dll
LoadedModule[26]=C:\WINDOWS\SYSTEM32\kernel.appcore.dll
LoadedModule[27]=C:\WINDOWS\System32\bcryptPrimitives.dll
LoadedModule[28]=C:\WINDOWS\System32\clbcatq.dll
LoadedModule[29]=C:\Windows\System32\uiautomationcore.dll
LoadedModule[30]=C:\WINDOWS\System32\OLEAUT32.dll
LoadedModule[31]=C:\WINDOWS\SYSTEM32\sxs.dll
LoadedModule[32]=C:\WINDOWS\System32\MSCTF.dll
LoadedModule[33]=C:\WINDOWS\SYSTEM32\windows.storage.dll
LoadedModule[34]=C:\WINDOWS\SYSTEM32\wintypes.dll
LoadedModule[35]=C:\WINDOWS\System32\shlwapi.dll
LoadedModule[36]=C:\WINDOWS\SYSTEM32\PROPSYS.dll
LoadedModule[37]=C:\WINDOWS\SYSTEM32\LINKINFO.dll
LoadedModule[38]=C:\WINDOWS\SYSTEM32\apphelp.dll
LoadedModule[39]=C:\Windows\System32\appresolver.dll
State[0].Key=Transport.DoneStage1
State[0].Value=1
OsInfo[0].Key=vermaj
OsInfo[0].Value=10
OsInfo[1].Key=vermin
OsInfo[1].Value=0
OsInfo[2].Key=verbld
OsInfo[2].Value=22621
OsInfo[3].Key=ubr
OsInfo[3].Value=3447
OsInfo[4].Key=versp
OsInfo[4].Value=0
OsInfo[5].Key=arch
OsInfo[5].Value=9
OsInfo[6].Key=lcid
OsInfo[6].Value=2052
OsInfo[7].Key=geoid
OsInfo[7].Value=244
OsInfo[8].Key=sku
OsInfo[8].Value=99
OsInfo[9].Key=domain
OsInfo[9].Value=0
OsInfo[10].Key=prodsuite
OsInfo[10].Value=768
OsInfo[11].Key=ntprodtype
OsInfo[11].Value=1
OsInfo[12].Key=platid
OsInfo[12].Value=10
OsInfo[13].Key=sr
OsInfo[13].Value=0
OsInfo[14].Key=tmsi
OsInfo[14].Value=222621286
OsInfo[15].Key=osinsty
OsInfo[15].Value=3
OsInfo[16].Key=iever
OsInfo[16].Value=11.1.22621.0-11.0.1000
OsInfo[17].Key=portos
OsInfo[17].Value=0
OsInfo[18].Key=ram
OsInfo[18].Value=15792
OsInfo[19].Key=svolsz
OsInfo[19].Value=475
OsInfo[20].Key=wimbt
OsInfo[20].Value=0
OsInfo[21].Key=blddt
OsInfo[21].Value=220506
OsInfo[22].Key=bldtm
OsInfo[22].Value=1250
OsInfo[23].Key=bldbrch
OsInfo[23].Value=ni_release
OsInfo[24].Key=bldchk
OsInfo[24].Value=0
OsInfo[25].Key=wpvermaj
OsInfo[25].Value=0
OsInfo[26].Key=wpvermin
OsInfo[26].Value=0
OsInfo[27].Key=wpbuildmaj
OsInfo[27].Value=0
OsInfo[28].Key=wpbuildmin
OsInfo[28].Value=0
OsInfo[29].Key=osver
OsInfo[29].Value=10.0.22621.3447.amd64fre.ni_release.220506-1250
OsInfo[30].Key=buildflightid
OsInfo[30].Value=BF0C001B-134C-4339-B0E2-ACA19BEB7787.1
OsInfo[31].Key=edition
OsInfo[31].Value=CoreCountrySpecific
OsInfo[32].Key=ring
OsInfo[32].Value=Retail
OsInfo[33].Key=expid
OsInfo[33].Value=RS:1C0C8,FX:122FD564,FX:124117A5,FX:12450782,FX:127987B1,FX:127C84AA,FX:127C8903,FX:127CEB74,FX:127CEBB4,FX:127CEBBE,FX:12816BC3,FX:1283FFBE,FX:128540B9,FX:12857231,FX:1289E17D,FX:1291E0B9,FX:1292F335,FX:12949627,FX:12990CFA,FX:1299897F,FX:129A9592,FX:129ACF14,FX:129EA468,FX:12A097F7,FX:12A2B53E,FX:12A6AC08,FX:12A74DF5,FX:12AB1F49,FX:12AD79BF,FX:12B83F34,FX:12BE4865,FX:12C44B3A,FX:12C44F81,FX:12C614AD,FX:12C6CBBC,FX:12C78DC5,FX:12C8C947,FX:12C96B82,FX:12CC8047,FX:12CEDB88,FX:12D0B2FA,FX:12D13D48,FX:27CF02E,MD:283BAEF,ME:28279A6,ME:2A69053,MD:2E3923D
OsInfo[34].Key=fconid
OsInfo[34].Value=34920336,1,2,0;35409375,0,2,0;35681102,0,1,0;36803287,0,2,1;36803295,0,2,0;36803303,0,2,1;38142198,0,2,0;38277973,0,1,0;38859191,0,2,1;39263329,1,2,0;40025975,0,1,0;40616880,0,1,1;40733296,0,2,1;40883769,0,1,0;40981503,0,1,1;41135193,0,1,1;41137130,0,1,0;41313221,0,2,1;41342175,0,1,1;41772259,0,2,1;42052423,0,2,0;42092123,0,2,1;42105254,0,2,0;42235377,0,2,0;42921948,0,2,1;42922989,0,2,1;43169616,0,1,1;43203978,0,2,1;43572857,0,2,1;43772553,0,1,0;43844371,0,1,1;43978769,0,1,1;43995105,0,2,0;43995122,0,2,0;44325080,0,1,1;44470355,0,2,0;44521793,0,1,0;44552141,0,1,0;45185354,0,2,0;45668242,0,2,1;45732051,0,2,0;45991456,0,1,1;46541070,0,2,0;46551074,0,1,1;46557400,0,1,1;47134595,0,1,1;47205155,0,2,1;47402621,0,2,1;47681899,0,1,1;47916854,0,1,0;47924308,0,1,0;47973375,0,1,0;48057519,0,2,1;48433541,0,1,0;48433706,0,1,0;48433719,0,1,0;48468527,0,1,0;48468541,0,1,0;48503047,0,2,1
OsInfo[35].Key=containerid
OsInfo[36].Key=containertype
OsInfo[37].Key=edu
OsInfo[37].Value=0
OsInfo[38].Key=servicinginprogress
OsInfo[38].Value=0
OsInfo[39].Key=featureupdatependingreboot
OsInfo[39].Value=0
FriendlyEventName=已停止工作(Work has stopped)
ConsentKey=BEX64
AppName=win-vind (x64)
AppPath=C:\Program Files\win-vind\win-vind.exe
NsPartner=windows
NsGroup=windows8
ApplicationIdentity=36E87EC4B1C8D73602E1C5A530370D87
MetadataHash=1244565359

I have no idea what information this file might convey. Any help would be greatly appreciated! :)

pit-ray commented 7 months ago

Are there any error logs in the ~/.win-vind/logs?

Since I want to reproduce this problem with Windows sandbox, could you share your environment, such as Windows buind version or architectures?

Thanks.

knausj85 commented 7 months ago

FWIW I see something similar, this is what's in my win-vind log

========== System Infomation ========== [Windows] Edition: Windows 10 Enterprise Version: 22H2 Build Numbers: 10.0.22621 Architecture: x64

[win-vind] Version: 5.11.3.0

[Message] Version: huge [Error] The parameter is incorrect. [Error] An logic exception occurred: Could not get the needed size of std::wstring. (int cdecl WinMain(struct HINSTANCE ,struct HINSTANCE__ ,char *,int))