Bug 771 - Crash while compiling
Summary: Crash while compiling
Status: RESOLVED DUPLICATE of bug 121
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: GTK# Designer ()
Version: Trunk
Hardware: Other Windows
: Low major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-09-13 02:36 UTC by Mike Krüger
Modified: 2012-04-04 16:35 UTC (History)
5 users (show)

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

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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 121

Description Mike Krüger 2011-09-13 02:36:12 UTC
On Windows 7 I often get that crash while compiling with monodevelop. Because of that monodevelop is hardly usable.


System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

   at Gtk.Frame.gtk_frame_set_label_widget(IntPtr raw, IntPtr label_widget)

   at Gtk.Frame.set_LabelWidget(Widget value)

   at Stetic.Wrapper.Frame.ReadChild(ObjectReader reader, XmlElement child_elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\wrapper\Frame.cs:line 47

   at Stetic.Wrapper.Container.ReadChildren(ObjectReader reader, XmlElement elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\wrapper\Container.cs:line 327

   at Stetic.Wrapper.Container.Read(ObjectReader reader, XmlElement elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\wrapper\Container.cs:line 309

   at Stetic.ObjectWrapper.ReadObject(ObjectReader reader, XmlElement elem, ObjectWrapper wrapper) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\ObjectWrapper.cs:line 215

   at Stetic.ObjectWrapper.ReadObject(ObjectReader reader, XmlElement elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\ObjectWrapper.cs:line 208

   at Stetic.ObjectReader.ReadObject(XmlElement elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\ObjectReader.cs:line 30

   at Stetic.Wrapper.Container.ReadChild(ObjectReader reader, XmlElement child_elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\wrapper\Container.cs:line 364

   at Stetic.Wrapper.Container.ReadChildren(ObjectReader reader, XmlElement elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\wrapper\Container.cs:line 327

   at Stetic.Wrapper.Container.Read(ObjectReader reader, XmlElement elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\wrapper\Container.cs:line 309

   at Stetic.ObjectWrapper.ReadObject(ObjectReader reader, XmlElement elem, ObjectWrapper wrapper) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\ObjectWrapper.cs:line 215

   at Stetic.ObjectWrapper.ReadObject(ObjectReader reader, XmlElement elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\ObjectWrapper.cs:line 208

   at Stetic.ObjectReader.ReadObject(XmlElement elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\ObjectReader.cs:line 30

   at Stetic.Wrapper.Container.ReadChild(ObjectReader reader, XmlElement child_elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\wrapper\Container.cs:line 364

   at Stetic.Wrapper.Container.ReadChildren(ObjectReader reader, XmlElement elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\wrapper\Container.cs:line 327

   at Stetic.Wrapper.Container.Read(ObjectReader reader, XmlElement elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\wrapper\Container.cs:line 309

   at Stetic.ObjectWrapper.ReadObject(ObjectReader reader, XmlElement elem, ObjectWrapper wrapper) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\ObjectWrapper.cs:line 215

   at Stetic.ObjectWrapper.ReadObject(ObjectReader reader, XmlElement elem) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libstetic\ObjectWrapper.cs:line 208

   at Stetic.ProjectBackend.GetWidget(WidgetData data) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libsteticui\ProjectBackend.cs:line 394

   at Stetic.ProjectBackend.get_Toplevels() in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libsteticui\ProjectBackend.cs:line 904

   at Stetic.CodeGeneratorPartialClass.GenerateProjectGuiCode(SteticCompilationUnit globalUnit, CodeNamespace globalNs, CodeTypeDeclaration globalType, GenerationOptions options, List`1 units, ProjectBackend[] projects, ArrayList warnings) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libsteticui\CodeGeneratorPartialClass.cs:line 20

   at Stetic.CodeGenerator.GenerateProjectCode(GenerationOptions options, ProjectBackend[] projects) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libsteticui\CodeGenerator.cs:line 78

   at Stetic.ApplicationBackend.GenerateProjectCode(GenerationOptions options, ProjectBackend[] projects) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libsteticui\ApplicationBackend.cs:line 133

   at Stetic.Application.GenerateProjectCode(GenerationOptions options, Project[] projects) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\libsteticui\Application.cs:line 413

   at MonoDevelop.GtkCore.GuiBuilder.GuiBuilderService.GenerateSteticCode(IProgressMonitor monitor, DotNetProject project, ConfigurationSelector configuration) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\MonoDevelop.GtkCore.GuiBuilder\GuiBuilderService.cs:line 441

   at MonoDevelop.GtkCore.GuiBuilder.Generator.Run(IProgressMonitor monitor, DotNetProject project, ConfigurationSelector configuration) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\MonoDevelop.GtkCore.GuiBuilder\GtkProjectServiceExtension.cs:line 66

   at MonoDevelop.GtkCore.GuiBuilder.GtkProjectServiceExtension.<>c__DisplayClass3.<Build>b__1(Object , EventArgs ) in c:\work\monodevelop\main\src\addins\MonoDevelop.GtkCore\MonoDevelop.GtkCore.GuiBuilder\GtkProjectServiceExtension.cs:line 30

   at Gtk.Application.InvokeCB.Invoke()

   at GLib.Timeout.TimeoutProxy.Handler()
Comment 1 Mikayla Hutchinson [MSFT] 2011-09-13 05:19:44 UTC
I see this too. I work around it using winbuild.bat to build with msbuild.
Comment 2 Joseph Hill 2011-11-07 15:06:49 UTC
What is the customer impact of this issue?

Michael Hutchinson - Is this workaround something we can ship to customers, or document and call this closed?
Comment 3 Mikayla Hutchinson [MSFT] 2011-11-07 17:26:47 UTC
It only affects users building applications that use stetic to design GTK# UIs. The workaround is to avoid using the MonoDevelop build engine, by building the application using msbuild from a terminal. That's not really viable to ship to end users, nor would it be valid to document the issue and forget about it. It's a real bug.

it's possible that this was related to Bug 121, and might have been fixed, but I don't build MD within MD on WIndows enough to know for sure.
Comment 4 Mike Krüger 2011-11-08 01:37:29 UTC
The customer impact is that MD can't be build with MD on windows - it's not a good sign if an IDE can't compile itself - isn't it ?
Comment 5 Joseph Hill 2011-11-09 22:15:24 UTC
I don't think that matters to our customers.  They're only building Android and/or iOS applications.
Comment 6 Michael Karayani 2011-11-12 02:49:13 UTC
Joseph, I think you are not quite right here. I wanna use MD not only for iOS/Android, but for Gnome and Asp.NET apps and maybe addins. I too had an issue compiling MD from MD, but after i've built MD with winbuild.bat for the fist time, I can build from MD w/o errors. Maybe it worked just for me bu still it's very annoying.

P.S. sorry for my English skills :)
Comment 7 Mikayla Hutchinson [MSFT] 2012-04-04 16:35:10 UTC
Since this hasn't been reproduced in some time, I'm going to assume it was a duplicate of bug 121, which was fixed a while back.

*** This bug has been marked as a duplicate of bug 121 ***