Bug 42029 - Force Close - Debugging hover over variable
Summary: Force Close - Debugging hover over variable
Status: CONFIRMED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger (show other bugs)
Version: 6.1.0 (C8)
Hardware: PC Linux
: Normal normal
Target Milestone: Future Cycle (TBD)
Assignee: David Karlaš
URL:
: 32720 43276 58372 61267 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-21 11:20 UTC by David
Modified: 2018-03-19 06:40 UTC (History)
9 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Crash stack (22.08 KB, text/plain)
2017-05-24 12:21 UTC, Alexander Bekrenev
Details
Monodevelop crash log (8.52 KB, text/x-log)
2017-11-07 13:28 UTC, Thomas Klose
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 42029 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description David 2016-06-21 11:20:16 UTC
Hi,

I use the latest github version on latest kubuntu. I have this problem for a longer period of time.

When I'm debugging an application and hover over an variable to display the value Monodevelop crashes.

This is not on a special project. I happens when the object is a complex datatype like classes so on.



Here is the message I've got from the console when running it with make run



ERROR [2016-06-21 11:33:09Z]: An unhandled exception has occured. Terminating MonoDevelop? False
System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.SourceEditor.SourceEditorView.OnIconMarginMouseMoved (System.Object sender, Mono.TextEditor.MarginMouseEventArgs e) [0x00048] in /home/user/MonoDevelop/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1447 
  at Mono.TextEditor.Margin.MouseHover (Mono.TextEditor.MarginMouseEventArgs args) [0x0000b] in /home/user/MonoDevelop/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/Margin.cs:103 
  at Mono.TextEditor.IconMargin.MouseHover (Mono.TextEditor.MarginMouseEventArgs args) [0x00000] in /home/user/MonoDevelop/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/IconMargin.cs:89 
  at Mono.TextEditor.TextArea.FireMotionEvent (Double x, Double y, ModifierType state) [0x000c6] in /home/user/MonoDevelop/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextArea.cs:1406 
  at Mono.TextEditor.TextArea.OnMotionNotifyEvent (Gdk.EventMotion e) [0x00159] in /home/user/MonoDevelop/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextArea.cs:1335 
Created new window in existing browser session.
Created new window in existing browser session.
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) Cairo.NativeMethods.cairo_fill (intptr) <IL 0x0000f, 0xffffffff>
  at Cairo.Context.Fill () <IL 0x00006, 0x00013>
  at MonoDevelop.Components.PopoverWindow.OnExposeEvent (Gdk.EventExpose) [0x00097] in /home/user/MonoDevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/PopoverWindow.cs:381
  at Gtk.Widget.exposeevent_cb (intptr,intptr) <IL 0x00014, 0x00082>
  at (wrapper native-to-managed) Gtk.Widget.exposeevent_cb (intptr,intptr) <IL 0x00028, 0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <IL 0x0000e, 0xffffffff>
  at Gtk.Application.Run () <IL 0x00000, 0x0000b>
  at MonoDevelop.Ide.IdeApp.Run () [0x00000] in /home/user/MonoDevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs:386
  at MonoDevelop.Ide.IdeStartup.Run (MonoDevelop.Ide.MonoDevelopOptions) [0x00760] in /home/user/MonoDevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:283
  at MonoDevelop.Ide.IdeStartup.Main (string[],MonoDevelop.Ide.Extensions.IdeCustomizer) [0x000a3] in /home/user/MonoDevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:594
  at MonoDevelop.Startup.MonoDevelopMain.Main (string[]) [0x00000] in /home/user/MonoDevelop/monodevelop/main/src/core/MonoDevelop.Startup/MonoDevelop.Startup/MonoDevelopMain.cs:39
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <IL 0x00064, 0xffffffff>

Native stacktrace:

        monodevelop() [0x49d5fc]
        monodevelop() [0x4f347e]
        monodevelop() [0x42498d]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x113d0) [0x7fde4490e3d0]
        /usr/lib/x86_64-linux-gnu/libXrender.so.1(XRenderFindDisplay+0xf5) [0x7fde392de8e5]
        /usr/lib/x86_64-linux-gnu/libXrender.so.1(XRenderFillRectangle+0x36) [0x7fde392da466]
        /usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x9743d) [0x7fde39f7c43d]
        /usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x7f56c) [0x7fde39f6456c]
        /usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x80fce) [0x7fde39f65fce]
        /usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x81571) [0x7fde39f66571]
        /usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x25a90) [0x7fde39f0aa90]
        /usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x9c6d8) [0x7fde39f816d8]
        /usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x6e7d7) [0x7fde39f537d7]
        /usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x2e14c) [0x7fde39f1314c]
        /usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x27279) [0x7fde39f0c279]
        /usr/lib/x86_64-linux-gnu/libcairo.so.2(cairo_fill+0x15) [0x7fde39f052b5]
        [0x41a8c6b0]

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 SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Makefile:1173: recipe for target 'runmd-sgen' failed
make[1]: *** [runmd-sgen] Aborted (core dumped)
Comment 1 xamarin-release-manager 2016-06-21 11:31:42 UTC
Fixed in version 6.1.0.4984 (master)

Author: Mike Kr??ger
Commit: e61660c4f0617b87e0791bf34c267bebcec3c37e (mono/monodevelop)
Comment 2 David 2016-06-21 12:40:47 UTC
Thank you for your fast reply!

I tried it with latest github version and i think its better but still have a problem with hover.

Here is a other Stack


Created new window in existing browser session.
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) Cairo.NativeMethods.cairo_fill (intptr) <IL 0x00009, 0x0005f>
  at Cairo.Context.Fill () <IL 0x00006, 0x00013>
  at MonoDevelop.Components.PopoverWindow.OnExposeEvent (Gdk.EventExpose) [0x00097] in /home/davidrothmann/MonoDevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/PopoverWindow.cs:381
  at Gtk.Widget.exposeevent_cb (intptr,intptr) <IL 0x00014, 0x00082>
  at (wrapper native-to-managed) Gtk.Widget.exposeevent_cb (intptr,intptr) <IL 0x0001e, 0x00067>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <IL 0x00008, 0x00059>
  at Gtk.Application.Run () <IL 0x00000, 0x0000b>
  at MonoDevelop.Ide.IdeApp.Run () [0x00000] in /home/davidrothmann/MonoDevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs:386
  at MonoDevelop.Ide.IdeStartup.Run (MonoDevelop.Ide.MonoDevelopOptions) [0x00760] in /home/davidrothmann/MonoDevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:283
  at MonoDevelop.Ide.IdeStartup.Main (string[],MonoDevelop.Ide.Extensions.IdeCustomizer) [0x000a3] in /home/davidrothmann/MonoDevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:594
  at MonoDevelop.Startup.MonoDevelopMain.Main (string[]) [0x00000] in /home/davidrothmann/MonoDevelop/monodevelop/main/src/core/MonoDevelop.Startup/MonoDevelop.Startup/MonoDevelopMain.cs:39
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <IL 0x00057, 0x000f5>
Comment 3 Mike Krüger 2016-06-21 12:51:05 UTC
Can't really tell why it's failing - it works for me.

Which graphics card/driver are you using ?

(We had some issues with ATI in the past.)
Comment 4 David 2016-06-21 13:01:44 UTC
How can i reproduce it? How can i deliver more useful informations for you?

I haven't a dedicated graphic card, using a Intel i5-4440 CPU.
Comment 5 David 2016-08-09 12:19:23 UTC
Something new here? I still have the problem with latest github version.

Please, can you share you Compositor Settings?

Here are mine: http://imgur.com/a/QZARv
Comment 6 David Karlaš 2016-08-12 07:16:53 UTC
*** Bug 43276 has been marked as a duplicate of this bug. ***
Comment 7 Lluis Sanchez 2017-05-23 10:20:36 UTC
Is this still failing?
Comment 8 Roman 2017-05-23 14:09:05 UTC
give me please monodevelop 6 or 7 without flatpack for my Linux Mint 17.3 and I will check it
Comment 9 Alexander Bekrenev 2017-05-24 12:21:54 UTC
Created attachment 22419 [details]
Crash stack

It is still crash on latest git source code.
Comment 11 iain 2017-08-02 15:00:47 UTC
*** Bug 58372 has been marked as a duplicate of this bug. ***
Comment 12 David Karlaš 2017-08-03 13:55:01 UTC
*** Bug 32720 has been marked as a duplicate of this bug. ***
Comment 13 Thomas Klose 2017-11-07 13:28:55 UTC
Created attachment 25582 [details]
Monodevelop crash log

The problem is still present in release 7.2.0.636 (compiled from git sources).
Comment 14 David Karlaš 2018-03-19 06:40:07 UTC
*** Bug 61267 has been marked as a duplicate of this bug. ***