Deadline 3.1 or 4.0 - Problems under Centos 5.4

I’m trying to test Deadline but I’m getting an error when I try to run Deadline 3.1 or 4.0 on my Centos 5.4 machine.
I’ve tried in another machine but had the same error with different versions of Mono.

This is the error on Deadline 3.1:

Deadline Launcher 3.1: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext (System.TypeInitializationException)
at System.Windows.Forms.Control…ctor () [0x00000]
at System.Windows.Forms.ScrollableControl…ctor () [0x00000]
at System.Windows.Forms.ContainerControl…ctor () [0x00000]
at System.Windows.Forms.Form…ctor () [0x00000]
at FranticXForms.Forms.MainForm…ctor () [0x00000]
at DeadlineForms.Forms.DeadlineMainForm…ctor () [0x00000]
at (wrapper remoting-invoke-with-check) DeadlineForms.Forms.DeadlineMainForm:.ctor ()
at DeadlineLauncher.DeadlineLauncherApp.Main (System.String[] args) [0x00000]

And this one is on Deadline 4.0:
Deadline Launcher 4.0: An exception was thrown by the type initializer for System.Drawing.KnownColors (System.TypeInitializationException)
at System.Drawing.SystemColors.get_Control () [0x00000]
at FranticXForms.CustomControls.CustomControlOptions…ctor () [0x00000]
at FranticXForms.CustomControls.CustomControlManager…ctor () [0x00000]
at FranticXForms.CustomControls.CustomControlManager.GetInstance () [0x00000]
at Deadline.Configuration.DeadlineConfig.InitApplication (RemoteErrorReportingPolicy reportingPolicy) [0x00000]
at Deadline.Configuration.DeadlineConfig.InitApplication () [0x00000]
at DeadlineLauncher.DeadlineLauncherApp.Main (System.String[] args) [0x00000]

Can someone help me?

Looks like a problem with mono, but I don’t have any more ideas.

Thanks,
Luiz Garrido

Hi Luiz,

This definitely sounds like a Mono problem. A couple of things to check:

  1. Which version of Mono do you have installed? Deadline 3.1 needs Mono 2.2, and Deadline 4.0 should work fine with Mono 2.4 and 2.6. You can check the mono version by running the following from a terminal:
mono -V
  1. How did you install Mono? If you installed from a software package utility, make sure that libdgiplus and the mono-winforms components were installed correctly. If you installed from source, let us know and we can go from there.

Cheers,

  • Ryan

Well, I’ve tried thru yum and installed everything needed. Same problem.
If I uninstall just mono-winforms, I get another error, but, as you said, I need mono-winforms. I think that’s the error, so, I’ve installed mono-winforms again. Same problem.

After that, I’ve uninstalled everything and downloaded 2.2 source. Compiled and… Same problem.

Here is my mono -V output:

Mono JIT compiler version 2.2 (tarball Tue Mar 2 13:40:29 BRST 2010)
Copyright © 2002-2008 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none

Thanks!

Can you try downloading and compiling the 2.6.1 source? Also, are you compiling the libgdiplus source as well?

I can’t compile libgdplus, I’m getting this error (just pasting end of output):

–whole-archive …/cairo/src/.libs/libcairo.a -Wl,–no-whole-archive -L/lib64 -lglib-2.0 -lz -lm -lfreetype -lXrender -lX11 -ltiff -ljpeg -lpng12 -lpthread -lfontconfig -pthread -Wl,-soname -Wl,libgdiplus.so.0 -o .libs/libgdiplus.so.0.0.0
/usr/bin/ld: .libs/image.o: relocation R_X86_64_PC32 against gdip_getcodecinfo_gif' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[2]: *** [libgdiplus.la] Error 1 make[2]: Leaving directory/home/render/Desktop/libgdiplus-2.6/src’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/render/Desktop/libgdiplus-2.6’

I don’t know what “recompile with -fPIC” means…

But mono compiles.
And, same problem.

Thanks

We are using Deadline on CentOS 5.4 on some machines. Going through yum did not work for us either, so we had to compile Mono and libgdplus. But after it was all compiled (the usual way with “make” then “makeinstall”), Deadline seemed to work fine.

We used libgdiplus-2.6 and mono-2.6.1. Also, unless mono-winforms is included with mono, then we didn’t install it.

I hope that helps.

Not having libgdiplus installed is likely the root of your problem. Found this thread on the subject:
mail-archive.com/mono-bugs@l … 55085.html

Seems like the problem could be due to an older version of binutil, or perhaps you need to add some additional compiler flags.

Hope this helps!

  • Ryan

Hmmm, nice to know that I’m not the only one having this problem.
Well, I’ve tried to compile libgdplus but I’m getting the error that I’ve posted before.

Does anyone know what to do now?

Thanks

Oh, I didn’t see the last post.
Ok, I’ll try to compile libgdplus.

I’ll write again when I get new results.

Thanks

Does your installer changes anything on the system?

I am asking this because after I did a lot of things without success… Still not compiling libgdplus… I’ve reinstalled deadline and it worked.

Now, I don’t know what really changed…

I’ll format my system and try it again.

It shouldn’t. It just installs the necessary Deadline files and that’s it. I’m kind of surprised that it’s working, unless it’s using the libgdiplus that was originally installed by the software manager (ie: yum). When you build and installed mono from source, did you remove the version of mono that yum installed? If not, having 2 different versions of Mono on the machine could have been causing issues.

It would be interesting to hear how the install goes on a clean system.

Cheers,

  • Ryan

I think I’ll give up…
After formatting and having a clean install, I’ve used yum to install libgdiplus, since I can’t compile it again (same problem). After that, I’ve compiled Mono 2.2 and installed Deadline 3.1.
And now, I have a different error. Launcher start, I can see its interface… It automatically starts deadline slave, and after that all closes.

Here is the output:

Deadline Launcher 3.1 [v3.1.0.36430 R]
Launcher Thread - Launcher thread initializing…
Perfoming remote admin check
Launcher Thread - Remote administration is disabled
Launcher Thread - Launcher thread listing on port 5042

Exception Details
DllNotFoundException – libMonoPosixHelper.so
TypeLoadException.TypeName:
Exception.Source: Mono.Posix
Exception.TargetSite: Void .cctor()
Exception.Data: ( )
Exception.StackTrace:
at (wrapper managed-to-native) Mono.Unix.Native.Syscall:_L_ctermid ()
at Mono.Unix.Native.Syscall…cctor () [0x00000]

TypeInitializationException – An exception was thrown by the type initializer for Mono.Unix.Native.Syscall
TypeInitializationException.TypeName: Mono.Unix.Native.Syscall
Exception.Source: System.Windows.Forms
Exception.TargetSite: Void UpdateMessageQueue(System.Windows.Forms.XEventQueue)
Exception.Data: ( )
Exception.StackTrace:
at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue) [0x00000]
at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr handle, Int32 wFilterMin, Int32 wFilterMax) [0x00000]
at System.Windows.Forms.XplatUIX11.PeekMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax, UInt32 flags) [0x00000]
at System.Windows.Forms.XplatUIX11.DoEvents () [0x00000]
at System.Windows.Forms.XplatUI.DoEvents () [0x00000]
at System.Windows.Forms.Application.DoEvents () [0x00000]
at DeadlineLauncher.DeadlineLauncherIcon.RunLauncher (System.String[] args, Boolean allowedToRun) [0x00000]
at DeadlineLauncher.DeadlineLauncherIcon.RunDeadlineLauncher (System.String[] args, Boolean allowedToRun) [0x00000]
at DeadlineLauncher.DeadlineLauncherApp.Main (System.String[] args) [0x00000]

Deadline Slave 3.1 [v3.1.0.36430 R]
reporting ‘[Deadline Launcher 3.1 Exception] - TypeInitializationException’ via email…
ErrorLog.WriteExceptionLog() >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Date Stamp
CurrentDate: Wednesday, 03 March 2010
CurrentTime: 18:59:20

Exception Details
DllNotFoundException – libMonoPosixHelper.so
TypeLoadException.TypeName:
Exception.Source: Mono.Posix
Exception.TargetSite: Void .cctor()
Exception.Data: ( )
Exception.StackTrace:
at (wrapper managed-to-native) Mono.Unix.Native.Syscall:_L_ctermid ()
at Mono.Unix.Native.Syscall…cctor () [0x00000]

TypeInitializationException – An exception was thrown by the type initializer for Mono.Unix.Native.Syscall
TypeInitializationException.TypeName: Mono.Unix.Native.Syscall
Exception.Source: System.Windows.Forms
Exception.TargetSite: Void UpdateMessageQueue(System.Windows.Forms.XEventQueue)
Exception.Data: ( )
Exception.StackTrace:
at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue) [0x00000]
at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr handle, Int32 wFilterMin, Int32 wFilterMax) [0x00000]
at System.Windows.Forms.XplatUIX11.PeekMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax, UInt32 flags) [0x00000]
at System.Windows.Forms.XplatUIX11.DoEvents () [0x00000]
at System.Windows.Forms.XplatUI.DoEvents () [0x00000]
at System.Windows.Forms.Application.DoEvents () [0x00000]
at DeadlineLauncher.DeadlineLauncherIcon.RunLauncher (System.String[] args, Boolean allowedToRun) [0x00000]
at DeadlineLauncher.DeadlineLauncherIcon.RunDeadlineLauncher (System.String[] args, Boolean allowedToRun) [0x00000]
at DeadlineLauncher.DeadlineLauncherApp.Main (System.String[] args) [0x00000]

ErrorReporting Watches
“Version”: v3.1.0.36430 R[String]

Trace2Cache:
Deadline Launcher 3.1 [v3.1.0.36430 R]
Launcher Thread - Launcher thread initializing…
Perfoming remote admin check
Launcher Thread - Remote administration is disabled
Launcher Thread - Launcher thread listing on port 5042

Exception Details
DllNotFoundException – libMonoPosixHelper.so
TypeLoadException.TypeName:
Exception.Source: Mono.Posix
Exception.TargetSite: Void .cctor()
Exception.Data: ( )
Exception.StackTrace:
at (wrapper managed-to-native) Mono.Unix.Native.Syscall:_L_ctermid ()
at Mono.Unix.Native.Syscall…cctor () [0x00000]

TypeInitializationException – An exception was thrown by the type initializer for Mono.Unix.Native.Syscall
TypeInitializationException.TypeName: Mono.Unix.Native.Syscall
Exception.Source: System.Windows.Forms
Exception.TargetSite: Void UpdateMessageQueue(System.Windows.Forms.XEventQueue)
Exception.Data: ( )
Exception.StackTrace:
at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue) [0x00000]
at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr handle, Int32 wFilterMin, Int32 wFilterMax) [0x00000]
at System.Windows.Forms.XplatUIX11.PeekMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax, UInt32 flags) [0x00000]
at System.Windows.Forms.XplatUIX11.DoEvents () [0x00000]
at System.Windows.Forms.XplatUI.DoEvents () [0x00000]
at System.Windows.Forms.Application.DoEvents () [0x00000]
at DeadlineLauncher.DeadlineLauncherIcon.RunLauncher (System.String[] args, Boolean allowedToRun) [0x00000]
at DeadlineLauncher.DeadlineLauncherIcon.RunDeadlineLauncher (System.String[] args, Boolean allowedToRun) [0x00000]
at DeadlineLauncher.DeadlineLauncherApp.Main (System.String[] args) [0x00000]

0 Other Running Threads

Process Threads

Memory and CPU Stats
GC.TotalMemory: 1.566 MB
Environment.WorkingSet: 0 Bytes
ComputerSystem.TotalPhysicalMemory: 29.967 GB
ComputerSystem.FreePhysicalMemory: 29.624 GB

Application Information
Application.ExecutablePath: /usr/local/lib/deadline/deadlinelauncher.exe
Application.CurrentDirectory: /home/render
Application.StartupPath: /usr/local/lib/deadline
Application.ProductName: Deadline Launcher 3.1
Application.ProductVersion: 3.1.0.36430 File.GetLastWriteTime( Application.ExecutablePath ): 06/11/2009 13:25:58

Assembly Information (Executing)
ExecutingAssembly.CodeBase: file:///usr/local/lib/deadline/franticx.dll
ExecutingAssembly.Location: /usr/local/lib/deadline/franticx.dll
ExecutingAssembly.GlobalAssemblyCache: False File.GetLastWriteTime( ExecutingAssembly.Location ): 06/11/2009 13:25:58

Assembly Information (Current)
CurrentAssembly.CodeBase: file:///usr/local/lib/deadline/franticx.dll
CurrentAssembly.Location: /usr/local/lib/deadline/franticx.dll
CurrentAssembly.GlobalAssemblyCache: False File.GetLastWriteTime( CurrentAssembly.Location ): 06/11/2009 13:25:58

Thread Information
CurrentThread.Name:
CurrentThread.Priority: Lowest

Process Information
CurrentProcess.Name: deadlinelauncher
CurrentProcess.MachineName: localhost
CurrentProcess.MainModule: deadlinelauncher.exe
CurrentProcess.StartDate: Wednesday, 03 March 2010
CurrentProcess.StartTime: 18:59:19
CurrentProcess.UserProcessorTime: 686.895 ms
CurrentProcess.TotalProcessorTime: 805.877 ms

Operating System Information
Environment.OSVersion.Platform: CentOS release 5.4 (Final)
Environment.OSVersion.Version: 2.6.18.164

.NET Platform Information
Environment.Version.Major: 2
Environment.Version.Minor: 0
Environment.Version.Build: 50727
Environment.Version.Revision: 1433

Misc Environment Information
Environment.MachineName: Localhost.localdomain
Environment.UserName: render
Environment.SystemDirectory:
Environment.TickCount: 15997540

Command Line
Environment.CommandLine: /usr/local/lib/deadline/deadlinelauncher.exe
Environment.CommandLineArgs[0]: /usr/local/lib/deadline/deadlinelauncher.exe

Current Call Stack
Environment.StackTrace: at System.Environment.get_StackTrace()
at FranticX.Diagnostics.Reporting.ErrorReporting.GetExceptionReport(System.Exception e, ErrorReportDetail detail)
at FranticX.Diagnostics.Reporting.ErrorReporting.WriteExceptionReport(System.Exception ex)
at FranticX.Applications.ApplicationManager.StartupException(System.Exception e)
at DeadlineLauncher.DeadlineLauncherApp.Main(System.String[] args)

Deadline Slave 3.1: An exception was thrown by the type initializer for Mono.Unix.Native.Syscall (System.TypeInitializationException)
at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue) [0x00000]
at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr handle, Int32 wFilterMin, Int32 wFilterMax) [0x00000]
at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax) [0x00000]
at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000]
at System.Windows.Forms.Form.ShowDialog (IWin32Window owner) [0x00000]
at System.Windows.Forms.Form.ShowDialog () [0x00000]
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:ShowDialog ()
at FranticXForms.Forms.TimedMessageForm.Show (System.String message, System.String title, System.String[] buttons, Int32 secondsToDisplay) [0x00000]
at DeadlineSlave.DeadlineSlaveApp.ConnectToRepository (Boolean guiMode) [0x00000]
at Deadline.Applications.SlaveApplication.RunSlave (System.String[] args) [0x00000]
output.txt (9.29 KB)

If you still want to continue hammering away at this, we’re here to help.

First, installing libgdiplus from yum and mono from source is generally not a good idea. Both should be installed the same way (either both from source or both from yum). Since it seems like a common issue where installing from yum causes problems, we should focus on installing from source.

I probably should have mentioned this earlier, but libgdiplus is a dependency for Mono when it comes to running user interfaces, so if it’s not installed properly, you won’t be able to run Deadline.

So if you want to give this another go, I would suggest wiping the system again and focus on getting libgdiplus to compile first (before compiling Mono or installing Deadline). The first thing you should be doing is running the ./configure command from inside the unpacked libgdiplus folder. If you can post the ./configure command you’re running (assuming you’re passing additional arguments to the command), as well as the output from the ./configure command, that would be a good start.

Cheers,

  • Ryan

Ok, I’ll get the outputs from my ./configure.

Until that, what does this guy means with:

“Binutil v2.18 was not the clue.
I add -Wl,-Bsymbolic and then it compile.”

???

http://www.mail-archive.com/mono-bugs@lists.ximian.com/msg55285.html

Thanks,
Luiz

I got the outputs…

Files:

  • configure_wo_options.txt
  • make_wo_options.txt
    Are for ./configure.

Files:

  • configure_w_options.txt
  • make_w_options.txt
    Are for ./configure --without-libgif --without-libtiff --without-libjpeg --without-libexif --without-libeexif

Thanks
output.tar (460 KB)

Thanks. Nothing looks out of the ordinary in the configure logs. I’m assuming the guy in that thread is referring to compiler flags. I checked the flags being used in the command that fails, and -Wl is already there.

Have you checked the version of binutils on the machine? Check that it’s the latest version, or at the very least, >= 2.18.

Cheers,

  • Ryan

Ok, I’ve just tried with 2.18 and 2.20. Same results.

I really don’t know how this problem was resolved last time. But after a clean install, it never worked again…

I’ll keep trying.

Thanks

Took a look through our docs on building mono from source on CentOS:
software.primefocusworld.com/sof … source.php

We’ve noted that these dependencies need to be installed:
* glib2-devel (Fedora) or glib-devel (CentOS)
* fontconfig-devel
* bison

Not sure if you have those already, but figured it was worth mentioning.

Cheers,

  • Ryan

Yes, this time I’ve forgot to install that dependencies…
But after I’ve installed them, I got same results.

I’ll try more on Monday now…

Thanks for your help.

Luiz

Progress!
After a clean install (again), I finally compiled libgdiplus and mono.

But I’m having the same error with deadline. I figured out that when deadline launcher launches, it get info from some file. I think my problem is there and that is why when on that second deadline install I’ve solved the problem. I don’t know if it is with deadline.ini, or maybe it’s not loading my repository… I don’t know.
So, maybe you can help me from here…

Here is the output again:
[render@localhost ~]$ deadlinelauncher

** (/usr/local/lib/deadline/deadlinelauncher.exe:3025): WARNING **: System.Net.Sockets.SocketOptionName 0x1b is not supported at IPv6 level
Deadline Launcher 3.1: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext (System.TypeInitializationException)
at System.Windows.Forms.Control…ctor () [0x00000] in :0
at System.Windows.Forms.ScrollableControl…ctor () [0x00000] in :0
at System.Windows.Forms.ContainerControl…ctor () [0x00000] in :0
at System.Windows.Forms.Form…ctor () [0x00000] in :0
at FranticXForms.Forms.MainForm…ctor () [0x00000] in :0
at DeadlineForms.Forms.DeadlineMainForm…ctor () [0x00000] in :0
at (wrapper remoting-invoke-with-check) DeadlineForms.Forms.DeadlineMainForm:.ctor ()
at DeadlineLauncher.DeadlineLauncherApp.Main (System.String[] args) [0x00000] in :0

Thanks