MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

icon
Avatar
Silicus
Posts: 11
Hi,

I have two Megas and created approximately 80 functions for my home cockpit WIP under 8.1, which work great.
Updating from 8.1 downloading 9.1 or using 9.1.0.5 beta all result in 'unhandled exception' message when the Arduinos are plugged in.

Can I update the Megas via the Arduino IDE (which code file should I use for that), should I reset the Arduinos and upload the 9.1 firmware via the Mobiflight connector, what would be the best way to proceed?
Any help and insides would be much appreciated, as I am stuck right now...

Thank you!
2021-12-17 05:00
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

I don“t know this issue..... But for sure i also never try a update with those big steps. Regularry a user update just from one Release to the other and not jump over multiple patches that include also multiple Firmware Updates.... (Whatever it "should" also work in your situation )

If you like you can try a easy workaround.

1. Re-Install your 8.1 and confirm it still work there.
If Yes... Use that working VErsion to open your Board settings and make a SAVE of the mfmc File ( If you not already do) for both boards.

2. Open Arduino IDE and upload the EEPROM Clear Sketch to the Boards.
This will delete the whole boards and they are empty like in production state.

3. Plug in the Board(s) and start 9.1 ..... It should detect the Board and offert to upload Firmware.....
(May using only one board at a time for this update is also a good idea)

4. At last you can use your Backup MFMC Files so you can re-upload your Devices without make them for new !
Good Luck !
2021-12-17 07:30
Avatar
Silicus
Posts: 11
Thank you pizman, I will give it a go.
Your input is much appreciated!
2021-12-17 08:08
Avatar
Silicus
Posts: 11
For DocMoebiuz regarding Discord conversation, pasted log from unhandled exception dialog . JFlyer on Discord


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at MobiFlight.MobiFlightModule.LoadConfig()
at MobiFlight.MobiFlightModule.Connect()
at MobiFlight.MobiFlightCache.<>c__DisplayClass30_1.<LookupAllConnectedArduinoModulesAsync>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MobiFlight.MobiFlightCache.<LookupAllConnectedArduinoModulesAsync>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MobiFlight.MobiFlightCache.<connectAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MobiFlight.ExecutionManager.<AutoConnectTimer_TickAsync>d__109.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4420.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
MFConnector
Assembly Version: 9.1.0.5
Win32 Version: 9.1.0.5
CodeBase: file:///C:/Users/jalle/Downloads/MFConnector.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4400.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
Newtonsoft.Json
Assembly Version: 13.0.0.0
Win32 Version: 13.0.1.25517
CodeBase: file:///C:/Users/jalle/Downloads/Newtonsoft.Json.DLL
----------------------------------------
System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4250.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
FSUIPCClient
Assembly Version: 3.1.25.341
Win32 Version: 3.1.25.341
CodeBase: file:///C:/Users/jalle/Downloads/FSUIPCClient.DLL
----------------------------------------
ArcazeHid
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/jalle/Downloads/ArcazeHid.DLL
----------------------------------------
SharpDX.DirectInput
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Users/jalle/Downloads/SharpDX.DirectInput.DLL
----------------------------------------
SharpDX
Assembly Version: 4.2.0.0
Win32 Version: 4.2.0
CodeBase: file:///C:/Users/jalle/Downloads/SharpDX.DLL
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
CommandMessenger
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/jalle/Downloads/CommandMessenger.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.
2021-12-17 21:45
Avatar
missamo80
Posts: 32
Opened a bug: https://github.com/MobiFlight/MobiFlight-Connector/issues/616
2021-12-17 22:01
Avatar
Silicus
Posts: 11
For DocMoebiuz: config 1

<Config>
<ModuleName/>
<PowerSavingTime>600</PowerSavingTime>
<Button Name="Landing Gear" Pin="50"/>
<Button Name="Button" Pin="51"/>
<Button Name="Flaps Up" Pin="34"/>
<Button Name="Flaps 1" Pin="33"/>
<Button Name="Flaps 2" Pin="32"/>
<Button Name="Flaps 3" Pin="31"/>
<Button Name="Flaps Full" Pin="30"/>
<Button Name="Strobe" Pin="36"/>
<Button Name="Beacon" Pin="37"/>
<Button Name="WingLight" Pin="38"/>
<Button Name="NavLight" Pin="39"/>
<Button Name="RwyLight" Pin="40"/>
<Button Name="LandingLightL" Pin="41"/>
<Button Name="LandingLightR" Pin="42"/>
<Button Name="TaxiLight" Pin="43"/>
<Button Name="TOLight" Pin="44"/>
<Button Name="ButtonClickVS" Pin="23"/>
<Encoder Name="Encoder1" PinLeft="26" PinRight="27" EncoderType="0"/>
<Encoder Name="Encoder2" PinLeft="24" PinRight="25" EncoderType="0"/>
<Button Name="ButtonClickAlt" Pin="22"/>
<Button Name="Button 2" Pin="2"/>
<Encoder Name="EncoderHdg" PinLeft="46" PinRight="47" EncoderType="1"/>
<Encoder Name="EncoderSpd" PinLeft="48" PinRight="49" EncoderType="0"/>
<LedModule Name="LedModule" DinPin="13" ClsPin="12" ClkPin="11" Brightness="8" NumModules="1"/>
<Button Name="Button 2" Pin="3"/>
<Button Name="Auto_Brake_Low" Pin="10"/>
<Output Name="Gear Transition" Pin="15"/>
<Output Name="Gear Down" Pin="8"/>
</Config>
2021-12-19 03:54
Avatar
Silicus
Posts: 11
For DocMoebiuz config 2 for second Arduino Mega

<Config>
<ModuleName/>
<PowerSavingTime>600</PowerSavingTime>
<Output Name="Wing AntiIce_LED" Pin="23"/>
<Output Name="Nose Gear Down" Pin="30"/>
<Output Name="Nose Gear Moving" Pin="31"/>
<Output Name="Right Gear Down" Pin="32"/>
<Output Name="Right Gear Movin" Pin="33"/>
<Output Name="Left Gear Down" Pin="34"/>
<Output Name="Left Gear Movin" Pin="35"/>
<Button Name="AuBrkLow" Pin="27"/>
<Button Name="AuBrkMed" Pin="36"/>
<Button Name="AuBrkMax" Pin="24"/>
<Output Name="AuBrkLoOn" Pin="29"/>
<Output Name="AuBrkMedOn" Pin="38"/>
<Output Name="AuBrkMaxOn" Pin="26"/>
<Output Name="AuBrkLowDec" Pin="28"/>
<Output Name="AuBrkMedDec" Pin="37"/>
<Output Name="AuBrkMaxDec" Pin="25"/>
<LedModule Name="Altitude " DinPin="40" ClsPin="41" ClkPin="42" Brightness="15" NumModules="1"/>
<LedModule Name="VS" DinPin="43" ClsPin="44" ClkPin="45" Brightness="15" NumModules="1"/>
<Button Name="FCU_Speed_Toggle" Pin="47"/>
<Output Name="AP_Master" Pin="13"/>
<Button Name="Chrono" Pin="46"/>
</Config>
2021-12-19 03:56
Avatar
Silicus
Posts: 11
[solved and fixed]
A combination of user carelessness :-/ (2 x Botton 2) and the new beta have resolved my issue!
Thanks for everyone chiming in and for your help @DocMoebiuz! Much appreciated!
2021-12-20 00:08
icon