ArduPilot / ArduPilot/MissionPlanner

MP crash when accepting offer to upgrade.

Open
#263 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2.4k
Forks
2.9k
Avg merge
19h 16m
Merged PRs (30d)
4

Description

I run 1.2.84 , it sees an upgrade, when I accept the upgrade, it crashes.

andre@Loke:~/MP$ mono ./MissionPlanner.exe
log4net:WARN Cannot RollFile [/home/andre/MP/ArdupilotPlanner.log.1] -> [/home/andre/MP/ArdupilotPlanner.log.2013-10-27.1]. Source does not exist
If your error is about Microsoft.DirectX.DirectInput, please install the latest directx redist from here http://www.microsoft.com/en-us/download/details.aspx?id=35

Debug under mono MONO_LOG_LEVEL=debug mono MissionPlanner.exe
INFO Program - ******************\* Logging Configured *******************
INFO MissionPlanner.MainV2 - Mainv2 ctor
INFO MissionPlanner.Utilities.Speech - TTS: init, mono = True
INFO MissionPlanner.MainV2 - Create FD
INFO MissionPlanner.GCSViews.FlightData - Ctor Start
System.NullReferenceException: Object reference not set to an instance of an object
at MissionPlanner.Comms.SerialPort.Dispose (Boolean disposing) [0x00000] in :0
System.NullReferenceException: Object reference not set to an instance of an object
at MissionPlanner.Comms.SerialPort.Dispose (Boolean disposing) [0x00000] in :0
INFO MissionPlanner.GCSViews.FlightData - Components Done
INFO MissionPlanner.GCSViews.FlightData - Tunning Graph Settings
INFO MissionPlanner.GCSViews.FlightData - HUD Settings
INFO MissionPlanner.Common - getModesList Called
Using backup param data
INFO MissionPlanner.GCSViews.FlightData - Graph Setup
INFO MissionPlanner.GCSViews.FlightData - Map Setup
INFO MissionPlanner.MainV2 - Create FP
INFO MissionPlanner.MainV2 - Create SIM
INFO MissionPlanner.MainV2 - Create Python
INFO MissionPlanner.MainV2 - myview width 1016 height 672
INFO MissionPlanner.MainV2 - this width 1024 height 699
INFO MissionPlanner.MainV2 - myview width 1486 height 672
INFO MissionPlanner.MainV2 - this width 1494 height 699
Open MissionPlanner.GCSViews.FlightData FlightData
INFO MissionPlanner.GCSViews.FlightData - Activate Called
INFO MissionPlanner.Controls.HUD - Vendor: NVIDIA Corporation
INFO MissionPlanner.Controls.HUD - Version: 4.3.0 NVIDIA 319.60
INFO MissionPlanner.Controls.HUD - Device: GeForce GTX 570/PCIe/SSE2
HUD resize 356 348
HUD resize 356 346
HUD resize 356 267
HUD 1 hz drawtime 55 gl True
HUD resize 356 346
HUD resize 356 267
HUD resize 356 265
HUD resize 356 263
HUD resize 356 261
HUD resize 356 267
HUD resize 356 261
HUD resize 356 267
INFO MissionPlanner.Utilities.httpserver - Listening for client
ERROR MissionPlanner.MainV2 - Mono: closing joystick thread
ERROR MissionPlanner.MainV2 - System.IO.DirectoryNotFoundException: Directory '/home/andre/MP/Plugins' not found.
at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) [0x00000] in :0
at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] in :0
at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in :0
at MissionPlanner.Plugin.PluginLoader.LoadAll () [0x00000] in :0
at MissionPlanner.MainV2.MainV2_Load (System.Object sender, System.EventArgs e) [0x00000] in :0
HUD resize 356 265
HUD resize 356 263
HUD 5 hz drawtime 26 gl True
HUD 1 hz drawtime 1 gl True
INFO MissionPlanner.MAVLinkInterface - logread - lost sync byte 0 pos 9
INFO MissionPlanner.MAVLinkInterface - logread - lost sync byte 9 pos 10
INFO MissionPlanner.MAVLinkInterface - logread - lost sync byte 0 pos 11
.......
INFO MissionPlanner.MAVLinkInterface - logread - lost sync byte 96 pos 147
INFO MissionPlanner.MAVLinkInterface - logread - lost sync byte 142 pos 148
INFO MissionPlanner.MAVLinkInterface - logread - lost sync byte 58 pos 149
INFO MissionPlanner.MAVLinkInterface - logread - lost sync byte 212 pos 150
FE 9 1 1 1 0 mavlink_heartbeat_t custom_mode 0 type 2 autopilot 3 base_mode 81 system_status 4 mavlink_version 3 Len 17
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 1 gl True
HUD 1 hz drawtime 2 gl True
INFO MissionPlanner.Utilities.Update - New file Check: local 1.1.5044.12328 vs Remote 1.1.5097.10619
CustomMessageBox thread calling Base Thread
CustomMessageBox thread running Base Thread
System.NullReferenceException: Object reference not set to an instance of an object
at MissionPlanner.Comms.SerialPort.Dispose (Boolean disposing) [0x00000] in :0
HUD 3 hz drawtime 2 gl True
INFO MissionPlanner.Controls.ProgressReporterDialogue - RunBackgroundOperation
INFO MissionPlanner.Controls.ProgressReporterDialogue - Focus ctl
[xcb] Too much data requested from _XRead
[xcb] This is most likely caused by a broken X extension library
[xcb] Aborting, sorry about that.
mono: ../../src/xcb_io.c:736: _XRead: Assertion `!xcb_xlib_too_much_data_requested' failed.
Stacktrace:

at <0xffffffff>
at (wrapper managed-to-native) System.Windows.Forms.X11Keyboard.XCreateFontSet (intptr,string,intptr&,int&,intptr) <0xffffffff>
at System.Windows.Forms.X11Keyboard.CreateOverTheSpotXic (intptr,intptr) <0x000ab>
at System.Windows.Forms.X11Keyboard.CreateXic (intptr,intptr) <0x000eb>
at System.Windows.Forms.X11Keyboard.CreateXicForWindow (intptr) <0x00033>
at System.Windows.Forms.X11Keyboard.FocusIn (intptr) <0x0009b>
at System.Windows.Forms.XplatUIX11.SetFocus (intptr) <0x000e7>
at System.Windows.Forms.XplatUI.SetFocus (intptr) <0x00024>
at System.Windows.Forms.Control.Select (System.Windows.Forms.Control) <0x00297>
at System.Windows.Forms.Control.FocusInternal (bool) <0x0006b>
at System.Windows.Forms.Form.FocusInternal (bool) <0x00047>
at System.Windows.Forms.Control.Focus () <0x00015>
at MissionPlanner.Controls.ProgressReporterDialogue.ProgressReporterDialogue_Load (object,System.EventArgs) <0x0000f>
at System.Windows.Forms.Form.OnLoad (System.EventArgs) <0x00075>
at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs) <0x0007f>
at System.Windows.Forms.Form.OnCreateControl () <0x00053>
at System.Windows.Forms.Control.CreateControl () <0x0011f>
at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message&) <0x00193>
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&) <0x002c7>
at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message&) <0x00013>
at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message&) <0x0005b>
at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message&) <0x00257>
at System.Windows.Forms.Control/ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) <0x00024>
at System.Windows.Forms.Control/ControlNativeWindow.WndProc (System.Windows.Forms.Message&) <0x00036>
at System.Windows.Forms.NativeWindow.WndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00310>
at System.Windows.Forms.XplatUIX11.SendMessage (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00313>
at System.Windows.Forms.XplatUIX11.MapWindow (System.Windows.Forms.Hwnd,System.Windows.Forms.WindowType) <0x001fb>
at System.Windows.Forms.XplatUIX11.CreateWindow (System.Windows.Forms.CreateParams) <0x00d53>
at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams) <0x00024>
at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams) <0x0003f>
at System.Windows.Forms.Control.CreateHandle () <0x00069>
at System.Windows.Forms.Form.CreateHandle () <0x0001b>
at System.Windows.Forms.Control.CreateControl () <0x00087>
at System.Windows.Forms.Control.SetVisibleCore (bool) <0x0009f>
at System.Windows.Forms.Form.SetVisibleCore (bool) <0x002ef>
at System.Windows.Forms.Control.set_Visible (bool) <0x00032>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.set_Visible (bool) <0xffffffff>
at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) <0x002cf>
at System.Windows.Forms.Form.ShowDialog (System.Windows.Forms.IWin32Window) <0x00817>
at System.Windows.Forms.Form.ShowDialog () <0x0000f>
at MissionPlanner.Controls.ProgressReporterDialogue.RunBackgroundOperationAsync () <0x0004b>
at (wrapper remoting-invoke-with-check) MissionPlanner.Controls.ProgressReporterDialogue.RunBackgroundOperationAsync () <0xffffffff>
at MissionPlanner.Utilities.Update.DoUpdate () <0x000e3>
at MissionPlanner.Utilities.Update/<>c__DisplayClass4.b__1 () <0x00077>
at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>
at <0xffffffff>
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x000cf>
at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
at System.Delegate.DynamicInvokeImpl (object[]) <0x001c7>
at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x0003b>
at System.Delegate.DynamicInvoke (object[]) <0x00018>
at System.Windows.Forms.XplatUIDriverSupport.ExecutionCallback (object) <0x00063>
at System.Threading.ExecutionContext/c__AnonStorey28.<>m__24 (object) <0x00051>
at System.Security.SecurityContext.Run (System.Security.SecurityContext,System.Threading.ContextCallback,object) <0x0010f>
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <0x000f3>
at System.Windows.Forms.XplatUIDriverSupport.ExecuteClientMessage (System.Runtime.InteropServices.GCHandle) <0x0009f>
at System.Windows.Forms.XplatUIX11.GetMessage (object,System.Windows.Forms.MSG&,intptr,int,int) <0x0311b>
at System.Windows.Forms.XplatUI.GetMessage (object,System.Windows.Forms.MSG&,intptr,int,int) <0x0004c>
at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) <0x00ddb>
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext) <0x0005f>
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) <0x00033>
at MissionPlanner.Program.Main (string[]) <0x002df>
at (wrapper runtime-invoke) .runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

```
mono() [0x4a290d]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfbb0) [0x7f9580df0bb0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7f9580a4ff77]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f9580a535e8]
/lib/x86_64-linux-gnu/libc.so.6(+0x2fd43) [0x7f9580a48d43]
/lib/x86_64-linux-gnu/libc.so.6(+0x2fdf2) [0x7f9580a48df2]
/usr/lib/x86_64-linux-gnu/libX11.so.6(_XRead+0xd5) [0x7f957a789985]
/usr/lib/x86_64-linux-gnu/libX11.so.6(_XRead32+0x24) [0x7f957a78a414]
/usr/lib/x86_64-linux-gnu/libX11.so.6(XListFontsWithInfo+0x368) [0x7f957a76d018]
/usr/lib/x86_64-linux-gnu/libX11.so.6(+0x736ed) [0x7f957a7c06ed]
/usr/lib/x86_64-linux-gnu/libX11.so.6(XCreateOC+0xeb) [0x7f957a778d9b]
/usr/lib/x86_64-linux-gnu/libX11.so.6(XCreateFontSet+0x5c) [0x7f957a76da1c]
[0x41b1298b]
```

Debug info from gdb:

Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.
#

Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
# used by your application.

Aborted (core dumped)
andre@Loke:~/MP$

Contributor guide

No contributing guide indexed for this repository

Research direction

Run mono ./MissionPlanner.exe and accept the offered upgrade to reproduce the abort. Trace MissionPlanner.Utilities.Update.DoUpdate through ProgressReporterDialogue.ProgressReporterDialogue_Load and the System.Windows.Forms.X11Keyboard stack shown in the report. Done means accepting an upgrade no longer terminates Mission Planner with the native X11/XCB failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, linux
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.