These are chat archives for akkadotnet/akka.net

30th
Aug 2015
Ryan Davis
@rdavisau
Aug 30 2015 00:40
@Oipo this is a good place to ask, yes. I have not seen that error before, can you share a gist of your code? Are the two systems truely remote? Are they running the same version of akka?
Roger Johansson
@rogeralsing
Aug 30 2015 04:50
@Oipo Using F#?
There are a few cases where F# types fail to deserialize correctly. Im working on a new serializer for this
Michael de Lang
@Oipo
Aug 30 2015 07:46
@rdavisau @rogeralsing Thanks! Here's a pastebin containing the full error plus the HOCON: http://pastebin.com/Tb7TbSYy
I'm running this on mono.NET 4.0.3, in case that matters. It's c# and the source is located here: https://github.com/IdleLands/IdleLandsRedux/tree/akka-refactor
Roger Johansson
@rogeralsing
Aug 30 2015 07:50
I saw an actorinitializationexception in there, are you remote deploying actors with constructor arguments? If so, any special types of args?
Ill have a look at the source later
Michael de Lang
@Oipo
Aug 30 2015 07:51
@rogeralsing The remote actor is not deployed with any constructor arguments, nor does the actor itself contain any properties nor fields.
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 08:41
guys this you seen this issue on StackOverflow? It seems to be very similiar to @annymsMthd was dealing with
Roger Johansson
@rogeralsing
Aug 30 2015 08:57
Ill take a look
Roger Johansson
@rogeralsing
Aug 30 2015 10:38
@Oipo I'm looking right now, something seems odd. there is an actor failing with an incorrect actorproducer, but when debugging it does start out with the correct producer.. continuing debugging :)
Roger Johansson
@rogeralsing
Aug 30 2015 10:44
found the cause, DaemonMsgCreateSerializer fails to carry the producer over the wire.. its correct on the sender side, incorrect on the receiver side
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 10:47
I had this issue once, but I don't remember what was the reason (just remember that it hadn't anything to do with the actor producer itself)
Roger Johansson
@rogeralsing
Aug 30 2015 10:52
Found it... the remote system does not know about the actor type being deployed. the type name gets over the wire correctly, Type.GetType(typename) returns null
that being said, we really really should improve our faulthandling for this instead of just silently try to create an actor without a type
@Horusiath not the issue you were talking about, but the one @Oipo brought up
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 10:54
I also was talking about it ;)
Roger Johansson
@rogeralsing
Aug 30 2015 10:54
@Oipo set a reference to Gamelogic from Core and it starts working
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 10:55
@rogeralsing can you set an issue for this? We really should have as much explanatory exceptions as possible
also I need to update cluster-sharding branch with the latest changes from the dev, but at this point it's so painfull, that I think, I'll just try to get cluster-sharding projects and copy/paste them do new dev off-branch
Michael de Lang
@Oipo
Aug 30 2015 10:56
@rogeralsing Oh man, seriously? I feel silly now. Thanks for your hard work.
Roger Johansson
@rogeralsing
Aug 30 2015 11:02
akkadotnet/akka.net#1279
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 11:17
added up for grabs to it
Suhas Chatekar
@schatekar
Aug 30 2015 11:40
After upgrading to visual studio 2015, finally got the multinode tests to debug properly
I am getting routeType null in the below code from Deployer.cs
        private RouterConfig CreateRouterConfig(string routerTypeAlias, Config deployment)
        {
            if (routerTypeAlias == "from-code")
                return RouterConfig.NoRouter;

            var path = string.Format("akka.actor.router.type-mapping.{0}", routerTypeAlias);
            var routerTypeName = _settings.Config.GetString(path);
            var routerType = Type.GetType(routerTypeName);
            Debug.Assert(routerType != null, "routerType != null");
            var routerConfig = (RouterConfig)Activator.CreateInstance(routerType, deployment);

            return routerConfig;
        }
Any idea how do I set router type in a multinode spec?
also, it is worth null chekcing routerTypeName and throwing a proper exception?
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 11:42
how your HOCON part looks like?
Suhas Chatekar
@schatekar
Aug 30 2015 11:42
All I am getting now is an ArgumentNullException with no stack trace which is of little use
@Horusiath this is in my spec
          CommonConfig = DebugConfig(false);

            DeployOnAll(@"
                /service-hello {
                    router = ""scatter - gather - pool""
                    nr - of - instances = 3
                    target.nodes = [""@first@"", ""@second@"", ""@third@""]
                    }");
how do I find out full HOCON config?
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 11:44
I don't see here any akka.actor.router.type-mapping... config path you're asking for
Suhas Chatekar
@schatekar
Aug 30 2015 11:45
I am just porting a multinodespec from scala as is
do I need to add any config which is not present in the original scala spec?
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 11:46
which one are your porting?
also do you know that config paths segments should be stripped off whitespaces? eg. nr - of - instancesnr-of-instances
Suhas Chatekar
@schatekar
Aug 30 2015 11:48
I just noticed that tired without whitespace, same error
here is my ported spec
the config on the multinodespec object is null
am I missing something in the above code?
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 11:50
I would add .WithFallback(MultiNodeClusterSpec.ClusterConfig()); for CommonConfig just to be sure
Suhas Chatekar
@schatekar
Aug 30 2015 11:51
ok, I would try that
Looks like that has worked
thanks @Horusiath
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 11:54
np
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 12:17
we should really move to Paket, with this new "lovely" NuGet package manager in VS2015 I think it would be easier to manage references by hand
Roger Johansson
@rogeralsing
Aug 30 2015 12:20
Agree
The new nuget gui is insane
Michael de Lang
@Oipo
Aug 30 2015 12:37
Can I just drop a line on akkadotnet/akka.net#1279 that I'm working on it, fork the project, work on it and create a pull request once done, or is there something blocking this issue?
Or is there some waffle.io stuff I need to take into account?
Christian Sparre
@christiansparre
Aug 30 2015 12:44
I'm curious, have anyone here tried running an akka.net actorsystem on azure webapps free/shared tier?
Roger Johansson
@rogeralsing
Aug 30 2015 12:58
@Oipo just fork the project, create a branch for the issue, add your code and create the pr
That should do it :)
Michael de Lang
@Oipo
Aug 30 2015 12:59
Sure! Thanks :) Having some issues runing xunit on mono though.
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 13:00
@christiansparre it shouldn't be a problem as long as you can utilize at least 2 core vm - we know that akka.net can choke on 1 core machines
Michael de Lang
@Oipo
Aug 30 2015 13:01
xunit/xunit#158 T_T
Christian Sparre
@christiansparre
Aug 30 2015 13:04
I actually tried running the ping/pong test on a 1 core VM a few days ago just to see what would happen. Got 2,5 million msg/s out of it, but yeah not something you would probably do :)
Suhas Chatekar
@schatekar
Aug 30 2015 13:19
I have raised #1280, can somebody validate the issue?
Michael de Lang
@Oipo
Aug 30 2015 13:21
@rogeralsing I uh...replaced the line in Props that created a default producer with an exception, but now all tests pretty much fail? Is this a bigger change than I anticipated? Haha.
Anthony Brown
@bruinbrown
Aug 30 2015 13:24
Has anybody had any success using binding redirects in multinode tests? I've got a version mismatch but it seems to be ignoring any redirects in the app.config of the test project
Roger Johansson
@rogeralsing
Aug 30 2015 18:19
We are listed as wcf replacement
That fixie lib looks interesting http://fixie.github.io/
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 18:20
we could set up up for grabs for this
Roger Johansson
@rogeralsing
Aug 30 2015 18:40
for what ? fixie?
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 18:40
yes
Roger Johansson
@rogeralsing
Aug 30 2015 18:41
yes, we need to check if they support async tests though
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 18:42
I have an idea for the next power feature for my F# API fork, but I'm too weak in building custom computation expressions to make this done (actually this needs a complete rewrite of the hardest part of F# API)
@rogeralsing they have at least an fixie/fixie#46 for this
Roger Johansson
@rogeralsing
Aug 30 2015 18:45
what about the F# api thingy?
Anthony Brown
@bruinbrown
Aug 30 2015 18:48
I've got most of akka-distributed-data ported across, it's available on my fork https://github.com/bruinbrown/akka.net/tree/akka-distdata. Single node tests are all working so far but there's still quite a few specs to port across
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 18:51
@rogeralsing I'd like to have more customized version of actor { ...} computation expression - right now all we have is basically free monad pattern. What I'd want to have is something like this:
let rec loop () =
    actor {
        let! msg = mailbox.Receive ()
        match msg with
        | "persist" -> persist! (loop()) [msg] // like return! loop ()... but with Persistence post-effect
        | "stop" -> stop!                      // like return! 0
        | _ -> unhandled! msg                  // like return! loop ()... but with Unhandled message post-effect
    }
stop!, persist! and unhandled! would be custom actor builder methods, just like now we have return! and let!
Roger Johansson
@rogeralsing
Aug 30 2015 18:53
@bruinbrown thats awesome! aprox how many loc is the ddata bits?
@Horusiath ah nice, so a better actor DSL that is? ask dsyme :)
Anthony Brown
@bruinbrown
Aug 30 2015 18:57
@rogeralsing it's about 5k loc so far but I've not ported across all of the CRDTs either yet, so there's probably another 1.5-2k lines to port, but hopefully they might make nice up-for-grabs possibilities
Roger Johansson
@rogeralsing
Aug 30 2015 18:57
:+1:
The worst part about akka.net growing is that I have a hard time keeping up with all the new modules that are coming in :D
Anthony Brown
@bruinbrown
Aug 30 2015 19:00
This module's one that I've been pretty interested in for a while, I'm really liking CRDTs
Roger Johansson
@rogeralsing
Aug 30 2015 19:01
yes, I know there have been a lot of interest for it on the JVM, will be nice to try it out :)
Roger Johansson
@rogeralsing
Aug 30 2015 19:12
+100 for the event based approach to lifecycle events
(that was in response to @Horusiath's github issue :)
Aaron Stannard
@Aaronontheweb
Aug 30 2015 19:13
man, go a week without reading Gitter messages
Roger Johansson
@rogeralsing
Aug 30 2015 19:13
@Aaronontheweb welcome back :)
Aaron Stannard
@Aaronontheweb
Aug 30 2015 19:14
thanks!
I broke my laptop's monitor on my first day in Rio
so I was totally screwed for most of the trip
managed to find an HDMI cable and turn the TV in my hotel room into a monitor
Roger Johansson
@rogeralsing
Aug 30 2015 19:14
neat, I dropped mine in the stone floor the other day, works but the chassi is all dented
oh
so you can only use it with an external monitor?
Aaron Stannard
@Aaronontheweb
Aug 30 2015 19:15
yeah
which I... didn't have access to 99% of the time
just flew back into LA this morning - took a little under 24 hours point to point
also gave an Akka.NET presentation to the Rio .NET meetup
Roger Johansson
@rogeralsing
Aug 30 2015 19:16
24 h from Rio to La ?!?
ye I saw some nice tweets about it :)
Aaron Stannard
@Aaronontheweb
Aug 30 2015 19:16
@rogeralsing had to go through Miami - so it's 9 hours from Rio to Miami, 3-4 hours of waiting there, then another 5:00 back
Roger Johansson
@rogeralsing
Aug 30 2015 19:17
ah, damn waiting at airports are the worst
Aaron Stannard
@Aaronontheweb
Aug 30 2015 19:17
we landed in Miami at 3:30, so most of the airport wasn't open yet
had to wait until 4 to go through customs
3:30am*
Roger Johansson
@rogeralsing
Aug 30 2015 19:18
I got taken by the police at the LA airport once :D
I was at the PDC back in 2008, and I had just changed my last name from Johansson to Alsing (changed it when I married my ex) , and I had reported my old passport missing as I couldnt find it... but when I got to the security check in LA, they said that my current passport was reported stolen, and ofc all my creditcards etc said "Johansson" while the passport said "Alsing"
Aaron Stannard
@Aaronontheweb
Aug 30 2015 19:20
@bruinbrown I might be doing some AppDomain stuff inside the MultiNodeTestRunner which could interferre with that
was designed to make sure that the TestRunner could execute multi-node test assemblies from any arbitrary directory
but that should only affect the XUnit runtimes
@rogeralsing ohhhhhhhhhhhhh
that explains why you changed it back to Johansson recently
Roger Johansson
@rogeralsing
Aug 30 2015 19:22
ye
Aaron Stannard
@Aaronontheweb
Aug 30 2015 19:22
got it
well I'll dive back into some of the code and issues here tomorrow - got to spend some time today reformatting and setting up a new development machine while I figure out how to repair this one
think I'm still under warranty.. we'll see :p
but, glad to be back - missed the ebb and flow of Akka.NET stuff, even though I was talking about it all week :p
Roger Johansson
@rogeralsing
Aug 30 2015 19:23
ok, hope you are , it sucks to cash up for a new machine
Aaron Stannard
@Aaronontheweb
Aug 30 2015 19:24
I have two older machines and a macbook air
I should be able to get at least one of those to work
my Linux box is in good shape - been using it to test the prototype of something we're cooking up at Petabridge :p
Roger Johansson
@rogeralsing
Aug 30 2015 19:25
oki :)
Aaron Stannard
@Aaronontheweb
Aug 30 2015 19:25
if only I could get XUnit2 to play nice on Mono :(
Michael de Lang
@Oipo
Aug 30 2015 19:25
@Aaronontheweb -noappdomain works wonders with the 2.1.0-beta4
See xunit/xunit#158
Bartosz Sypytkowski
@Horusiath
Aug 30 2015 19:48

@Aaronontheweb I'm having an error message on MultiNode test runner like this:

[NODE6][2015-08-30 19:47:32][DEBUG][akka://MultiNodeClusterSpec/user/TestConductorClient]: Error while creating actor instance of type Akka.Remote.TestKit.ClientFSM with 2 args: (RoleName(fourth),127.0.0.1:4711)

Anthony Brown
@bruinbrown
Aug 30 2015 20:11
@Horusiath I had that, it was a type load exception as the actor got created. Might be worth checking assembly versions