HeliosVirtualCockpit / Helios

Helios Distribution
https://github.com/HeliosVirtualCockpit/Helios/wiki
GNU General Public License v3.0
207 stars 35 forks source link

Unhandled exception in WindowsBase when dragging bindings #838

Closed tomaspaseka closed 1 month ago

tomaspaseka commented 2 months ago

Describe the Helios Issue

Steps to Reproduce the problem

Steps to reproduce the behavior:

  1. Open Binding panel
  2. Select some control
  3. Switch to Output
  4. Select some action and drag it to e.g. pushed "Bindings"
  5. Drop it -> error appears

Expected behavior

*I can set binding properly

Screenshots

*image

Please complete the following information:

The problem happened while using

(place an 'x' between the square brackets for all that apply)

Additional context

Add any other context about the problem here. (eg this problem started happening when I ....)

BlueFinBima commented 2 months ago

Hi Tomas, Firstly, thanks for filling out the template.

Your screenshot suggests that you've successfully dragged at least two (presumably) interface output bindings onto controls, so I'm guessing that this does not happen every time you're dragging a binding. Can you narrow down when this problem happens, and when it does not happen?

If you're able to recreate this problem, then please attach %userprofile%\documents\Helios\Profile Editor Problems.log and %userprofile%\documents\Helios\Profile Editor.log of the run where the problem happened.

Is this the first time you're using Profile Editor?

Have you seen this problem when using other releases of Helios?

What release of Windows are you running? Please run systeminfo >%userprofile%\documents\helios\systeminfo.txt from the command line and attach %userprofile%\documents\Helios\systeminfo.txt to this issue.

I'm not able to reproduce this problem BTW.

Please review the contents of all of the files you plan to upload to ensure that they do not contain any information you do not wish to be made public in this issue

tomaspaseka commented 2 months ago

I've created my cockpit few months ago (not sure witch version). I've experiences this issue from time to time, but now it's 100% reproducible and I'm unable to change any mapping.

I've tried that on two different computers, one with DCS and another without, but it's reproducible on both.

I've created new profile and it works fine, so it seems that problem is my cockpit. That is strange because cockpit is working just fine.

Profile Editor Problems.log Profile Editor.log

F-15E-remote-DCS-ext-6-local.zip

BlueFinBima commented 2 months ago

Hi Tomas, thanks for the additional information and attaching the files. If you copied your profile's .hpf file and the .hply file to the second computer, then I think there is a good chance that the problem is a corrupt .hply file. If this is the case, I suggest renaming the .hply file to something with a different file suffix, and re-run the tests. Profile Editor will not care that the .hply file is missing.

If this fixes or changes the problem, then please attach the .hply file that corresponds to the profile you sent me.

I see no problems binding new elements to the profile you included above.

Regards

tomaspaseka commented 2 months ago

Thanks that was it. I've deleted .hply and it works fine.

Thanks a lot.

BlueFinBima commented 1 month ago

Closing as stale.