{"action":"created","issue":{"url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1495","repository_url":"https://api.github.com/repos/Sonarr/Sonarr","labels_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1495/labels{/name}","comments_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1495/comments","events_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1495/events","html_url":"https://github.com/Sonarr/Sonarr/issues/1495","id":181746614,"number":1495,"title":"[CRASHES ON STARTUP SINCE ARCH LINUX UPGRADE]Probably somehow linked to libgdiplus.so","user":{"login":"Rusk85","id":4667261,"avatar_url":"https://avatars.githubusercontent.com/u/4667261?v=3","gravatar_id":"","url":"https://api.github.com/users/Rusk85","html_url":"https://github.com/Rusk85","followers_url":"https://api.github.com/users/Rusk85/followers","following_url":"https://api.github.com/users/Rusk85/following{/other_user}","gists_url":"https://api.github.com/users/Rusk85/gists{/gist_id}","starred_url":"https://api.github.com/users/Rusk85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rusk85/subscriptions","organizations_url":"https://api.github.com/users/Rusk85/orgs","repos_url":"https://api.github.com/users/Rusk85/repos","events_url":"https://api.github.com/users/Rusk85/events{/privacy}","received_events_url":"https://api.github.com/users/Rusk85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-07T19:13:41Z","updated_at":"2016-10-08T05:03:11Z","closed_at":null,"body":"Since I have upgraded my arch linux system this afternoon, sonarr crashes after about 30 seconds after starting the service. I could isolate one Exception:\r\n\r\n`16-10-7 20:39:02.3|Debug|GlobalExceptionHandlers|Minor Fail: The type initializer for` ``'System.Drawing.GDIPlus' threw an exception.`\r\n`[v2.0.0.4326] System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: libgdiplus.so.0`\r\n  `at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)\r\n  at System.Drawing.GDIPlus..cctor () [0x000cc] in /build/mono/src/mono-4.6.1/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:119 \r\n   --- End of inner exception stack trace ---\r\n  at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr)\r\n  at System.Drawing.Image.Dispose (System.Boolean disposing) [0x00000] in /build/mono/src/mono-4.6.1/mcs/class/System.Drawing/System.Drawing/Image.cs:794 \r\n  at System.Drawing.Image.Finalize () [0x00000] in /build/mono/src/mono-4.6.1/mcs/class/System.Drawing/System.Drawing/Image.cs:789``\r\n\r\nI have reinstalled sonarr, mono and libgdiplus and checked that the library in fact exists and is linked:\r\n\r\n`$ yaourt -Q libgdiplus sonarr mono`\r\n`extra/libgdiplus 4.2-1`\r\n`local/sonarr 2.0.0.4326-1`\r\n`extra/mono 4.6.1.3-1`\r\n\r\n`$ ldconfig -p | grep libgdi`\r\n`libgdiplus.so.0 (libc6,x86-64) => /usr/lib/libgdiplus.so.0`\r\n`libgdiplus.so (libc6,x86-64) => /usr/lib/libgdiplus.so`\r\n\r\n`$ ls -lah /usr/lib/libgdi*`\r\n`lrwxrwxrwx 1 root root   19 Jul 14 19:57 /usr/lib/libgdiplus.so -> libgdiplus.so.0.0.0`\r\n`lrwxrwxrwx 1 root root   19 Jul 14 19:57 /usr/lib/libgdiplus.so.0 -> libgdiplus.so.0.0.0`\r\n`-rwxr-xr-x 1 root root 414K Jul 14 19:57 /usr/lib/libgdiplus.so.0.0.0`\r\n\r\nI really don't know what else to check and would be grateful for any help. Might set up a small VM on my server just for sonarr or perhaps a Docker container.\r\n\r\nAttached are trace and debug logs of sonarr.\r\n[sonarr.debug.txt](https://github.com/Sonarr/Sonarr/files/516939/sonarr.debug.txt)\r\n[sonarr.trace.txt](https://github.com/Sonarr/Sonarr/files/516940/sonarr.trace.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Sonarr/Sonarr/issues/comments/252403275","html_url":"https://github.com/Sonarr/Sonarr/issues/1495#issuecomment-252403275","issue_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1495","id":252403275,"user":{"login":"Rusk85","id":4667261,"avatar_url":"https://avatars.githubusercontent.com/u/4667261?v=3","gravatar_id":"","url":"https://api.github.com/users/Rusk85","html_url":"https://github.com/Rusk85","followers_url":"https://api.github.com/users/Rusk85/followers","following_url":"https://api.github.com/users/Rusk85/following{/other_user}","gists_url":"https://api.github.com/users/Rusk85/gists{/gist_id}","starred_url":"https://api.github.com/users/Rusk85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rusk85/subscriptions","organizations_url":"https://api.github.com/users/Rusk85/orgs","repos_url":"https://api.github.com/users/Rusk85/repos","events_url":"https://api.github.com/users/Rusk85/events{/privacy}","received_events_url":"https://api.github.com/users/Rusk85/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T05:03:11Z","updated_at":"2016-10-08T05:03:11Z","body":"Thanks for your help. Managed to solve it. It was indeed a missing library libgdiplus was dependent on.\n\n`$ ldd /usr/lib/libgdiplus.so | grep not`\n        `libgif.so.7 => not found`\n\n`$ yaourt -S giflib`\n`resolving dependencies...`\n`looking for conflicting packages...`\n`:: giflib and giflib-nox11 are in conflict. Remove giflib-nox11? [y/N] y`\n\n`Packages (2) giflib-nox11-4.1.6-5 [removal]  giflib-5.1.4-1`\n\n`Total Download Size:    0.06 MiB`\n`Total Installed Size:   0.22 MiB`\n`Net Upgrade Size:      -0.29 MiB`\n\n`:: Proceed with installation? [Y/n]`\n`:: Retrieving packages...`\n'\n'`$ ldconfig -p | grep gif`\n        `libgif.so.7 (libc6,x86-64) => /usr/lib/libgif.so.7`\n      `  libgif.so.7 (libc6) => /usr/lib32/libgif.so.7`\n    `    libgif.so (libc6,x86-64) => /usr/lib/libgif.so`\n  `      libgif.so (libc6) => /usr/lib32/libgif.so`\n\n`$ ldd /usr/lib/libgdiplus.so | grep not`\n`>`\n\nSince then sonarr is been working like a charm. \nThanks again!"}}
{"actor":{"display_login":"Rusk85"}}