OS: Windows 10
Mission Planner Version: 1.3.83
Description:
I just updated from 1.3.77 to 1.3.83 on Windows 10. The way that the new version is parsing COM ports is causing the application to crash and exit after a few seconds. Specifically, I have a TPLink Bluetooth 5.0 adapter that I typically have plugged into my workstation, and this did not cause any issues with the previous version, but in 1.3.83, this device being present on the system during program startup is causing it to crash. Mission Planner starts up correctly if the device is removed prior to starting. When I plug the device back in, the program is fine, but the moment I click the drop-down menu for the ports, the crash occurs.
The screenshot attached shows the banner pulled down in the moment before the program crashes.

Also attached here is a screenshot of the device tree after the adapter is plugged in, the naming isn't unusual?

I used Gemini AI to chew on the log file that is generated in C:\ProgramData\Mission Planner, and the following a snippet of what it thinks is the issue:
The issue you encountered is a well-documented (though rare) behavior in .NET applications on Windows where the Serial Port Enumeration logic hangs or crashes when interacting with specific Bluetooth driver stacks.
What is happening in the code?
Mission Planner populates the COM port dropdown in the top-right corner immediately upon loading the main interface. To do this, it scans the Windows registry and WMI (Windows Management Instrumentation) to find every active serial device.
-
The Culprit: The System.IO.Ports.SerialPort.GetPortNames() method (and the associated WMI queries) can "block" indefinitely if a Bluetooth driver is in a "hanging" state or responding slowly.
-
The Crash: When this call hangs the main UI thread for too long, or if the driver returns a malformed string that the regex parser doesn't expect, the application either hits a timeout it can't recover from or throws an unhandled exception in a background thread that brings down the process.
Which file is to blame?
In the Mission Planner repository, the logic responsible for this is primarily located in:
-
MainV2.cs: Specifically within the methods that initialize the cmbComPort (the COM port selection box). Look for where it calls GetPortNames or its own internal serial utility.
-
MissionPlanner.Comms (Namespace): This is where the custom wrappers for serial communication live.
-
Program.cs: The log you provided showed the crash occurring around line 546. While that specific line is usually part of a "Type Resolver" debug handler (which is why you see the TypeResolve Failed noise), it confirms that the application is still in its heavy initialization phase.
...
The MissionPlanner.log shows the last entries are TypeResolve Failed debugging lines in Program.cs.
The hang likely occurs during the population of the COM port dropdown menu (cmbComPort in MainV2.cs).
Suspected cause: A blocking call to System.IO.Ports.SerialPort.GetPortNames() or a WMI query (SELECT * FROM Win32_PnPEntity) that is stalling on the Bluetooth driver stack.
It would nice if I didn't have to constantly unplug and replug the Bluetooth adapter, and this is a critical issue if users are trying to use the Bluetooth device as a COM port. I hope this can be fixed. Thank you.
OS: Windows 10
Mission Planner Version: 1.3.83
Description:
I just updated from 1.3.77 to 1.3.83 on Windows 10. The way that the new version is parsing COM ports is causing the application to crash and exit after a few seconds. Specifically, I have a TPLink Bluetooth 5.0 adapter that I typically have plugged into my workstation, and this did not cause any issues with the previous version, but in 1.3.83, this device being present on the system during program startup is causing it to crash. Mission Planner starts up correctly if the device is removed prior to starting. When I plug the device back in, the program is fine, but the moment I click the drop-down menu for the ports, the crash occurs.
The screenshot attached shows the banner pulled down in the moment before the program crashes.

Also attached here is a screenshot of the device tree after the adapter is plugged in, the naming isn't unusual?

I used Gemini AI to chew on the log file that is generated in C:\ProgramData\Mission Planner, and the following a snippet of what it thinks is the issue:
It would nice if I didn't have to constantly unplug and replug the Bluetooth adapter, and this is a critical issue if users are trying to use the Bluetooth device as a COM port. I hope this can be fixed. Thank you.