{"action":"created","issue":{"url":"https://api.github.com/repos/akkadotnet/akka.net/issues/2432","repository_url":"https://api.github.com/repos/akkadotnet/akka.net","labels_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/2432/labels{/name}","comments_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/2432/comments","events_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/2432/events","html_url":"https://github.com/akkadotnet/akka.net/issues/2432","id":198247037,"number":2432,"title":"Attempted to divide by zero","user":{"login":"diegolinan","id":2962970,"avatar_url":"https://avatars.githubusercontent.com/u/2962970?v=3","gravatar_id":"","url":"https://api.github.com/users/diegolinan","html_url":"https://github.com/diegolinan","followers_url":"https://api.github.com/users/diegolinan/followers","following_url":"https://api.github.com/users/diegolinan/following{/other_user}","gists_url":"https://api.github.com/users/diegolinan/gists{/gist_id}","starred_url":"https://api.github.com/users/diegolinan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegolinan/subscriptions","organizations_url":"https://api.github.com/users/diegolinan/orgs","repos_url":"https://api.github.com/users/diegolinan/repos","events_url":"https://api.github.com/users/diegolinan/events{/privacy}","received_events_url":"https://api.github.com/users/diegolinan/received_events","type":"User","site_admin":false},"labels":[{"id":174257266,"url":"https://api.github.com/repos/akkadotnet/akka.net/labels/mono","name":"mono","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-31T21:16:25Z","updated_at":"2017-01-01T19:32:19Z","closed_at":null,"body":"So, I'm trying to use Akka on Xamarin on my macbook. I am using the .Net framework 4.6.1 and I'm getting this nice error when trying to create a new actor system:\r\n\r\n```\r\n[ERROR][12/31/2016 9:12:32 PM][Thread 0005][akka://UserProfileActorSystem/system/log1-DefaultLogger] Attempted to divide by zero.\r\nCause: System.DivideByZeroException: Attempted to divide by zero.\r\n  at System.TermInfoDriver.ChangeColor (System.String format, System.ConsoleColor color) [0x00016] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System/TermInfoDriver.cs:398 \r\n  at System.TermInfoDriver.set_ForegroundColor (System.ConsoleColor value) [0x00011] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System/TermInfoDriver.cs:432 \r\n  at System.ConsoleDriver.set_ForegroundColor (System.ConsoleColor value) [0x0001f] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System/ConsoleDriver.cs:134 \r\n  at System.Console.set_ForegroundColor (System.ConsoleColor value) [0x00000] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System/Console.cs:587 \r\n  at Akka.Util.StandardOutWriter.WriteToConsole (System.String message, System.Nullable`1[T] foregroundColor, System.Nullable`1[T] backgroundColor, System.Boolean line) [0x00034] in <9e39de83b9544f988b2007a135264702>:0 \r\n  at Akka.Util.StandardOutWriter.WriteLine (System.String message, System.Nullable`1[T] foregroundColor, System.Nullable`1[T] backgroundColor) [0x00000] in <9e39de83b9544f988b2007a135264702>:0 \r\n  at Akka.Event.StandardOutLogger.PrintLogEvent (Akka.Event.LogEvent logEvent) [0x0006a] in <9e39de83b9544f988b2007a135264702>:0 \r\n  at Akka.Event.DefaultLogger.Print (Akka.Event.LogEvent logEvent) [0x00000] in <9e39de83b9544f988b2007a135264702>:0 \r\n  at Akka.Event.DefaultLogger.Receive (System.Object message) [0x00026] in <9e39de83b9544f988b2007a135264702>:0 \r\n  at Akka.Actor.ActorBase.AroundReceive (Akka.Actor.Receive receive, System.Object message) [0x00000] in <9e39de83b9544f988b2007a135264702>:0 \r\n  at Akka.Actor.ActorCell.ReceiveMessage (System.Object message) [0x00011] in <9e39de83b9544f988b2007a135264702>:0 \r\n  at Akka.Actor.ActorCell.Invoke (Akka.Actor.Envelope envelope) [0x00057] in <9e39de83b9544f988b2007a135264702>:0 \r\n```\r\n\r\nMy code so far is pretty straightforward and not complex at all: \r\n\r\n```\r\n\tclass MainClass\r\n\t{\r\n\t\tprivate static ActorSystem AnActorSystem;\r\n\r\n\t\tpublic static void Main(string[] args)\r\n\t\t{\r\n\t\t\tAnActorSystem = ActorSystem.Create(\"AnActorSystem\");\r\n\r\n\t\t\tConsole.ReadLine();\r\n\r\n\t\t\tUserProfileActorSystem.Terminate();\r\n\t\t}\r\n\t}\r\n```\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/akkadotnet/akka.net/issues/comments/269916022","html_url":"https://github.com/akkadotnet/akka.net/issues/2432#issuecomment-269916022","issue_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/2432","id":269916022,"user":{"login":"diegolinan","id":2962970,"avatar_url":"https://avatars.githubusercontent.com/u/2962970?v=3","gravatar_id":"","url":"https://api.github.com/users/diegolinan","html_url":"https://github.com/diegolinan","followers_url":"https://api.github.com/users/diegolinan/followers","following_url":"https://api.github.com/users/diegolinan/following{/other_user}","gists_url":"https://api.github.com/users/diegolinan/gists{/gist_id}","starred_url":"https://api.github.com/users/diegolinan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegolinan/subscriptions","organizations_url":"https://api.github.com/users/diegolinan/orgs","repos_url":"https://api.github.com/users/diegolinan/repos","events_url":"https://api.github.com/users/diegolinan/events{/privacy}","received_events_url":"https://api.github.com/users/diegolinan/received_events","type":"User","site_admin":false},"created_at":"2017-01-01T19:32:19Z","updated_at":"2017-01-01T19:32:19Z","body":"Well... I don't think I have the time or will to fix that right now... But I'll give it a shot later on. For now the, I'm stuck using AKKA on windows... Thanks a lot!"}}
{"actor":{"display_login":"diegolinan"}}