Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

PTT Key Assignment Crash Error


Costas Chronopoulos 100746
 Share

Recommended Posts

Costas Chronopoulos 100746
Posted
Posted

Dear Ross,

 

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

 

I have a major issue with the [Mod - Happy Thoughts]ignment 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.

gb5gr4

 

Please adice for the solution.

 

Thank you.

Link to comment
Share on other sites

Bradley Grafelman
Posted
Posted

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 BBVZ-qVwSyKUXpjDdFrV9w.png

 

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):

SharpDX.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.

Link to comment
Share on other sites

Costas Chronopoulos 100746
Posted
Posted

My apologies for the image. You are right.

 

The full test of the exception is the following:

See 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 [Mod - Happy Thoughts]emblies **************
mscorlib
   [Mod - Happy Thoughts]embly 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
   [Mod - Happy Thoughts]embly Version: 2.1.6.0
   Win32 Version: 2.1.6.0
   CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/vPilot.exe
----------------------------------------
Ninject
   [Mod - Happy Thoughts]embly Version: 3.2.0.0
   Win32 Version: 3.2.2.0
   CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/Ninject.DLL
----------------------------------------
System.Windows.Forms
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.8784 (WinRel.050727-8700)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.8793 (WinRelRS2.050727-8700)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.8784 (WinRel.050727-8700)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Core
   [Mod - Happy Thoughts]embly Version: 3.5.0.0
   Win32 Version: 3.5.30729.8795 built by: WinRel
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Ninject.Extensions.Factory
   [Mod - Happy Thoughts]embly 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
   [Mod - Happy Thoughts]embly 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
   [Mod - Happy Thoughts]embly 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
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.8784 (WinRel.050727-8700)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.8784 (WinRel.050727-8700)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
DynamicProxyGen[Mod - Happy Thoughts]embly2
   [Mod - Happy Thoughts]embly Version: 0.0.0.0
   Win32 Version: 3.2.0.2259
   CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/Castle.Core.dll
----------------------------------------
DynamicProxyGen[Mod - Happy Thoughts]embly2
   [Mod - Happy Thoughts]embly 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
   [Mod - Happy Thoughts]embly 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 [Mod - Happy Thoughts]embly
   [Mod - Happy Thoughts]embly Version: 0.0.0.0
   Win32 Version: 2.0.50727.8794 (WinRelRS2.050727-8700)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
protobuf-net
   [Mod - Happy Thoughts]embly Version: 2.0.0.668
   Win32 Version: 2.0.0.668
   CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/protobuf-net.DLL
----------------------------------------
h5x5ngsf
   [Mod - Happy Thoughts]embly Version: 2.1.6.0
   Win32 Version: 2.0.50727.8793 (WinRelRS2.050727-8700)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Accessibility
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.8784 (WinRel.050727-8700)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
log4net
   [Mod - Happy Thoughts]embly Version: 1.2.10.0
   Win32 Version: 1.2.10.0
   CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/log4net.DLL
----------------------------------------
System.Management
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.8794 (WinRelRS2.050727-8700)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
SharpDX.DirectInput
   [Mod - Happy Thoughts]embly Version: 2.6.3.0
   Win32 Version: 2.6.3
   CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/SharpDX.DirectInput.DLL
----------------------------------------
SharpDX
   [Mod - Happy Thoughts]embly Version: 2.6.3.0
   Win32 Version: 2.6.3
   CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/SharpDX.DLL
----------------------------------------
Microsoft.FlightSimulator.SimConnect
   [Mod - Happy Thoughts]embly Version: 10.0.61259.0
   Win32 Version: 10.0.61637.0 (FSX-Xpack.20070926-1421)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_32/Microsoft.FlightSimulator.SimConnect/10.0.61259.0__31bf3856ad364e35/Microsoft.FlightSimulator.SimConnect.dll
----------------------------------------
System.Web.Services
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.8784 (WinRel.050727-8700)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
pbrwhdic
   [Mod - Happy Thoughts]embly Version: 2.1.6.0
   Win32 Version: 2.0.50727.8793 (WinRelRS2.050727-8700)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
kn8yzj4q
   [Mod - Happy Thoughts]embly Version: 2.1.6.0
   Win32 Version: 2.0.50727.8793 (WinRelRS2.050727-8700)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
ywmns6gv
   [Mod - Happy Thoughts]embly Version: 2.1.6.0
   Win32 Version: 2.0.50727.8793 (WinRelRS2.050727-8700)
   CodeBase: file:///C:/WINDOWS/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
INIFileP[Mod - Happy Thoughts]r
   [Mod - Happy Thoughts]embly Version: 2.2.2.0
   Win32 Version: 2.2.2
   CodeBase: file:///C:/Users/Costas/AppData/Local/vPilot/INIFileP[Mod - Happy Thoughts]r.DLL
----------------------------------------
msvcm80
   [Mod - Happy Thoughts]embly 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 [Mod - Happy Thoughts]ign 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!

Link to comment
Share on other sites

Bradley Grafelman
Posted
Posted
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.

Link to comment
Share on other sites

Costas Chronopoulos 100746
Posted
Posted

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...

Link to comment
Share on other sites

Bradley Grafelman
Posted
Posted

@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?

Link to comment
Share on other sites

Costas Chronopoulos 100746
Posted
Posted

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

Link to comment
Share on other sites

Bradley Grafelman
Posted
Posted

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.

Link to comment
Share on other sites

Costas Chronopoulos 100746
Posted
Posted

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.

Link to comment
Share on other sites

Costas Chronopoulos 100746
Posted
Posted

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...

Link to comment
Share on other sites

Bradley Grafelman
Posted
Posted

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).

Link to comment
Share on other sites

Ross Carlson
Posted
Posted
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/[Mod - Happy Thoughts]ets/Files/Installers/vPilot-Setup-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.

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Costas Chronopoulos 100746
Posted
Posted

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 [Mod - Happy Thoughts]ignment of the model matching? Like the function that was available in FSinn?

 

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

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

I've just released a new build with version 2.1.7 which adds a few more tweaks, so you'll want to re-download it.

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

 Share