Bug 12801 - XWT doesn't dispose cairo context
Summary: XWT doesn't dispose cairo context
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2013-06-20 16:45 UTC by Mikayla Hutchinson [MSFT]
Modified: 2013-06-25 10:18 UTC (History)
1 user (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 FIXED

Description Mikayla Hutchinson [MSFT] 2013-06-20 16:45:39 UTC
Cairo.Context is leaking, programmer is missing a call to Dispose
Allocated from:
   at System.Environment.get_StackTrace() in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-/mcs/class/corlib/System/Environment.cs:line 261
   at Cairo.CairoDebug.OnAllocated(IntPtr obj) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-/mcs/class/Mono.Cairo/Mono.Cairo/CairoDebug.cs:line 53
   at Cairo.Context..ctor(IntPtr handle, Boolean owner) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-/mcs/class/Mono.Cairo/Mono.Cairo/Context.cs:line 95
   at Cairo.Context..ctor(Cairo.Surface surface) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-/mcs/class/Mono.Cairo/Mono.Cairo/Context.cs:line 84
   at Xwt.GtkBackend.GtkTextLayoutBackendHandler..cctor() in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt.Gtk/Xwt.GtkBackend/TextLayoutBackendHandler.cs:line 124
   at System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod , System.Object , System.Object[] , System.Exception ByRef )
   at System.Reflection.MonoCMethod.InternalInvoke(System.Object obj, System.Object[] parameters) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-/mcs/class/corlib/System.Reflection/MonoMethod.cs:line 553
   at System.Activator.CreateInstance(System.Type type, Boolean nonPublic) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-/mcs/class/corlib/System/Activator.cs:line 329
   at System.Activator.CreateInstance(System.Type type) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-/mcs/class/corlib/System/Activator.cs:line 222
   at Xwt.Backends.ToolkitEngineBackend.CreateBackend(System.Type backendType) in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt.Backends/ToolkitEngineBackend.cs:line 238
   at Xwt.Backends.ToolkitEngineBackend.CreateBackend() in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt.Backends/ToolkitEngineBackend.cs:line 248
   at Xwt.Toolkit.Initialize(Boolean isGuest) in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/Toolkit.cs:line 199
   at Xwt.Toolkit.LoadBackend(System.String type, Boolean isGuest, Boolean throwIfFails) in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/Toolkit.cs:line 178
   at Xwt.Toolkit.Load(System.String fullTypeName, Boolean isGuest) in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/Toolkit.cs:line 97
   at Xwt.Application.Initialize(System.String backendType) in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/Application.cs:line 70
   at Xwt.Application.Initialize(ToolkitType type) in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/Application.cs:line 62
   at Xwt.Application.InitializeAsGuest(ToolkitType type) in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/Application.cs:line 82
   at MonoDevelop.Ide.IdeStartup.Run(MonoDevelop.Ide.MonoDevelopOptions options) in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:line 106
   at MonoDevelop.Ide.IdeStartup.Main(System.String[] args) in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:line 533
   at MonoDevelop.Startup.MonoDevelopMain.Main(System.String[] args) in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Startup/MonoDevelop.Startup/MonoDevelopMain.cs:line 17
Comment 1 Lluis Sanchez 2013-06-25 10:18:00 UTC
Fixed in master.