CLI only works when running as Admininstrator

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
dedupeit
Posts: 10
Joined: Thu Jul 28, 2022 9:52 pm

CLI only works when running as Admininstrator

Post by dedupeit »

Hi all, I've had this working in the past but just did a fresh install of Windows and now running into this issue.

I've installed 1.5a and run it as a service. I do NOT have any other version installed. I've also installed the CLI tool.

If I try to run es.exe normally, it returns errorlevel -1073741819 (which is 0xC0000005...Access Violation). But if I run the command prompt as Administrator and then run es.exe, it works fine. Any idea why this would be the case? Reason I ask is that I'm trying to script something and I'm not sure I can debug my script as Admin so my debug attempts end up with that error.
horst.epp
Posts: 1443
Joined: Fri Apr 04, 2014 3:24 pm

Re: CLI only works when running as Admininstrator

Post by horst.epp »

You have set the option "Run as adminitrator" and "Start Everything on system startup"
This way es.exe can't communicate with the running Everything.
Remove the Option "Run as administrator" as this should not be set.
dedupeit
Posts: 10
Joined: Thu Jul 28, 2022 9:52 pm

Re: CLI only works when running as Admininstrator

Post by dedupeit »

Sorry I should have mentioned that before. I do NOT have "Run as administrator" enabled

Image
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: CLI only works when running as Admininstrator

Post by void »

ES can communicate with Everything when Everything is running as a different user.

Do you have any dlls in the same location as your ES.exe ?

Do you have an es.ini in the same location as your ES.exe ?
-Could you please send it to support@voidtools.com

Is a crash dialog shown?
-If so, could you please send a mini crash dump when the crash dialog is shown.

Do you have any crash dumps in %LOCALAPPDATA%\crashdumps for es?
-Could you please send any to support@voidtools.com
dedupeit
Posts: 10
Joined: Thu Jul 28, 2022 9:52 pm

Re: CLI only works when running as Admininstrator

Post by dedupeit »

Just emailed you that information. Thanks for your help with this!
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: CLI only works when running as Admininstrator

Post by void »

Thank you for the crash dumps.

ES was crashing when loading your es.ini

Please try ES 1.1.0.24 for a fix.
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: CLI only works when running as Admininstrator

Post by therube »

What was peculiar about the .ini to cause the crash?


it returns errorlevel -1073741819
Just to note, if you google that you get rather involved "fixes" (none of which seemingly would have been appropriate).
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: CLI only works when running as Admininstrator

Post by void »

ES (1.1.0.23 and earlier) was corrupting the stack when loading an es.ini from C:\Users\<your username>\AppData\Local\VirtualStore\Program Files\Everything 1.5a\es.ini

The errorlevel -1073741819 (0xC0000005) is being set by the calling application (not es.exe)
Post Reply