marchaos 0 Posted September 24, 2014 Share Posted September 24, 2014 (edited) Hey, I'm using the instructions from here:http://mediabrowser.tv/community/index.php?/topic/3634-linux-setup/page-41&do=findComment&comment=132620 to install media browser on ubuntu 14.04. No images are showing. If I view the source of an image, I see this exception (sorry, quite large): any ideas? Response Status Error Code TypeInitializationException Message An exception was thrown by the type initializer for System.Drawing.GDIPlus Stack Trace [GetItemImage: 09/24/2014 21:36:27]: [REQUEST: {Id:7b99ffcabeb4765557a1fbb4f7dcd049,MaxHeight:560,Quality:90,Tag:142d9d5fd5cd5d10d7e31f2643c3e9c7,EnableImageEnhancers:True,Format:Webp,AddPlayedIndicator:False,Type:Primary}] System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: /usr/local/lib/libgdiplus.so at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00000] in <filename unknown>:0 at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, Boolean keepAlive) [0x00000] in <filename unknown>:0 at System.Drawing.Image.FromStream (System.IO.Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) [0x00000] in <filename unknown>:0 at MediaBrowser.Server.Implementations.Drawing.ImageProcessor+<ProcessImage>c__async1.MoveNext () [0x00000] in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <filename unknown>:0 at MediaBrowser.Api.Images.ImageService+<GetImageResult>c__async0.MoveNext () [0x00000] in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <filename unknown>:0 at MediaBrowser.Api.Images.ImageService+<GetImageResult>c__async0.MoveNext () [0x00000] in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <filename unknown>:0 at MediaBrowser.Api.Images.ImageService+<GetImageResult>c__async0.MoveNext () [0x00000] in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <filename unknown>:0 at MediaBrowser.Api.Images.ImageService+<GetImageResult>c__async0.MoveNext () [0x00000] in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at Edited September 24, 2014 by marchaos Link to comment Share on other sites More sharing options...
Luke 37246 Posted September 25, 2014 Share Posted September 25, 2014 you're missing libgdi Link to comment Share on other sites More sharing options...
thefirstofthe300 291 Posted September 25, 2014 Share Posted September 25, 2014 Should be a simple sudo apt-get install libgdiplus Link to comment Share on other sites More sharing options...
marchaos 0 Posted September 25, 2014 Author Share Posted September 25, 2014 I thought as much but: marchaos@CUBE:~/.mediabrowser$ sudo apt-get install libgdiplus Reading package lists... Done Building dependency tree Reading state information... Done libgdiplus is already the newest version. The following packages were automatically installed and are no longer required: I noticed something else in the logs: InnerException: System.DllNotFoundException /usr/local/lib/libgdiplus.so at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0 adding /usr/local/lib/ to /etc/ld.so.conf might have helped, but still no images. Exception is now: 2014-09-24 23:34:04.5285 Error - HttpAsyncTaskHandler: Error occured while Processing Request: Object reference not set to an instance of an object Object reference not set to an instance of an object System.NullReferenceException at System.Exception.AddFrames (System.Text.StringBuilder sb, System.String newline, System.String unknown, System.Diagnostics.StackTrace st) [0x00000] in <filename unknown>:0 at System.Exception.get_StackTrace () [0x00000] in <filename unknown>:0 at System.Exception.ToString () [0x00000] in <filename unknown>:0 at System.String.Concat (System.Object arg0, System.Object arg1, System.Object arg2) [0x00000] in <filename unknown>:0 at ServiceStack.DtoUtils.CreateErrorResponse (System.Object request, System.Exception ex) [0x00000] in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[MediaBrowser.Api.Images.GetItemImage].HandleException (IRequest request, MediaBrowser.Api.Images.GetItemImage requestDto, System.Exception ex) [0x00000] in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[MediaBrowser.Api.Images.GetItemImage].Execute (IRequest request, System.Object instance, MediaBrowser.Api.Images.GetItemImage requestDto) [0x00000] in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[MediaBrowser.Api.Images.GetItemImage].Process (IRequest requestContext, System.Object instance, System.Object request) [0x00000] in <filename unknown>:0 at ServiceStack.Host.ServiceExec`1[MediaBrowser.Api.Images.ImageService].Execute (IRequest request, System.Object instance, System.Object requestDto, System.String requestName) [0x00000] in <filename unknown>:0 at ServiceStack.Host.ServiceRequestExec`2[MediaBrowser.Api.Images.ImageService,MediaBrowser.Api.Images.GetItemImage].Execute (IRequest requestContext, System.Object instance, System.Object request) [0x00000] in <filename unknown>:0 at ServiceStack.Host.ServiceController+<>c__DisplayClass11+<>c__DisplayClass13.<RegisterServiceExecutor>b__10 (IRequest reqCtx, System.Object req) [0x00000] in <filename unknown>:0 at ServiceStack.Host.ServiceController.ManagedServiceExec (ServiceStack.Host.ServiceExecFn serviceExec, IService service, IRequest request, System.Object requestDto) [0x00000] in <filename unknown>:0 at ServiceStack.Host.ServiceController+<>c__DisplayClass11.<RegisterServiceExecutor>b__f (IRequest requestContext, System.Object dto) [0x00000] in <filename unknown>:0 at ServiceStack.Host.ServiceController.Execute (System.Object requestDto, IRequest request) [0x00000] in <filename unknown>:0 at ServiceStack.HostContext.ExecuteService (System.Object request, IRequest httpReq) [0x00000] in <filename unknown>:0 at ServiceStack.Host.Handlers.ServiceStackHandlerBase.ExecuteService (System.Object request, IRequest httpReq) [0x00000] in <filename unknown>:0 at ServiceStack.Host.RestHandler.GetResponse (IRequest request, System.Object requestDto) [0x00000] in <filename unknown>:0 at ServiceStack.Host.RestHandler.ProcessRequestAsync (IRequest httpReq, IResponse httpRes, System.String operationName) [0x00000] in <filename unknown>:0 Link to comment Share on other sites More sharing options...
marchaos 0 Posted September 25, 2014 Author Share Posted September 25, 2014 Ok figured it out. It was complaining as it was in /usr/lib not /usr/local/lib. Cheers for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now