You are not logged in.

#1 2015-04-14 11:12:48

Paludan
Member
Registered: 2014-10-14
Posts: 15

[SOLVED]Monodevelop error on startup

Hello I've just installed monodevelop using pacman, running monodevelop gives me the following errors:

Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.Core.LoggingService ---> System.TimeZoneNotFoundException: Exception of type 'System.TimeZoneNotFoundException' was thrown.
  at System.TimeZoneInfo.get_Local () [0x00000] in <filename unknown>:0 
  at System.CurrentSystemTimeZone.GetUtcOffset (DateTime time) [0x00000] in <filename unknown>:0 
  at System.TimeZone.GetLocalTimeDiff (DateTime time) [0x00000] in <filename unknown>:0 
  at System.DateTime.get_Now () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Core.LoggingService..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at MonoDevelop.Ide.IdeStartup.Main (System.String[] args, MonoDevelop.Ide.Extensions.IdeCustomizer customizer) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Startup.MonoDevelopMain.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.Core.LoggingService ---> System.TimeZoneNotFoundException: Exception of type 'System.TimeZoneNotFoundException' was thrown.
  at System.TimeZoneInfo.get_Local () [0x00000] in <filename unknown>:0 
  at System.CurrentSystemTimeZone.GetUtcOffset (DateTime time) [0x00000] in <filename unknown>:0 
  at System.TimeZone.GetLocalTimeDiff (DateTime time) [0x00000] in <filename unknown>:0 
  at System.DateTime.get_Now () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Core.LoggingService..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at MonoDevelop.Ide.IdeStartup.Main (System.String[] args, MonoDevelop.Ide.Extensions.IdeCustomizer customizer) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Startup.MonoDevelopMain.Main (System.String[] args) [0x00000] in <filename unknown>:0

I can't seem to find out what is the matter,
regards

Last edited by Paludan (2015-04-14 15:21:21)

Offline

#2 2015-04-14 13:10:56

Paludan
Member
Registered: 2014-10-14
Posts: 15

Re: [SOLVED]Monodevelop error on startup

I've been searching for a solution all day, I'm using it at the university so I really need to get it working, any help is appreciated

Offline

#3 2015-04-14 13:31:43

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [SOLVED]Monodevelop error on startup

Just guessing, what is the output of

timedatectl status

?


pkgshackscfgblag

Offline

#4 2015-04-14 13:35:33

Paludan
Member
Registered: 2014-10-14
Posts: 15

Re: [SOLVED]Monodevelop error on startup

ayekat wrote:

Just guessing, what is the output of

timedatectl status

?

       Local time: Tue 2015-04-14 13:34:36 UTC
  Universal time: Tue 2015-04-14 13:34:36 UTC
        RTC time: Tue 2015-04-14 13:34:37
       Time zone: n/a (UTC, +0000)
     NTP enabled: no
NTP synchronized: no
 RTC in local TZ: no
      DST active: n/a 

Also I've tried to install omnisharp and when I had to use the

xbuild

I also received an error. So I think the error stems with mono itself.

Offline

#5 2015-04-14 13:40:24

Paludan
Member
Registered: 2014-10-14
Posts: 15

Re: [SOLVED]Monodevelop error on startup

ayekat wrote:

Just guessing, what is the output of

timedatectl status

?

Wait holy crap I just changed my time to where I actually live and now it works >_>.. Can you explain to me why this was the reason it didn't work?

Offline

#6 2015-04-14 13:50:29

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [SOLVED]Monodevelop error on startup

Looking at the error messages, it could not get your system's time zone. So I assumed that there must be something wrong with that.
And it really was, looking at your output of timedatectl (there was no time zone set).

However I'm a little amazed that an IDE would crash because it cannot get the system time zone. I'd just throw an warning message and use a sane default (UTC+0).
You may want to file a bug report. While not having the system time and date set correctly is indeed rather unusual, an application should handle that gracefully (but that's my personal opinion).

EDIT Don't forget to mark this thread as solved.

Last edited by ayekat (2015-04-14 13:52:32)


pkgshackscfgblag

Offline

#7 2015-04-14 15:20:30

Paludan
Member
Registered: 2014-10-14
Posts: 15

Re: [SOLVED]Monodevelop error on startup

ayekat wrote:

Looking at the error messages, it could not get your system's time zone. So I assumed that there must be something wrong with that.
And it really was, looking at your output of timedatectl (there was no time zone set).

However I'm a little amazed that an IDE would crash because it cannot get the system time zone. I'd just throw an warning message and use a sane default (UTC+0).
You may want to file a bug report. While not having the system time and date set correctly is indeed rather unusual, an application should handle that gracefully (but that's my personal opinion).

EDIT Don't forget to mark this thread as solved.

I too am quite amazed, I'll file a bugreport now.

Solved.

Offline

Board footer

Powered by FluxBB