Run .exe not working when Yawcam is running as service
-
- Moderator
- Posts: 1210
- Joined: Wed Jan 14, 2009 3:50 am
Re: Run .exe not working when Yawcam is running as service
You are correct, that compiled exe will only work when running as a service.
So the command you set to run didn't run when it launched?
Can you try to capture the logs with Process Monitor to see if the compiled exe launches and see if it tries to launch your command?
You may have to remove some filters from yesterday to see the right logs.
So the command you set to run didn't run when it launched?
Can you try to capture the logs with Process Monitor to see if the compiled exe launches and see if it tries to launch your command?
You may have to remove some filters from yesterday to see the right logs.
-
- Posts: 14
- Joined: Thu Sep 10, 2015 6:22 pm
Re: Run .exe not working when Yawcam is running as service
Yes, I can get more logs when I get back to my computer- give me an hour or three.
-
- Posts: 14
- Joined: Thu Sep 10, 2015 6:22 pm
Re: Run .exe not working when Yawcam is running as service
Okay, a log called 'regedit.PML' was just uploaded to http://michionlion.no-ip.org/stuff.
-
- Moderator
- Posts: 1210
- Joined: Wed Jan 14, 2009 3:50 am
Re: Run .exe not working when Yawcam is running as service
Ok, so I see in the logs that Launch_Regedit.exe executes, it gets to the point where it searches for C:\windows\regedit.exe then crashes, but I don't know why.
Can you check in Event Viewer for logs from "Interactive Launcher" under Application and see if you have an error message there?
Can you check in Event Viewer for logs from "Interactive Launcher" under Application and see if you have an error message there?
-
- Posts: 14
- Joined: Thu Sep 10, 2015 6:22 pm
Re: Run .exe not working when Yawcam is running as service
Okay, open Event Viewer, I'm on Windows 10 so there appears to be no "Interactive Launcher" under application, but in the list of logs there are some with source=Interactive_Launcher. The ones with that as the source all have Event ID 0, and these xml files for info:
Those were organized with earliest to the top, but they all occurred within one second of each other. Also present were two events from Windows Error Reporting, with Event ID 1001. These are their xml info sheets, and below those is the text from one of the .ver file (I couldn't find the other, it appeared to be deleted?)
And then the .ver file:
Code: Select all
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Interactive_Launcher" />
<EventID Qualifiers="0">0</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-09-12T01:35:47.000000000Z" />
<EventRecordID>7167</EventRecordID>
<Channel>Application</Channel>
<Computer>Saejin-DESKTOP</Computer>
<Security />
</System>
- <EventData>
<Data>Inside StartProcessInSession</Data>
</EventData>
</Event>
Code: Select all
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Interactive_Launcher" />
<EventID Qualifiers="0">0</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-09-12T01:35:47.000000000Z" />
<EventRecordID>7168</EventRecordID>
<Channel>Application</Channel>
<Computer>Saejin-DESKTOP</Computer>
<Security />
</System>
- <EventData>
<Data>Session ID: 1</Data>
</EventData>
</Event>
Code: Select all
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Interactive_Launcher" />
<EventID Qualifiers="0">0</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-09-12T01:35:47.000000000Z" />
<EventRecordID>7169</EventRecordID>
<Channel>Application</Channel>
<Computer>Saejin-DESKTOP</Computer>
<Security />
</System>
- <EventData>
<Data>Token: 792</Data>
</EventData>
</Event>
Code: Select all
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Interactive_Launcher" />
<EventID Qualifiers="0">0</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-09-12T01:35:47.000000000Z" />
<EventRecordID>7170</EventRecordID>
<Channel>Application</Channel>
<Computer>Saejin-DESKTOP</Computer>
<Security />
</System>
- <EventData>
<Data>User Env: 15657744</Data>
</EventData>
</Event>
Code: Select all
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Interactive_Launcher" />
<EventID Qualifiers="0">0</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-09-12T01:35:47.000000000Z" />
<EventRecordID>7171</EventRecordID>
<Channel>Application</Channel>
<Computer>Saejin-DESKTOP</Computer>
<Security />
</System>
- <EventData>
<Data>Could Not Create Process.</Data>
</EventData>
</Event>
Code: Select all
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Windows Error Reporting" />
<EventID Qualifiers="0">1001</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-09-12T01:35:47.000000000Z" />
<EventRecordID>7172</EventRecordID>
<Channel>Application</Channel>
<Computer>Saejin-DESKTOP</Computer>
<Security />
</System>
- <EventData>
<Data />
<Data>0</Data>
<Data>CLR20r3</Data>
<Data>Not available</Data>
<Data>0</Data>
<Data>launch_regedit.exe</Data>
<Data>0.0.0.0</Data>
<Data>55f35295</Data>
<Data>Launch_Regedit</Data>
<Data>0.0.0.0</Data>
<Data>55f35295</Data>
<Data>4</Data>
<Data>12f</Data>
<Data>System.ComponentModel.Win32</Data>
<Data />
<Data />
<Data>C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_launch_regedit.e_328031bead304af3cc157adc61a5d82c34c1d8c5_00000000_0f9ae6ff</Data>
<Data />
<Data>0</Data>
<Data>96d0c9bb-58ee-11e5-8372-d850e64f3588</Data>
<Data>4100</Data>
<Data />
</EventData>
</Event>
Code: Select all
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Windows Error Reporting" />
<EventID Qualifiers="0">1001</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-09-12T01:35:47.000000000Z" />
<EventRecordID>7173</EventRecordID>
<Channel>Application</Channel>
<Computer>Saejin-DESKTOP</Computer>
<Security />
</System>
- <EventData>
<Data>128912154107</Data>
<Data>5</Data>
<Data>CLR20r3</Data>
<Data>Not available</Data>
<Data>0</Data>
<Data>launch_regedit.exe</Data>
<Data>0.0.0.0</Data>
<Data>55f35295</Data>
<Data>Launch_Regedit</Data>
<Data>0.0.0.0</Data>
<Data>55f35295</Data>
<Data>4</Data>
<Data>12f</Data>
<Data>System.ComponentModel.Win32</Data>
<Data />
<Data />
<Data>C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_launch_regedit.e_328031bead304af3cc157adc61a5d82c34c1d8c5_00000000_1972e99f</Data>
<Data />
<Data>0</Data>
<Data>96d0c9bb-58ee-11e5-8372-d850e64f3588</Data>
<Data>4104</Data>
<Data>d0cfde3c55fa0bbba1a69a0beba17ea5</Data>
</EventData>
</Event>
Code: Select all
Version=1
EventType=CLR20r3
EventTime=130864953470394427
ReportType=2
Consent=1
UploadTime=130864953471705686
ReportIdentifier=96d0c9bb-58ee-11e5-8372-d850e64f3588
Response.BucketId=d0cfde3c55fa0bbba1a69a0beba17ea5
Response.BucketTable=5
Response.LegacyBucketId=128912154107
Response.type=4
Sig[0].Name=Problem Signature 01
Sig[0].Value=launch_regedit.exe
Sig[1].Name=Problem Signature 02
Sig[1].Value=0.0.0.0
Sig[2].Name=Problem Signature 03
Sig[2].Value=55f35295
Sig[3].Name=Problem Signature 04
Sig[3].Value=Launch_Regedit
Sig[4].Name=Problem Signature 05
Sig[4].Value=0.0.0.0
Sig[5].Name=Problem Signature 06
Sig[5].Value=55f35295
Sig[6].Name=Problem Signature 07
Sig[6].Value=4
Sig[7].Name=Problem Signature 08
Sig[7].Value=12f
Sig[8].Name=Problem Signature 09
Sig[8].Value=System.ComponentModel.Win32
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=10.0.10240.2.0.0.256.48
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1033
UI[2]=C:\Program Files (x86)\Yawcam\userFiles\Launch_Regedit.exe
LoadedModule[0]=C:\Program Files (x86)\Yawcam\userFiles\Launch_Regedit.exe
LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\WINDOWS\SYSTEM32\MSCOREE.DLL
LoadedModule[3]=C:\WINDOWS\system32\KERNEL32.dll
LoadedModule[4]=C:\WINDOWS\system32\KERNELBASE.dll
LoadedModule[5]=C:\WINDOWS\system32\ADVAPI32.dll
LoadedModule[6]=C:\WINDOWS\system32\msvcrt.dll
LoadedModule[7]=C:\WINDOWS\system32\sechost.dll
LoadedModule[8]=C:\WINDOWS\system32\RPCRT4.dll
LoadedModule[9]=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscoreei.dll
LoadedModule[10]=C:\WINDOWS\system32\SHLWAPI.dll
LoadedModule[11]=C:\WINDOWS\system32\combase.dll
LoadedModule[12]=C:\WINDOWS\system32\GDI32.dll
LoadedModule[13]=C:\WINDOWS\system32\USER32.dll
LoadedModule[14]=C:\WINDOWS\system32\kernel.appcore.dll
LoadedModule[15]=C:\WINDOWS\SYSTEM32\VERSION.dll
LoadedModule[16]=C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll
LoadedModule[17]=C:\WINDOWS\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.9185_none_88e323712fabe0b2\MSVCR80.dll
LoadedModule[18]=C:\WINDOWS\system32\shell32.dll
LoadedModule[19]=C:\WINDOWS\system32\windows.storage.dll
LoadedModule[20]=C:\WINDOWS\system32\shcore.dll
LoadedModule[21]=C:\WINDOWS\system32\powrprof.dll
LoadedModule[22]=C:\WINDOWS\system32\profapi.dll
LoadedModule[23]=C:\WINDOWS\assembly\NativeImages_v2.0.50727_64\mscorlib\91a4b48cca231bafafe8b8b1de78487c\mscorlib.ni.dll
LoadedModule[24]=C:\WINDOWS\system32\ole32.dll
LoadedModule[25]=C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll
LoadedModule[26]=C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorjit.dll
LoadedModule[27]=C:\WINDOWS\assembly\NativeImages_v2.0.50727_64\System\042a21e47eb8693a9393028c639e93c6\System.ni.dll
LoadedModule[28]=C:\WINDOWS\SYSTEM32\wtsapi32.dll
LoadedModule[29]=C:\WINDOWS\SYSTEM32\WINSTA.dll
LoadedModule[30]=C:\WINDOWS\SYSTEM32\userenv.dll
LoadedModule[31]=C:\WINDOWS\SYSTEM32\SspiCli.dll
State[0].Key=Transport.DoneStage1
State[0].Value=1
FriendlyEventName=Stopped working
ConsentKey=CLR20r3
AppName=Launch_Regedit.exe
AppPath=C:\Program Files (x86)\Yawcam\userFiles\Launch_Regedit.exe
ReportDescription=Stopped working
ApplicationIdentity=00000000000000000000000000000000
-
- Moderator
- Posts: 1210
- Joined: Wed Jan 14, 2009 3:50 am
Re: Run .exe not working when Yawcam is running as service
Can you open a command prompt and try the command "Query Session"?
The script is hardcoded to session 1, so I'm wondering if you have anything else?
You should see 2 sessions, one of them will be "services" which should have ID 0, which is the session the services including Yawcam are running under.
The other session should say "console" and the session ID should be 1. If it's not, let me know, I do have a longer version of the script that is more complex and can accomodate other session IDs.
EDIT: I'm heading to bed, so take your time.
The script is hardcoded to session 1, so I'm wondering if you have anything else?
You should see 2 sessions, one of them will be "services" which should have ID 0, which is the session the services including Yawcam are running under.
The other session should say "console" and the session ID should be 1. If it's not, let me know, I do have a longer version of the script that is more complex and can accomodate other session IDs.
EDIT: I'm heading to bed, so take your time.
-
- Posts: 14
- Joined: Thu Sep 10, 2015 6:22 pm
Re: Run .exe not working when Yawcam is running as service
Nope, services ID is 0, console ID is 1!
-
- Moderator
- Posts: 1210
- Joined: Wed Jan 14, 2009 3:50 am
Re: Run .exe not working when Yawcam is running as service
Can you try recompiling the launcher with another exe you have on your system instead of regedit.exe?
-
- Posts: 14
- Joined: Thu Sep 10, 2015 6:22 pm
Re: Run .exe not working when Yawcam is running as service
Just did, same run warning (can't delete <nameofexe>.pdb), tried to run from Yawcam as service, same result. Log (anotherexe.PML) is at the same place as last time, http://michionlion.no-ip.org/stuff
-
- Moderator
- Posts: 1210
- Joined: Wed Jan 14, 2009 3:50 am
Re: Run .exe not working when Yawcam is running as service
This is baffling me, I'll have to upgrade a PC to Windows 10 to try it out.
Which version of .Net Framework do you have installed?
Which version of .Net Framework do you have installed?
-
- Posts: 14
- Joined: Thu Sep 10, 2015 6:22 pm
Re: Run .exe not working when Yawcam is running as service
4.5.1 Multi-Targeting Pack, 4.5 Multi-Targeting Pack, the 4.5.1 SDK, and ASP.NET MVC 4 Runtime