[Mono-list] Fatal error when running a simple application under Mono
I am running a small, simple application using SVN release 128627 of Mono. This application used to work fine under earlier (ie pre 2.2) releases of Mono but has began to crash when using the newer version. When it runs I can interact with the widgets for a while and then it crashes with the below errors: [0x7fd27edb6720: 75.88669 15] LEAVE: INV_MainWindow:OnButtonExecuteClicked (object,System.EventArgs) [0x7fd27edb6720: 75.88670 14] LEAVE: (wrapper runtime-invoke) INV_MainWindow:runtime_invoke_void__this___object_object (object,intptr,intptr,intptr)[OBJECT:(nil)] [0x7fd27edb6720: 75.88671 13] LEAVE: (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)[OBJECT:(nil)] [0x7fd27edb6720: 75.88673 12] LEAVE: System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)[OBJECT:(nil)] [0x7fd27edb6720: 75.88674 11] LEAVE: System.Reflection.MethodBase:Invoke (object,object[])[OBJECT:(nil)] [0x7fd27edb6720: 75.88675 10] LEAVE: System.Delegate:DynamicInvokeImpl (object[])[OBJECT:(nil)] [0x7fd27edb6720: 75.88675 9] LEAVE: System.MulticastDelegate:DynamicInvokeImpl (object[])[OBJECT:(nil)] [0x7fd27edb6720: 75.88676 8] LEAVE: System.Delegate:DynamicInvoke (object[])[OBJECT:(nil)] [0x7fd27edb6720: 75.88677 7] LEAVE: GLib.Signal:ClosureInvokedCB (object,GLib.ClosureInvokedArgs) [0x7fd27edb6720: 75.88678 6] LEAVE: GLib.SignalClosure:Invoke (GLib.ClosureInvokedArgs) [0x7fd27edb6720: 75.88679 5] LEAVE: GLib.SignalClosure:MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) [0x7fd27edb6720: 75.88680 4] LEAVE: (wrapper native-to-managed) GLib.SignalClosure:MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) Stacktrace: at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x0006d> at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x> at Gtk.Application.Run () <0x00027> at Investment_Returns.MainClass.Main (string[]) <0x00097> at (wrapper runtime-invoke) Investment_Returns.MainClass.runtime_invoke_void_object (object,intptr,intptr,intptr) <0x> Native stacktrace: mono [0x481506] mono [0x4b28dd] /lib/libpthread.so.0 [0x7fd27e0b6a80] Debug info from gdb: = 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. = Aborted ** ERROR:shared.c:543:shm_semaphores_remove: assertion failed: (proc_count > 0) I have re-installed the 'libc' package that contains libpthread and this did not resolve the problem. Can anyone help me with this ? Some clues as to where I can look next would be very much appreciated. Brett Senior. Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Built GTK, GTK-SHARP and MONO from SVN - issue running MONO applications
Yesterday I fetched the latest versions of GTK and GTK-SHARP from SVN and built them. All seemed to go OK and files installed in various directories under /opt/mono. I keep GTK etc in here to keep in separate from my 'system' GTK. Today I fetched MONO from SVN and it also compiled fine. Again it went into /opt/mono so that I keep it separate from my system MONO. I am running Debian/Squeeze on a 64 bit machine and previous SVN builds have not caused me any problems. However, today when I try to run any mono applications they freeze and do not start up at all. When I ran mono --trace on one of them it goes OK until it hits the following: [0x7f2ea8f1c720: 3.49731 6] ENTER: (wrapper managed-to-native) Gtk.IconTheme:gtk_icon_theme_load_icon (intptr,intptr,int,int,intptr&)(0x1b05910, 0x1a0c2e0, 16, 0, [BYREF:0x7fffb0f38c18], ) which seemed to indicate an issue with either GTK or GTK-SHARP or MONO - so I have posted to both lists as I don't know which is more appropriate for the above problem. I am running version 22426 of GTK, version 128288 of GTK-SHARP and version 128288 of MONO . I do a make clean before each build and have also tried a make uninstall and then another make install to no avail. Any help would be much appreciated as I am unable to run my development environment MonoDevelop which depends on GTK, GTK-SHARP and MONO. Brett Senior. Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Unable to compile version 126312 of Mono from SVN
Today I fetched version 126312 of Mono from and attempted to build it with the following commands: $ cd mono $ svn update $ cd ../mcs $ svn update $ cd ../mono $ ./autogen.sh --prefix=/opt/mono $ make clean $ make and when it attempts to build things in 'docs' I get the following error: cd . && make -f docs.make topdir=../../mcs convert.exe make[1]: Entering directory `/home/brett/Downloads/MonoProject/mono/docs' MCS [default] convert.exe Cannot open assembly '../../mcs/class/lib/default/mcs.exe': No such file or directory. make[1]: *** [convert.exe] Error 2 make[1]: Leaving directory `/home/brett/Downloads/MonoProject/mono/docs' make: *** [convert.exe] Error 2 So, I went to the ../../mcs/class/lib/default directory and created a symbolic link to ../../../mcs/mcs.exe and then the build went a little further and then I get the following error message: cd . && make -f docs.make topdir=../../mcs convert.exe make[1]: Entering directory `/home/brett/Downloads/MonoProject/mono/docs' MCS [default] convert.exe Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at Mono.CSharp.RootNamespace.GetTypeInAssembly (System.Reflection.Assembly assembly, System.String name) [0x0] at Mono.CSharp.RootNamespace.LookupTypeReflection (System.String name, Location loc) [0x0] at Mono.CSharp.GlobalRootNamespace.LookupTypeReflection (System.String name, Location loc) [0x0] at Mono.CSharp.Namespace.LookupType (System.String name, Location loc) [0x0] at Mono.CSharp.Namespace.Lookup (Mono.CSharp.DeclSpace ds, System.String name, Location loc) [0x0] at Mono.CSharp.TypeManager.CoreLookupType (System.String ns_name, System.String name, Kind type_kind, Boolean required) [0x0] at Mono.CSharp.RootNamespace.ComputeNamespaces () [0x0] at Mono.CSharp.Driver.LoadReferences () [0x0] at Mono.CSharp.Driver.Compile () [0x0] at Mono.CSharp.Driver.Main (System.String[] args) [0x0] make[1]: *** [convert.exe] Error 1 make[1]: Leaving directory `/home/brett/Downloads/MonoProject/mono/docs' make: *** [convert.exe] Error 1 When I looked into this a little further it seems that mono/mono/mini/mono has a problem with the -r:AgilityPack.dll and if I use a mono other than this (eg /opt/mono/bin/mono) the convert.cs will compile to convert.exe - so the problem seems to be something related to mono/mono/mini/mono. I have compiled mono from svn in the past and have not had issues such as the above. Can someone please provide me with some help so that I can get mono build ? -- View this message in context: http://www.nabble.com/Unable-to-compile-version-126312-of-Mono-from-SVN-tp21907319p21907319.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Unable to compile SVN version 126419 of Mono
My apologies for posting this twice but when I posted it the first time I was not subscribed to the Mono mailing list and thus has not been sent there and has been waiting to be moderated for a couple of days. So have re posted this one. Yestoday I fetched version 126419 of Mono from and attempted to build it with the following commands: $ cd mono $ svn update $ cd ../mcs $ svn update $ cd ../mono $ ./autogen.sh --prefix=/opt/mono $ make clean $ make and when it attempts to build things in 'docs' I get the following error: cd . && make -f docs.make topdir=../../mcs convert.exe make[1]: Entering directory `/home/brett/Downloads/MonoProject/mono/docs' MCS [default] convert.exe Cannot open assembly '../../mcs/class/lib/default/mcs.exe': No such file or directory. make[1]: *** [convert.exe] Error 2 make[1]: Leaving directory `/home/brett/Downloads/MonoProject/mono/docs' make: *** [convert.exe] Error 2 So, I went to the ../../mcs/class/lib/default directory and created a symbolic link to ../../../mcs/mcs.exe and then the build went a little further and then I get the following error message: cd . && make -f docs.make topdir=../../mcs convert.exe make[1]: Entering directory `/home/brett/Downloads/MonoProject/mono/docs' MCS [default] convert.exe Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at Mono.CSharp.RootNamespace.GetTypeInAssembly (System.Reflection.Assembly assembly, System.String name) [0x0] at Mono.CSharp.RootNamespace.LookupTypeReflection (System.String name, Location loc) [0x0] at Mono.CSharp.GlobalRootNamespace.LookupTypeReflection (System.String name, Location loc) [0x0] at Mono.CSharp.Namespace.LookupType (System.String name, Location loc) [0x0] at Mono.CSharp.Namespace.Lookup (Mono.CSharp.DeclSpace ds, System.String name, Location loc) [0x0] at Mono.CSharp.TypeManager.CoreLookupType (System.String ns_name, System.String name, Kind type_kind, Boolean required) [0x0] at Mono.CSharp.RootNamespace.ComputeNamespaces () [0x0] at Mono.CSharp.Driver.LoadReferences () [0x0] at Mono.CSharp.Driver.Compile () [0x0] at Mono.CSharp.Driver.Main (System.String[] args) [0x0] make[1]: *** [convert.exe] Error 1 make[1]: Leaving directory `/home/brett/Downloads/MonoProject/mono/docs' make: *** [convert.exe] Error 1 When I looked into this a little further it seems that mono/mono/mini/mono has a problem with the -r:AgilityPack.dll and if I use a mono other than this (eg /opt/mono/bin/mono) the convert.cs will compile to convert.exe - so the problem seems to be something related to mono/mono/mini/mono. But the other question is why is the make file trying to access something when on my system it does not get built ? I have compiled mono from svn in the past and have not had issues such as the above. Can someone please provide me with some help so that I can get mono built ? -- View this message in context: http://www.nabble.com/Unable-to-compile-SVN-version-126419-of-Mono-tp21947539p21947539.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Source for Mono 2.01
Juan, No I am not seeing this page. The page you provided is what I remembered the Mono download page to be. What I am doing is going to http://www.mono-project.com/Main_Page and then clicking on the Download icon. Then I have the problem that the page I get is not the same as you provided. Brett Senior. From: Juan C. Olivares <[EMAIL PROTECTED]> To: Brett Senior <[EMAIL PROTECTED]> Cc: Chris Howie <[EMAIL PROTECTED]>; Mono Mailing List Sent: Thursday, 6 November, 2008 2:43:21 PM Subject: Re: [Mono-list] Source for Mono 2.01 Brett: Take a look: http://www.juancri.com/temp/mono-download.png I don't know if you are seeing the same page... Regards, JCO On Thu, Nov 6, 2008 at 12:51 AM, Brett Senior <[EMAIL PROTECTED]> wrote: Juan, Either I am stupid (please do not answer this !) - but when I go to the download page I can see the C# icon in the top right of the page. But there is not any text associated with it - and so I tried to click on the icon itself - and that did not work. Hence the question to this mailing list. Brett Senior. From: Juan C. Olivares <[EMAIL PROTECTED]> To: Chris Howie <[EMAIL PROTECTED]> Cc: Brett Senior <[EMAIL PROTECTED]>; Mono Mailing List Sent: Thursday, 6 November, 2008 2:15:51 PM Subject: Re: [Mono-list] Source for Mono 2.01 Are we experiencing the "worst download page in the history" again?! http://tirania.org/blog/archive/2008/Jan-24-1.html Regards, JCO On Thu, Nov 6, 2008 at 12:37 AM, Chris Howie <[EMAIL PROTECTED]> wrote: On Wed, Nov 5, 2008 at 10:36 PM, Brett Senior <[EMAIL PROTECTED]> wrote: > Juan and Chris - thanks for that - used Juan's link - as the C# icon in the > corner does not have any action when you click on it. Yeah, but the text does. :) -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers Search 1000's of available singles in your area at the new Yahoo!7 Dating. Get Started. Search 1000's of available singles in your area at the new Yahoo!7 Dating. Get Started http://au.dating.yahoo.com/?cid=53151&pid=1011___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Source for Mono 2.01
Juan, Either I am stupid (please do not answer this !) - but when I go to the download page I can see the C# icon in the top right of the page. But there is not any text associated with it - and so I tried to click on the icon itself - and that did not work. Hence the question to this mailing list. Brett Senior. From: Juan C. Olivares <[EMAIL PROTECTED]> To: Chris Howie <[EMAIL PROTECTED]> Cc: Brett Senior <[EMAIL PROTECTED]>; Mono Mailing List Sent: Thursday, 6 November, 2008 2:15:51 PM Subject: Re: [Mono-list] Source for Mono 2.01 Are we experiencing the "worst download page in the history" again?! http://tirania.org/blog/archive/2008/Jan-24-1.html Regards, JCO On Thu, Nov 6, 2008 at 12:37 AM, Chris Howie <[EMAIL PROTECTED]> wrote: On Wed, Nov 5, 2008 at 10:36 PM, Brett Senior <[EMAIL PROTECTED]> wrote: > Juan and Chris - thanks for that - used Juan's link - as the C# icon in the > corner does not have any action when you click on it. Yeah, but the text does. :) -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers Find your perfect match today at the new Yahoo!7 Dating. Get Started http://au.dating.yahoo.com/?cid=53151&pid=1012___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Source for Mono 2.01
Juan and Chris - thanks for that - used Juan's link - as the C# icon in the corner does not have any action when you click on it. Brett Senior. From: Juan C. Olivares <[EMAIL PROTECTED]> To: Chris Howie <[EMAIL PROTECTED]> Cc: Brett Senior <[EMAIL PROTECTED]>; Mono Mailing List Sent: Thursday, 6 November, 2008 1:58:33 PM Subject: Re: [Mono-list] Source for Mono 2.01 Just in case... it points here: http://ftp.novell.com/pub/mono/sources-stable/ Regards, JCO On Thu, Nov 6, 2008 at 12:27 AM, Chris Howie <[EMAIL PROTECTED]> wrote: On Wed, Nov 5, 2008 at 10:24 PM, Brett Senior <[EMAIL PROTECTED]> wrote: > I would like to download the source for Mono 2.01 so that I can build it on > my Debian machine (yes I know I should get rid of Debian in favour of a > distro that has up-to-date versions of Mono in their repositories - but that > is not an option at the moment). When I click on Download it takes me to > the following page - http://www.go-mono.com/mono-downloads/download.html - > and does not allow me to do anything else. It does not contain any links of > use except the unofficial one where for Debian the 'meebey.net' option is > useless if you have an AMD64 machine (this repository only supports i386 > !). So I would like to get the source code some way - but can't find any > link that will allow me to do this. Can anybody point me in the right > direction ? In the upper-right corner of the content area of the page there is a link to "Mono 2.0.1 sources." -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list Search 1000's of available singles in your area at the new Yahoo!7 Dating. Get Started http://au.dating.yahoo.com/?cid=53151&pid=1011___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Source for Mono 2.01
I would like to download the source for Mono 2.01 so that I can build it on my Debian machine (yes I know I should get rid of Debian in favour of a distro that has up-to-date versions of Mono in their repositories - but that is not an option at the moment). When I click on Download it takes me to the following page - http://www.go-mono.com/mono-downloads/download.html - and does not allow me to do anything else. It does not contain any links of use except the unofficial one where for Debian the 'meebey.net' option is useless if you have an AMD64 machine (this repository only supports i386 !). So I would like to get the source code some way - but can't find any link that will allow me to do this. Can anybody point me in the right direction ? Thanking you, Brett Senior. Find your perfect match today at the new Yahoo!7 Dating. Get Started http://au.dating.yahoo.com/?cid=53151&pid=1012___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Out Of Range exception when defining a mutex access rule
I have been trying to create a mutex access rule to add to a mutex security object. When I execute the following code I get an 'Out of Range' exception that indicates a problem with the line that defines the mutex access rule 'mar1'. string user; MutexSecurity ms = new MutexSecurity(); // //First create the username that we will use in the mutex security //rules. // user = System.Environment.UserDomainName + "\\" + System.Environment.UserName; // //Now create the mutex access rules and add them to the security object. // MutexAccessRule mar1 = new MutexAccessRule( user, MutexRights.ReadPermissions, AccessControlType.Allow); ms.AddAccessRule(mar1); The trace for the exception is as follows: Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of range. at System.Security.AccessControl.AuthorizationRule..ctor (System.Security.Principal.IdentityReference identity, Int32 accessMask, Boolean isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags) [0x0004d] in /home/ingo/mono-1.9.1+dfsg/mcs/class/corlib/System.Security.AccessControl/AuthorizationRule.cs:69 at System.Security.AccessControl.AccessRule..ctor (System.Security.Principal.IdentityReference identity, Int32 accessMask, Boolean isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type) [0x0] in /home/ingo/mono-1.9.1+dfsg/mcs/class/corlib/System.Security.AccessControl/AccessRule.cs:44 at System.Security.AccessControl.MutexAccessRule..ctor (System.Security.Principal.IdentityReference identity, MutexRights mutexRights, AccessControlType type) [0x0] in /home/ingo/mono-1.9.1+dfsg/mcs/class/corlib/System.Security.AccessControl/MutexAccessRule.cs:44 at System.Security.AccessControl.MutexAccessRule..ctor (System.String identity, MutexRights mutexRights, AccessControlType type) [0x0] in /home/ingo/mono-1.9.1+dfsg/mcs/class/corlib/System.Security.AccessControl/MutexAccessRule.cs:52 Is the above a problem with my code, or a problem with mono ? Brett Senior. Win a MacBook Air or iPod touch with Yahoo!7. http://au.docs.yahoo.com/homepageset___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Problem enumerating all mono processes on the system.
The following is some code that I have written to determine if the currently running program is already running. The way that I tackled it was to search for all mono processes and then within the process module collection to see if any of them match the name of the program (minus the directory part of the filename) then I increment a counter. If the counter is greater than one then the program returns true, otherwise false. Problem is that even if I have multiple instances of program 'xxx' running using mono, only one mono process is returned. Within this process then only one instance of 'xxx' is found in the process module collection. So the below is unable to detect multiple instances of the program. Can someone look at the below and point out what I am doing wrong ? internal bool Is_Application_Already_Running() { int pc; string pn1; string pn2; string [] cla; System.Diagnostics.Process [] pra; System.Diagnostics.ProcessModuleCollection pmc; // //Now using the command line (and its arguments), determine the name of the .exe //that was run. // cla = System.Environment.GetCommandLineArgs(); pn1 = cla[0]; pn2 = pn1.Substring(pn1.LastIndexOf(System.IO.Path.DirectorySeparatorChar) + 1); // //Now obtain all processes that are running this program. Note: As these programs are //run under MONO, we must find all processes running this and then determine via the //name whether we should terminate them. // pc = 0; pra = System.Diagnostics.Process.GetProcessesByName("mono"); // //Now loop and kill each of the above processes - but not ourself. // for (int ix = 0; ix <= pra.GetUpperBound(0); ++ix) { // //First obtain the modules associated with the process so we can //then determine if it is running PN2. // pmc = pra[ix].Modules; // //Now loop and check the filename associated with the process module //and if we find a match then count up the number of instances. // for (int jx = 0; jx < pmc.Count; ++jx) { if (pmc[jx].FileName.EndsWith(pn2)) { pc++; } } } // //Now return true to indicate that the process is running elsewhere if the //process count is greater than one. // return (pc > 1); } Thanks, Brett Senior. Win a MacBook Air or iPod touch with Yahoo!7. http://au.docs.yahoo.com/homepageset___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Failure to initialise ZLIB
I have an application written in MD/Mono and it uses GZipStream. The application runs fine for a while, performing file compression etc, but after about 10,000 files processed, I get the following error: Failed to initialize zlib. You probably have an old zlib installed. Version 1.2.0.4 or later is required. I have checked my zlib version and it is 1.2.3.3. To make sure things were OK I went into Synaptic (I run Debian/Lenny) and re-installed the libary. I recently downloaded the mono source and performed an update to what I'd had which was a version that came down via apt-get. Is the above an issue when processing large numbers of files using GZipStream - or is my application buggy in some way. Thank you, Brett Senior. Start at the new Yahoo!7 for a better online experience. www.yahoo7.com.au___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list