System.TypeInitializationException thrown when deploying on Cloud

0
Hi All, Application is throwing below error when trying to deploy on cloud: Its running perfectly fine on local machine. Could anyone please tell what could the issue be. ERROR: System.TypeInitializationException: The type initializer for 'Mendix.Modeler.WebUI.Forms.Widgets.LayoutWidgets.Tables.TableViewUtil' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: libgdiplus.so.0   at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)   at System.Drawing.GDIPlus..cctor () [0x000cc] in <1917aa1c39d94b1a91807b8cd9f03350>:0    --- End of inner exception stack trace ---   at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00077] in <1917aa1c39d94b1a91807b8cd9f03350>:0   at System.Drawing.Bitmap..ctor (System.IO.Stream stream, System.Boolean useIcm) [0x00006] in <1917aa1c39d94b1a91807b8cd9f03350>:0   at System.Drawing.Bitmap..ctor (System.IO.Stream stream) [0x00000] in <1917aa1c39d94b1a91807b8cd9f03350>:0   at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (System.IO.Stream)   at Mendix.Modeler.Theming.Icons.GetResourceValue (System.String resourceName, System.Func`2[T,TResult] iconConverter) [0x0000b] in <9d92b988bf45408eb6daec727b7f86c4>:0   at Mendix.Modeler.Theming.Icons+<>c.<.cctor>b__6405_1080 () [0x00000] in <9d92b988bf45408eb6daec727b7f86c4>:0   at System.Lazy`1[T].CreateValue () [0x00075] in <8f2c484307284b51944a1a13a14c0266>:0    --- End of inner exception stack trace ---   at Mendix.Modeler.WebUI.Forms.Tasks.CommonTasks.Init () [0x0000a] in <71e24f1c42bb432ebc6952c0c702beec>:0   at Mendix.Modeler.WebUI.WebUIPlugin.Init () [0x00000] in <71e24f1c42bb432ebc6952c0c702beec>:0   at Mendix.Modeler.Plugins.PluginBase`1[TSelf].Mendix.Modeler.Plugins.IPlugin.Init (Mendix.Modeler.Core.IModelerCore _modelerCore) [0x00007] in <1c8cef8a56854ba2ade9de72d6377ede>:0   at Mendix.Modeler.Plugins.PluginManager.Init (Mendix.Modeler.Core.IModelerCore modelerCore) [0x00014] in <1c8cef8a56854ba2ade9de72d6377ede>:0   at Mendix.Modeler.ModelerCore..ctor (Mendix.Modeler.Core.IProjectManager projectManager, Mendix.Modeler.Utility.IFileSystem fileSystem, Mendix.Modeler.Projects.Checks.IProjectChecker projectChecker, Mendix.Modeler.Plugins.IPluginManager pluginManager) [0x0003a] in <1c8cef8a56854ba2ade9de72d6377ede>:0   at Mendix.CommandLine.Shared.ApplicationContainerFactory.InitializeModelerCore (Mendix.Modeler.Utility.DIContainer.IContainer container) [0x00018] in <313017a0ad874cf6aee896abff6d5a6a>:0   at Mendix.CommandLine.Shared.ApplicationContainerFactory.Init (System.Reflection.Assembly[] extraAssemblies) [0x0000b] in <313017a0ad874cf6aee896abff6d5a6a>:0   at Mendix.CommandLine.Shared.ApplicationContainerFactory.GetInstance (System.Reflection.Assembly[] extraAssemblies) [0x00007] in <313017a0ad874cf6aee896abff6d5a6a>:0   at Mendix.CommandLine.Shared.ProgramHelper.InitializeAndRun[T] (System.Func`2[T,TResult] program, System.Reflection.Assembly[] extraAssemblies) [0x00005] in <313017a0ad874cf6aee896abff6d5a6a>:0 Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: libgdiplus.so.0   at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)   at System.Drawing.GDIPlus..cctor () [0x000cc] in <1917aa1c39d94b1a91807b8cd9f03350>:0    --- End of inner exception stack trace ---   at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr)   at System.Drawing.Image.Dispose (System.Boolean disposing) [0x00000] in <1917aa1c39d94b1a91807b8cd9f03350>:0   at System.Drawing.Image.Finalize () [0x00000] in <1917aa1c39d94b1a91807b8cd9f03350>:0 ERROR: Could not read mxbuild error file Traceback (most recent call last):   File "/buildpack/bin/compile", line 226, in run_mx_build     subprocess.check_call(args, env=mono_env)   File "/usr/lib/python3.6/subprocess.py", line 311, in check_call     raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/tmp/opt/mono-4.6.2.16/bin/mono', '--config', '/tmp/opt/mono-4.6.2.16/etc/mono/config', '/build/.local/mxbuild/modeler/mxbuild.exe', '--target=package', '--output=/tmp/model.mda', '--java-home=/build/.local/usr/lib/jvm/jdk-8-oracle-x64', '--java-exe-path=/build/.local/usr/lib/jvm/jdk-8-oracle-x64/bin/java', '--write-errors=/tmp/builderrors.json', '/build/GE Logistics Plan.mpr']' returned non-zero exit status 255.  
asked
1 answers
0

We are having the exact same problem with Mendix 8.2.2 during the docker build process. 

Can anyone shed any light on this?

answered