Fatal exception in new fedora

Sonarr version (exact version): latest… I cant say exact because I dont remember and cant launch it now…
Mono version (if Sonarr is not running on Windows): 4.8 stable
OS: Fedora 28 x64
Debug logs:
[akya@quady NzbDrone] $ mono ./NzbDrone.exe
exception inside UnhandledException handler: The type initializer for ‘System.Console’ threw an exception.

[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for ‘System.Console’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘System.ConsoleDriver’ threw an exception. —> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x0002b] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.TermInfoReader…ctor (System.String term, System.String filename) [0x00065] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.TermInfoDriver…ctor (System.String term) [0x00058] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.ConsoleDriver…cctor () [0x00062] in <373b6e083d6e45e498c9082a8eebd27f>:0
— End of inner exception stack trace —
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.Console…cctor () [0x000a8] in <373b6e083d6e45e498c9082a8eebd27f>:0
— End of inner exception stack trace —
at NzbDrone.Common.Instrumentation.GlobalExceptionHandlers.HandleAppDomainException (System.Object sender, System.UnhandledExceptionEventArgs e) [0x0007a] in :0

[akya@quady NzbDrone] $ mono --version
Mono JIT compiler version 4.8.0 (Stable 4.8.0.520/8f6d0f6 Wed Sep 20 21:27:10 UTC 2017)
Copyright © 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen

Description of issue: Fatal exception when I start Sonarr

Please post the full log file or standard output and error redirected to a file.

There is nothing in logs except -

18-5-2 11:47:38.9|Info|Bootstrap|Starting Sonarr - /home/akya/install/NzbDrone/NzbDrone.exe - Version 2.0.0.5169

https://paste.fedoraproject.org/paste/or8~8jgWU3DdEo0JwIkxvA
Check today’s logs (02/05)

It looks like a problem with mono (it’s blowing up just as Sonarr is starting, within mono).

Have you recently upgraded mono or made other changes to the system?

yes… Upgraded to fedora 28 which just released.

Mono likely was corrupted in the process, have you tried reinstalling?

Yup tried reinstalling… also found out that mono-devel wasn’t installed or was maybe removed during upgrade. Installed that too… no luck yet…

It was something to do with the bug mentioned in here - https://stackoverflow.com/questions/49242075/mono-bug-magic-number-is-wrong-542
https://lists.opensuse.org/opensuse-bugs/2018-02/msg01870.html

Following the advice, changing export Term=xterm solved it… maybe temporarily and I can at least start sonarr now.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.