aMule Forum
English => Compilation problems => Topic started by: wuischke on March 19, 2008, 08:47:13 PM
-
Hi lfroen,
I tried to test the new remote gui on Linux, but although it built successfully, I couldn't get it to run. I get the following error messages:
Unhandled Exception: System.Exception: 500, 400 is not a valid value for Int32. ---> System.FormatException: Input string was not in the correct format
at System.Int32.Parse (System.String s, NumberStyles style, IFormatProvider fp) [0x00016] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/corlib/System/Int32.cs:599
at System.ComponentModel.Int32Converter.ConvertFromString (System.String value, System.Globalization.NumberFormatInfo format) [0x00000] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.ComponentModel/Int32Converter.cs:53
at System.ComponentModel.BaseNumberConverter.ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.Object value) [0x00099] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.ComponentModel/BaseNumberConverter.cs:83 --- End of inner exception stack trace ---
at System.ComponentModel.BaseNumberConverter.ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.Object value) [0x000ad] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.ComponentModel/BaseNumberConverter.cs:86
at System.ComponentModel.TypeConverter.ConvertFromString (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.String text) [0x00000] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.ComponentModel/TypeConverter.cs:104
at System.Drawing.SizeConverter.ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.Object value) [0x00045] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System.Drawing/System.Drawing/SizeConverter.cs:80
at System.ComponentModel.TypeConverter.ConvertFrom (System.Object o) [0x00000] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.ComponentModel/TypeConverter.cs:70
at System.ComponentModel.TypeConverter.ConvertFromString (System.String text) [0x00000] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.ComponentModel/TypeConverter.cs:94
at System.Configuration.ApplicationSettingsBase.CreateSettingsProperty (System.Reflection.PropertyInfo prop, System.Configuration.SettingsPropertyCollection properties, System.Configuration.LocalFileSettingsProvider& local_provider) [0x000ed] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:292
at System.Configuration.ApplicationSettingsBase.get_Properties () [0x00061] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:259
at System.Configuration.ApplicationSettingsBase..ctor () [0x00006] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:44
at amule.net.amuleSettings..ctor () [0x00000]
at amule.net.MainWindow..ctor () [0x00000]
at (wrapper remoting-invoke-with-check) amule.net.MainWindow:.ctor ()
at amule.net.Program.Main () [0x0000b] in /home/johkra/devel/amule-dev.compile/src/remote-gui.net/Program.cs:41
I use Arch64 (i.e. Linux x86_64), mono 1.2.6, mono-addins 0.3 and monodevelop 1.0. If I can help you in any way, please tell me how.
-
How did you built it? I'm using Visual C# express, which is free from MS. With previous mono version, everything except colored status bar worked.
Those status bars require support for OwnerDrawn property in controls. Latest version of mono (not sure which one is it) is supposed to support it (not tested, since versions on Fedora lag behind Mono releases).
On the other hand, error message I was getting was quite clear, like "property not implemented" or something like that. Your case looks different. Try to run binary built on Windows and see what you get.
-
It works now...well, kind of. I repartitioned and reinstalled my system and I can compile and run the application now on Linux.
It connects, but the gui won't be shown until I close aMule.
2008-03-24 20:28:32: ExternalConn.cpp(218): New external connection accepted
2008-03-24 20:28:32: ExternalConn.cpp(252): Connecting client: aMuleweb SVN
2008-03-24 20:28:32: ExternalConn.cpp(307): Access granted.
2008-03-24 20:28:41: ExternalConn.cpp(218): New external connection accepted
2008-03-24 20:28:41: ExternalConn.cpp(252): Connecting client: amule.net 0.0.1
2008-03-24 20:28:41: ExternalConn.cpp(307): Access granted.
[...] -> I closed remote-gui.net and started it again
2008-03-24 20:30:38: ExternalConn.cpp(117): External connection closed.
2008-03-24 20:30:54: ExternalConn.cpp(218): New external connection accepted
2008-03-24 20:30:54: ExternalConn.cpp(252): Connecting client: amule.net 0.0.1
2008-03-24 20:30:54: ExternalConn.cpp(307): Access granted.
Resolved: 'localhost' -> '127.0.0.1
Connecting to 127.0.0.1:4712
Socket connected to 127.0.0.1:4712
TxCallback signalled, calling EndWrite
RxCallback signalled, calling EndReceive
RxCallback: got 8 bytes, waiting for 0
RxCallback: expecting packet size=14
RxCallback signalled, calling EndReceive
RxCallback: got 14 bytes, waiting for 0
Packet received - call handler
amuleLogicHandler : Authenticated OK
I close aMule:
]RxCallback signalled, calling EndReceive
Connection terminated on remote side
Connect done
TxCallback signalled, calling EndWrite
I'll try later again with OpenBox, I use xmonad now and maybe its screwing up something despite using different workspaces for all apps.
-
OK, on Openbox it won't even show the window after terminating aMule, but it will crash instead:
Resolved: 'localhost' -> '127.0.0.1
Connecting to 127.0.0.1:4712
Socket connected to 127.0.0.1:4712
TxCallback signalled, calling EndWrite
RxCallback signalled, calling EndReceive
RxCallback: got 8 bytes, waiting for 0
RxCallback: expecting packet size=14
RxCallback signalled, calling EndReceive
RxCallback: got 14 bytes, waiting for 0
Packet received - call handler
amuleLogicHandler : Authenticated OK
RxCallback signalled, calling EndReceive
Connection terminated on remote side
Connect done
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
at System.Configuration.CustomizableFileSettingsProvider.LoadPropertyValue (System.Configuration.SettingsPropertyCollection collection, System.Configuration.SettingElement element, Boolean allowOverwrite) [0x0001b] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs:656
at System.Configuration.CustomizableFileSettingsProvider.LoadProperies (System.Configuration.ExeConfigurationFileMap exeMap, System.Configuration.SettingsPropertyCollection collection, ConfigurationUserLevel level, System.String sectionGroupName, Boolean allowOverwrite) [0x00064] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs:677
at System.Configuration.CustomizableFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyCollection collection) [0x00030] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs:703
at System.Configuration.LocalFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyCollection properties) [0x00000] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.Configuration/LocalFileSettingsProvider.cs:68
at System.Configuration.ApplicationSettingsBase.CacheValuesByProvider (System.Configuration.SettingsProvider provider) [0x00067] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:179
at System.Configuration.ApplicationSettingsBase.GetPropertyValue (System.String propertyName) [0x00042] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:201
at System.Configuration.ApplicationSettingsBase.get_Item (System.String propertyName) [0x00000] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:209
at amule.net.amuleXferControlSettings.get_FilenameVisible () [0x00000] in /home/johkra/devel/amule-dev.compile/src/remote-gui.net/DownloadControl.cs:43
at amule.net.amuleDownloadStatusList.UpdateColumnIndexes () [0x0000b] in /home/johkra/devel/amule-dev.compile/src/remote-gui.net/DownloadControl.cs:155
at amule.net.amuleDownloadStatusList..ctor () [0x0017b] in /home/johkra/devel/amule-dev.compile/src/remote-gui.net/DownloadControl.cs:216
at (wrapper remoting-invoke-with-check) amule.net.amuleDownloadStatusList:.ctor ()
at amule.net.MainWindow.MainWindow_Load (System.Object sender, System.EventArgs e) [0x0013f] in /home/johkra/devel/amule-dev.compile/src/remote-gui.net/MainWindow.cs:139
at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x00022] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2067
at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00023] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2883
at System.Windows.Forms.Form.OnCreateControl () [0x00027] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2017
at System.Windows.Forms.Control.CreateControl () [0x0009e] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3608
at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message& m) [0x00036] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5434
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001dc] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5067
at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:717
at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x0003d] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs:560
at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x0017c] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2483
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:225
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:206
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x0006a] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:188
at System.Windows.Forms.XplatUIX11.SendMessage (IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam) [0x0008d] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:4883
at System.Windows.Forms.XplatUIX11.MapWindow (System.Windows.Forms.Hwnd hwnd, WindowType windows) [0x0003c] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1435
at System.Windows.Forms.XplatUIX11.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00569] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2711
at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:450
at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams create_params) [0x0000c] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:112
at System.Windows.Forms.Control.CreateHandle () [0x0003f] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4222
at System.Windows.Forms.Form.CreateHandle () [0x00000] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:1910
at System.Windows.Forms.Control.CreateControl () [0x00044] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3588
at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x0003e] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4770
at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00071] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2333
at System.Windows.Forms.Control.set_Visible (Boolean value) [0x0000c] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3260
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:set_Visible (bool)
at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00059] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:731
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00014] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:630
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] in /home/ise/cvs/extra/devel/mono/src/mono-1.2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:618
at amule.net.Program.Main () [0x0000b] in /home/johkra/devel/amule-dev.compile/src/remote-gui.net/Program.cs:41
Edit: OK, now it crashes on xmonad, too. Weird.
But please have a look at the tab order in the login dialog. Western users expect a left-to-right, top-to-down order, whilst you have top-to-down, left-to-right order.
-
BTW: what is xmonad? Looks like it crashes inside framework - do you have hello world running? Tab order is important, but missing zlib support in more.
-
xmonad is a (tiling) window manager written in Haskell; originally a rewrite of dwm. Sometimes (particularly when using video overlay in tiling mode) it will screw up some things, that's why I tried with OpenBox, too.
I've created an Hello World example using GTK# and it worked fine.
OK, I've just compiled using Release instead of debug and the first time it started and connected fine and showed the mainframe after closing aMule. The second time, it crashed with the same error message. Cleaning the solution doesn't change anything.
I'll blame mono for now, I think there's nothing you can do, except for examining why it won't show the main frame until I close aMule.
-
xmonad is a (tiling) window manager written in Haskell
I'm speechless.
I've created an Hello World example using GTK# and it worked fine.
Doesn't count. I'm not using GTK#, so your "hello world" shouldn't either. Take Microsoft Visual C# and create project with one window and one button on it. That's would be good start.
Unfortunately I can't test with Mono, since Fedora comes with too old version (and I really have no time to compile it from source).
Blaming Mono is nice, but maybe there's something I can do to work around
-
OK, I've compiled using VS2005 SP1 on Windows Vista Business and created a Hello World application, too. (I can install VS2008 [MSDN-AA] if required, but I didn't burn it yet.)
The hello world sample worked fine, but remote-gui.net showed the same behaviour as on Linux. Which is really funny: I can rename the executable or copy it to another path and it will work once - i.e. it will show the main frame after closing aMule. But as soon as I try it a second time, it will crash when aMule's closed. This doesn't happen with hello world, I can start and close it as often as I want.
Edit: I use still the same mono version as above, i.e. last stable.
-
Just want to be sure - what version of Mono are you testing? It turns out, that Fedora uses 1.2.5, while latest stable is 1.9 and 2.0 in Beta stage.
I will try to build and install latest releases and see how it goes
-
Let me rephrase: I use the last version without a beta in its name. ;) But I can upgrade, if you want.
$ pacman -Qi mono mono-addins monodevelop | grep -E "Name|Version"
Name : mono
Version : 1.2.6-1
Name : mono-addins
Version : 0.3-1
Name : monodevelop
Version : 1.0-3
-
OK, it looks like bug found in synchronization code. I wonder how it work in Windows.
-
how can i compile the remote-gui.NET under Linux?
sorry for the noob question :-\
-
I used monodevelop and simply opened the project file.
-
tried to compile with monodevelop, but when i try to build the solution, it gives this error:
[Task:File=/home/gulp/amule-cvs/src/remote-gui.net/AboutBox.resx, Line=0, Column=0, Type=Error, Priority=Normal, Description=ApplicationName='resgen2', CommandLine='/compile "/home/gulp/amule-cvs/src/remote-gui.net/AboutBox.resx"', CurrentDirectory='/home/gulp/amule-cvs/src/remote-gui.net', PATH='/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games']
i've opened the visual studio project file remote-gui.net.csproj
and also the monodevelop solution file remote-gui.net.csproj
Using monodevelop 1.0 under Ubuntu Hardy
-
Please open the solution (.sln) file. Note that it still crashed for me. (monodevelop 1.0, mono 1.9.1)
Unhandled Exception: System.Exception: 500, 400 is not a valid value for Int32. ---> System.FormatException: Input string was not in the correct format
at System.Int32.Parse (System.String s, NumberStyles style, IFormatProvider fp) [0x00016] in /home/ise/svn/mono/trunk/src/mono-1.9.1/mcs/class/corlib/System/Int32.cs:599
at System.ComponentModel.Int32Converter.ConvertFromString (System.String value, System.Globalization.NumberFormatInfo format) [0x00000] in /home/ise/svn/mono/trunk/src/mono-1.9.1/mcs/class/System/System.ComponentModel/Int32Converter.cs:53
at System.ComponentModel.BaseNumberConverter.ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.Object value) [0x00099] in /home/ise/svn/mono/trunk/src/mono-1.9.1/mcs/class/System/System.ComponentModel/BaseNumberConverter.cs:83 --- End of inner exception stack trace ---
at System.ComponentModel.BaseNumberConverter.ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.Object value) [0x000ad] in /home/ise/svn/mono/trunk/src/mono-1.9.1/mcs/class/System/System.ComponentModel/BaseNumberConverter.cs:86
at System.ComponentModel.TypeConverter.ConvertFromString (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.String text) [0x00000] in /home/ise/svn/mono/trunk/src/mono-1.9.1/mcs/class/System/System.ComponentModel/TypeConverter.cs:104
at System.Drawing.SizeConverter.ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.Object value) [0x00045] in /home/ise/svn/mono/trunk/src/mono-1.9.1/mcs/class/System.Drawing/System.Drawing/SizeConverter.cs:80
at System.ComponentModel.TypeConverter.ConvertFrom (System.Object o) [0x00000] in /home/ise/svn/mono/trunk/src/mono-1.9.1/mcs/class/System/System.ComponentModel/TypeConverter.cs:70
at System.ComponentModel.TypeConverter.ConvertFromString (System.String text) [0x00000] in /home/ise/svn/mono/trunk/src/mono-1.9.1/mcs/class/System/System.ComponentModel/TypeConverter.cs:94
at System.Configuration.ApplicationSettingsBase.CreateSettingsProperty (System.Reflection.PropertyInfo prop, System.Configuration.SettingsPropertyCollection properties, System.Configuration.LocalFileSettingsProvider& local_provider) [0x000ed] in /home/ise/svn/mono/trunk/src/mono-1.9.1/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:292
at System.Configuration.ApplicationSettingsBase.get_Properties () [0x00061] in /home/ise/svn/mono/trunk/src/mono-1.9.1/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:259
at System.Configuration.ApplicationSettingsBase..ctor () [0x00006] in /home/ise/svn/mono/trunk/src/mono-1.9.1/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:44
at amule.net.amuleSettings..ctor () [0x00000]
at amule.net.MainWindow..ctor () [0x00000]
at (wrapper remoting-invoke-with-check) amule.net.MainWindow:.ctor ()
at amule.net.Program.Main () [0x0000b] in /home/johkra/compile/src/remote-gui.net/Program.cs:41