By Costas Chronopoulos 1007469
#517031 Dear Ross,

Thank for the excellent job that you have done regarding this nice pilot client.

I have a major issue with the assignment of the PTT key. I have the same behavior as this issue: viewtopic.php?f=132&t=74531

This is the error that am getting.
Image

Please adice for the solution.

Thank you.
By Bradley Grafelman 1242018
#517033 Note that linking directly to a webpage and not an image itself will not insert the image into your post above. If you're going to use the [img] BBcode tag, make sure you use the URL for the image itself:

Image

Additionally, note that we can only see part of the exception text. I'm guessing that first line under the "Exception Text" label says this (please correct if not):
Code: Select allSharpDX.SharpDXException: HRESULT: [0x8007001E], Module: [SharpDX.DirectInput], ApiCode: [DIERR_INPUTLOST/InputLost], Message: The system cannot read from the specified device.


This same error was also reported here where the OP eventually discovered it was his Saitek gaming keyboard that was leading to the error. Apparently, reinstalling its drivers fixed the problem.

Are you launching vPilot with administrator privileges? If not, I'd try that first. If so... it might come down to unplugging other input devices (e.g. joysticks, gaming keyboards/mice, etc.) one-by-one to see if the error goes away.
By Costas Chronopoulos 1007469
#517034 My apologies for the image. You are right.

The full test of the exception is the following:
Code: Select allSee the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
SharpDX.SharpDXException: HRESULT: [0x8007001E], Module: [SharpDX.DirectInput], ApiCode: [DIERR_INPUTLOST/InputLost], Message: The system cannot read from the specified device.

   at SharpDX.Result.CheckError()
   at SharpDX.DirectInput.Device.GetDeviceState(Int32 arg0, IntPtr arg1)
   at SharpDX.DirectInput.CustomDevice`3.GetCurrentState(T& data)
   at SharpDX.DirectInput.CustomDevice`3.GetCurrentState()
   at df.c()
   at df.c(Object A_0, EventArgs A_1)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8794 (WinRelRS2.050727-8700)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
vPilot
    Assembly Version: 2.1.6.0
    Win32 Version: 2.1.6.0
    CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/vPilot.exe
----------------------------------------
Ninject
    Assembly Version: 3.2.0.0
    Win32 Version: 3.2.2.0
    CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/Ninject.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8784 (WinRel.050727-8700)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8793 (WinRelRS2.050727-8700)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8784 (WinRel.050727-8700)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.8795 built by: WinRel
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Ninject.Extensions.Factory
    Assembly Version: 3.2.0.0
    Win32 Version: 3.2.1.0
    CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/Ninject.Extensions.Factory.DLL
----------------------------------------
Castle.Core
    Assembly Version: 3.2.0.0
    Win32 Version: 3.2.0.2259
    CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/Castle.Core.DLL
----------------------------------------
bbv.Common.EventBroker
    Assembly Version: 0.0.0.0
    Win32 Version: 0.0.0.0
    CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/bbv.Common.EventBroker.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8784 (WinRel.050727-8700)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8784 (WinRel.050727-8700)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
DynamicProxyGenAssembly2
    Assembly Version: 0.0.0.0
    Win32 Version: 3.2.0.2259
    CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/Castle.Core.dll
----------------------------------------
DynamicProxyGenAssembly2
    Assembly Version: 0.0.0.0
    Win32 Version: 3.2.0.2259
    CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/Castle.Core.dll
----------------------------------------
Metacraft.Vatsim.Vpilot.Plugins
    Assembly Version: 2.0.1.0
    Win32 Version: 2.0.1.0
    CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/Metacraft.Vatsim.Vpilot.Plugins.DLL
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
    Assembly Version: 0.0.0.0
    Win32 Version: 2.0.50727.8794 (WinRelRS2.050727-8700)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
protobuf-net
    Assembly Version: 2.0.0.668
    Win32 Version: 2.0.0.668
    CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/protobuf-net.DLL
----------------------------------------
h5x5ngsf
    Assembly Version: 2.1.6.0
    Win32 Version: 2.0.50727.8793 (WinRelRS2.050727-8700)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8784 (WinRel.050727-8700)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
log4net
    Assembly Version: 1.2.10.0
    Win32 Version: 1.2.10.0
    CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/log4net.DLL
----------------------------------------
System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8794 (WinRelRS2.050727-8700)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
SharpDX.DirectInput
    Assembly Version: 2.6.3.0
    Win32 Version: 2.6.3
    CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/SharpDX.DirectInput.DLL
----------------------------------------
SharpDX
    Assembly Version: 2.6.3.0
    Win32 Version: 2.6.3
    CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/SharpDX.DLL
----------------------------------------
Microsoft.FlightSimulator.SimConnect
    Assembly Version: 10.0.61259.0
    Win32 Version: 10.0.61637.0 (FSX-Xpack.20070926-1421)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/Microsoft.FlightSimulator.SimConnect/10.0.61259.0__31bf3856ad364e35/Microsoft.FlightSimulator.SimConnect.dll
----------------------------------------
System.Web.Services
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8784 (WinRel.050727-8700)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
pbrwhdic
    Assembly Version: 2.1.6.0
    Win32 Version: 2.0.50727.8793 (WinRelRS2.050727-8700)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
kn8yzj4q
    Assembly Version: 2.1.6.0
    Win32 Version: 2.0.50727.8793 (WinRelRS2.050727-8700)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
ywmns6gv
    Assembly Version: 2.1.6.0
    Win32 Version: 2.0.50727.8793 (WinRelRS2.050727-8700)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
INIFileParser
    Assembly Version: 2.2.2.0
    Win32 Version: 2.2.2
    CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/INIFileParser.DLL
----------------------------------------
msvcm80
    Assembly Version: 8.0.50727.9307
    Win32 Version: 8.00.50727.9307
    CodeBase: file:///C:/WINDOWS/WinSxS/x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.9307_none_d0882a20442f72e4/msvcm80.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


I have no joystick or rudder input plugged while I am trying to assign the PPT button and I have installed the latest drivers lately.

I tried to do both (admin and "normal" execution of the app) but no change.

Regarding the input devices, since I will unplug the "faulty" one, the app shall run as normal? Is there a restart for example needed or something else?

Thanks for you help!
By Bradley Grafelman 1242018
#517036
Costas Chronopoulos 1007469 wrote:Regarding the input devices, since I will unplug the "faulty" one, the app shall run as normal? Is there a restart for example needed or something else?

I believe vPilot queries the system to enumerate all of the input devices either upon launch or when that settings page is opened. I also believe that Windows updates the list of such devices "live" as devices are added or removed. So, no, you shouldn't need to restart your entire PC after removing a suspected input device - you can likely just close and re-open vPilot.
By Costas Chronopoulos 1007469
#517038 This was what I have just already done while I was "waiting" your reply.

In first place, I removed one-by-one the devices... no change.

After that, I unplugged ALL of the devices... Even mouse and keyboard... only the HDMI was left on the tower.

No change at all... I even made a restart to the PC (just in case) and ran the app as admin and as "normal" execution.

This is sooo weird and annoying... :(
By Bradley Grafelman 1242018
#517040 @Costas: Try downloading this utility made by Ross (he posted it here). Execute it with administrator privileges, and wait for it to output information (it might take a minute or so if you have numerous devices). It's a shot in the dark, but maybe it'll show some weird joystick device that Windows claims you have that vPilot is getting hung up on. If it does output anything, can you post it here?

----------

@Ross - is the (obfuscated name) "df.c()" in the callstack above responsible for making an API call to enumerate a list of input devices, over which it then iterates and calls GetCurrentState() for each one? If so... would it be possible for vPilot to catch a SharpDXException and print the "friendly name" of the device that caused the error?
By Costas Chronopoulos 1007469
#517045 There was no delay for the output.

The output for my current configuration is the below:

Device "Unified Virtual HID":
- Type: Supplemental
- Subtype: 258
- IsHID: True
- Attached: yes
Device "Unified Virtual HID":
- Type: Supplemental
- Subtype: 258
- IsHID: True
- Attached: yes
Device "Unified Virtual HID":
- Type: Supplemental
- Subtype: 258
- IsHID: True
- Attached: yes
Device "Unified Virtual HID":
- Type: Gamepad
- Subtype: 258
- IsHID: True
- Attached: yes
By Bradley Grafelman 1242018
#517046 I take it you use the Unified Remote software? A cursory Google search led me to this post on the Steam forums that talked about some games experiencing problems due to this software's HID driver.

I'm not familiar with that software or how vPilot might interact with it, so I'll let Ross comment further with any suggestions. Best of luck to you both. :)
By Costas Chronopoulos 1007469
#517047 Oh my god....!

That was the solution....! I removed the Unified Remote Control (is an application that let you take control of your PC via a smartphone) and it worked....!

Thank you sooo much for your time and your effort on this. Is really appreciated.
By Bradley Grafelman 1242018
#517050 After you uninstalled the application and its drivers, did you try running the "portable" version? This part of the Steam post made it sound as if you could maintain the software's functionality without using the HID driver:
You can use the Portable version of Unified Remote just fine, but the installed version seems to cause this issue.


Of course, if part of your need for this software depends on using it before manually launching an app on the PC... that probably won't be very helpful.

Did you try making sure you were using the latest version of the application/drivers? Did you try closing the Unified Remote app (and perhaps stop its Windows service(s), if any) before launching vPilot? If so... I'm afraid it sounds like your only option is to hope that Ross is open to a feature/change request for vPilot (e.g. catching this error and skipping/ignoring input devices that generate it).
By Ross Carlson 887155
#517051
Costas Chronopoulos 1007469 wrote:The problem is that I need this applications.

Is there any walk-around solution for this?

vPilot works only if I uninstall the server for the application...


Costas, please try this version:

http://vpilot.metacraft.com/Assets/File ... -2.1.7.exe

I haven't fully tested it, but it should ignore any USB device that it cannot read from.

Please give it a try and report back here. If it works, I'll release it through the automatic update for other users.
By Costas Chronopoulos 1007469
#517061 You are the best!!

For me at least, it worked!!

I have installed the application that caused the issue and the vPilot is working properly!

Another thing that I have noticed: Regarding the model matching, the default model is required to be written manually. This is quite tricky (on personal view) to achieve an exact "spelling" of the model. Could it be given as a drop-down choice? Fro example, on the version that I have just tested, the "Airbus A321" is the default, but in the P3D V4, there is no Airbus A321 model and I am getting a warning.

One last thing, that maybe is covered: what about giving the choice of manual assignment of the model matching? Like the function that was available in FSinn?

Thank you again for everything...! You effort is highly appreciated!