New Install won't start

10/30/12 1:42:26.343 PM [0x0-0x8f08f].net.deadline.ClientSetupWizard: Could not find platform independent libraries <prefix> 10/30/12 1:42:26.343 PM [0x0-0x8f08f].net.deadline.ClientSetupWizard: Could not find platform dependent libraries <exec_prefix> 10/30/12 1:42:26.343 PM [0x0-0x8f08f].net.deadline.ClientSetupWizard: Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] 10/30/12 1:42:26.746 PM [0x0-0x8f08f].net.deadline.ClientSetupWizard: Python.NET Error: Python Exception: InvalidOperationException : (Python.Runtime.PythonException) 10/30/12 1:42:26.746 PM [0x0-0x8f08f].net.deadline.ClientSetupWizard: Type: <class 'System.InvalidOperationException'> 10/30/12 1:42:26.746 PM [0x0-0x8f08f].net.deadline.ClientSetupWizard: Value: Cannot get script dialog because the main form hasn't been initialized 10/30/12 1:42:26.746 PM [0x0-0x8f08f].net.deadline.ClientSetupWizard: at Deadline.Scripting.DeadlineScriptEngine.GetScriptDialog () [0x00000] in <filename unknown>:0 10/30/12 1:42:26.746 PM [0x0-0x8f08f].net.deadline.ClientSetupWizard: at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) 10/30/12 1:42:26.746 PM [0x0-0x8f08f].net.deadline.ClientSetupWizard: at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 10/30/12 1:42:26.746 PM [0x0-0x8f08f].net.deadline.ClientSetupWizard: Stack Trace: 10/30/12 1:42:26.746 PM [0x0-0x8f08f].net.deadline.ClientSetupWizard: [' File "none", line 42, in __main__\n']

Fresh install of the OS… totally new partition and everything. Any help would be appreciated. Thanks!

Mac OS X 10.7.5 with X11 2.6.4
MonoFramework-2.6.7_3.macos10.novell.x86.dmg
Deadline_Mac_Installers_5_2_47700.dmg

At this point, Deadline is technically installed, so could you try running the Deadline Monitor from a terminal and then send us the error that is printed to the console? Just run this from a terminal:

/Applications/Deadline/Resources/bin/deadlinemonitor

We’ll go from there.

Thanks!

  • Ryan

[code]Last login: Mon Oct 29 20:04:01 on console
Lion-Master-Image:~ skylineadmin$ /Applications/Deadline/Resources/bin/deadlinemonitor ; exit;
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Deadline Monitor 5.2: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI (System.TypeInitializationException)
at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in :0
at FranticXForms.Utils.ApplicationUtils.EnableVisualStyles () [0x00000] in :0
at DeadlineMonitor.DeadlineMonitorApp.Main (System.String[] args) [0x00000] in :0
logout

[Process completed][/code]

Thanks! That error indicates that Mono is unable to find its main drawing library. We’ve seen this crop up a few times on OSX, and we have no idea why this happens, since that drawing library is part of the normal Mono installation.

Maybe try uninstalling Mono:
mono-project.com/Mono:OSX#Un … n_Mac_OS_X

And then try installing the universal one to see if that helps. It shouldn’t make a difference, but it doesn’t hurt to try:
download.mono-project.com/archiv … versal.dmg

In Deadline 6, we are moving away from Mono’s drawing and winforms libraries for our user interface, so issues like this will be a thing of the past.

Did the uninstall, reboot, and reinstall using the universal installer and I’m getting the following when I run /Applications/Deadline/Resources/bin/deadlinemonitor

[code]Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Deadline Monitor 5.2: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI (System.TypeInitializationException)
at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in :0
at FranticXForms.Utils.ApplicationUtils.EnableVisualStyles () [0x00000] in :0
at DeadlineMonitor.DeadlineMonitorApp.Main (System.String[] args) [0x00000] in :0
logout

[/code]

I was half-expecting that wouldn’t work, but thanks for trying anyways.

Can you open a terminal and run the following two commands, and then send us the output:

otool -L /Library/Frameworks/Mono.framework/Commands/mono
otool -L /Library/Frameworks/Mono.framework/Libraries/libgdiplus.dylib 

If mono is unable to find certain libraries, this should tell us which one(s) it can’t find.

Thanks!

  • Ryan

otool -L /Library/Frameworks/Mono.framework/Commands/mono:

/Library/Frameworks/Mono.framework/Commands/mono (architecture i386): /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.5) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libgthread-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.1.0) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libglib-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.1.0) /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 25.0.2) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.1.0) /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /Library/Frameworks/Mono.framework/Commands/mono (architecture ppc7400): /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libgthread-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.1.0) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libglib-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.1.0) /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 25.0.2) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.1.0) /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.5) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

otool -L /Library/Frameworks/Mono.framework/Libraries/libgdiplus.dylib:

/Library/Frameworks/Mono.framework/Libraries/libgdiplus.dylib (architecture i386): /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libgdiplus.0.dylib (compatibility version 1.0.0, current version 1.0.0) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libglib-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.1.0) /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 25.0.2) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.1.0) /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.5) /usr/X11/lib/libfontconfig.1.dylib (compatibility version 5.0.0, current version 5.0.0) /usr/X11/lib/libfreetype.6.dylib (compatibility version 10.0.0, current version 10.20.0) /usr/X11/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0) /usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current version 9.0.0) /usr/X11/lib/libXau.6.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/X11/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current version 7.0.0) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libtiff.3.8.2.dylib (compatibility version 12.0.0, current version 12.2.0) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libjpeg.8.dylib (compatibility version 9.0.0, current version 9.2.0) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libgif.4.1.6.dylib (compatibility version 6.0.0, current version 6.6.0) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libpng12.0.dylib (compatibility version 45.0.0, current version 45.0.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 32.0.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.19.0) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 34.0.0) /Library/Frameworks/Mono.framework/Libraries/libgdiplus.dylib (architecture ppc7400): /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libgdiplus.0.dylib (compatibility version 1.0.0, current version 1.0.0) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libglib-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.1.0) /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 25.0.2) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.1.0) /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.5) /usr/X11/lib/libfontconfig.1.dylib (compatibility version 3.0.0, current version 3.0.0) /usr/X11/lib/libfreetype.6.dylib (compatibility version 10.0.0, current version 10.16.0) /usr/X11/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0) /usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current version 9.0.0) /usr/X11/lib/libXau.6.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/X11/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current version 7.0.0) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libtiff.3.8.2.dylib (compatibility version 12.0.0, current version 12.2.0) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libjpeg.8.dylib (compatibility version 9.0.0, current version 9.2.0) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libgif.4.1.6.dylib (compatibility version 6.0.0, current version 6.6.0) /Library/Frameworks/Mono.framework/Versions/2.6.7/lib/libpng12.0.dylib (compatibility version 45.0.0, current version 45.0.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 32.0.0) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 34.0.0) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.19.0)

Well, it looks like it’s finding all of its dependencies just fine. Now I’m stumped…

I’ll ask around here to see if our head technician has any ideas.

Well if you can’t figure out what’s the issue, I wouldn’t mind beta testing 6 for ya :mrgreen:

So, I’ve spent about an hour reverse-engineering Mono’s XplatUI code, and I’m not getting too far.

We get the same error on one of our headless servers when X11 isn’t installed. I walked through a bunch of debug output, and something that caught me eye was “Could not open display (X-Server required. Check you DISPLAY environment variable)]” which is a super common issue in the unix world I still have issues with.

So, what might be happening here is that Mono isn’t starting X11 for itself. For more troubleshooting awesomeness, can you try and start X11 first, then try starting a Deadline app?

I’ll keep trying over here and see if I can make any new discoveries. I might need to take another crack at this fresh tomorrow.

We’d love for you to test it! Just shoot an email to beta@thinkboxsoftware.com and they’ll set you up!

Well SetupWizard certainly thought about it a bit longer than before…

got this from Console:

10/31/12 3:13:51.843 PM [0x0-0x61061].net.deadline.ClientSetupWizard: Could not find platform independent libraries <prefix> 10/31/12 3:13:51.843 PM [0x0-0x61061].net.deadline.ClientSetupWizard: Could not find platform dependent libraries <exec_prefix> 10/31/12 3:13:51.843 PM [0x0-0x61061].net.deadline.ClientSetupWizard: Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] 10/31/12 3:13:52.242 PM [0x0-0x61061].net.deadline.ClientSetupWizard: Python.NET Error: Python Exception: InvalidOperationException : (Python.Runtime.PythonException) 10/31/12 3:13:52.242 PM [0x0-0x61061].net.deadline.ClientSetupWizard: Type: <class 'System.InvalidOperationException'> 10/31/12 3:13:52.242 PM [0x0-0x61061].net.deadline.ClientSetupWizard: Value: Cannot get script dialog because the main form hasn't been initialized 10/31/12 3:13:52.242 PM [0x0-0x61061].net.deadline.ClientSetupWizard: at Deadline.Scripting.DeadlineScriptEngine.GetScriptDialog () [0x00000] in <filename unknown>:0 10/31/12 3:13:52.242 PM [0x0-0x61061].net.deadline.ClientSetupWizard: at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) 10/31/12 3:13:52.242 PM [0x0-0x61061].net.deadline.ClientSetupWizard: at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 10/31/12 3:13:52.242 PM [0x0-0x61061].net.deadline.ClientSetupWizard: Stack Trace: 10/31/12 3:13:52.242 PM [0x0-0x61061].net.deadline.ClientSetupWizard: [' File "none", line 42, in __main__\n']

You should just use Deadline 6.0 :stuck_out_tongue:

Final discoveries here for others on the internet who hit this problem (This’ll be a little techie):

The error, after much digging, seems to be caused by XOpenDisplay() returning null. Here are the actual calls being done for it:

[0x7f216c47e760: 879.77689 17] ENTER: (wrapper managed-to-native) System.Windows.Forms.XplatUIX11:XInitThreads ()()
[0x7f216c47e760: 879.77694 17] LEAVE: (wrapper managed-to-native) System.Windows.Forms.XplatUIX11:XInitThreads ()result=1
[0x7f216c47e760: 879.77704 17] ENTER: (wrapper managed-to-native) System.Windows.Forms.XplatUIX11:XOpenDisplay (intptr)((nil), )
[0x7f216c47e760: 879.77984 17] LEAVE: (wrapper managed-to-native) System.Windows.Forms.XplatUIX11:XOpenDisplay (intptr)result=0

tronche.com/gui/x/xlib/display/opening.html

That causes everything in the Mono framework to topple over. It’s not even an error in libgdiplus! It’s part of the core Mono stuff.

Still not sure why ‘-nogui’ still calls ‘EnableVisualStyles()’ that makes this break, but we’re moving away from this whole can of worms in 2013Q1 when Deadline 6.0 is released.

So, as for solving this: I don’t know yet. In theory it’s an X11 problem, so any X11-based application should fail as well. As a test, try and run xterm from the Terminal and see if that is broken too.

It should be as easy as starting X11, checking to see that running echo $DISPLAY says something relevant (and if not setting it to “:0.0”), and enjoying. The big question here is, why isn’t X11 being started automatically, and/or why is the DISPLAY variable blank?
Great infos here:
stackoverflow.com/questions/6624 … es-it-mean

running “echo $DISPLAY” returns :O

That should be fine… You can try setting it by typing the following in the Terminal:
export DISPLAY=":0.0"

That should at the very least set it for that terminal session, so try running one of the Deadline apps from the same window.

If that doesn’t work, I’ll need to put some more thought into this.