#grpc

/

      • larsonm has quit
      • yugui joined the channel
      • Lecherito has quit
      • xplatten joined the channel
      • xplatten has quit
      • xplatten joined the channel
      • xplatten has quit
      • xplatten joined the channel
      • larsonm joined the channel
      • xplatten has quit
      • xplatten joined the channel
      • yugui joined the channel
      • Kanalia joined the channel
      • yugui joined the channel
      • Kanalia
        good mornings
      • yugui joined the channel
      • yugui joined the channel
      • yugui joined the channel
      • yugui has quit
      • yugui joined the channel
      • yugui joined the channel
      • yugui joined the channel
      • xplatten has quit
      • luuse joined the channel
      • yugui joined the channel
      • yugui has quit
      • yugui joined the channel
      • yugui has quit
      • arkq joined the channel
      • yugui joined the channel
      • KanaliaTu joined the channel
      • KanaliaTu has quit
      • KanaliaTu joined the channel
      • KanaliaTu has quit
      • Kanalia has quit
      • Kanalia joined the channel
      • aloiscochard has quit
      • moderation has quit
      • moderation joined the channel
      • monkeybutter joined the channel
      • jbenet has quit
      • jbenet joined the channel
      • bramp has quit
      • bramp joined the channel
      • monkeybutter has quit
      • gyre007 joined the channel
      • xplatten joined the channel
      • xplatten has quit
      • Kanalia has quit
      • luuse has quit
      • ejona joined the channel
      • ejona
        philips: gRPC has explicit response status (in the wire protocol) called "Status". It is a status code (like you saw) and a string for additional details.
      • I think grpc.Code and grpc.Errorf are how you convert from Go's error to/from gRPC Status.
      • hle_ joined the channel
      • arkq has quit
      • Lecherito joined the channel
      • hle_ has quit
      • xplatten joined the channel
      • dragon55 joined the channel
      • dragon55
        anyone around to help me debug grpc on windows?
      • arkq joined the channel
      • larsonm
        dragon55: I've gotten it going in the past, but there are certainly some bugs left
      • are you trying to make a c++ client/server?
      • dragon55
        yea
      • i tried just building the helloworld example
      • if you would like to see a callstack I can provide that
      • larsonm
        do you get compile errors? are you using visual studio (what year)?
      • dragon55
        i can get everything to build
      • whenever an rpc message comes into the server it crashes inside of grpc.lib
      • using version 0.9.1 everything statically linked zlib 1.2.8 statically linked
      • larsonm
        hmm. I've seen that kind of crash before but recently hello world has been working ok
      • I'll give it a go
      • dragon55
        here is a portion of the callstack as to not spam this channel
      • 007eeeb0 013883ea grpcservertest!std::_Tree<std::_Tmap_traits<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::pair<std::basic_string<char,std::char_traits<char
      • >,std::allocator<char> > const ,std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >,1> >::cbegin+0x2f [c:\program files (x86)\microsoft visual studio 11.0\vc\include\xtree @ 1252]
      • 007eeff0 01365934 grpcservertest!grpc::FillMetadataArray+0x8a [z:\dragon\projects\grpc\src\cpp\common\call.cc @ 67]
      • 007eeeb0 013883ea grpcservertest!std::_Tree<std::_Tmap_traits<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::pair<std::basic_string<char,std::char_traits<char
      • >,std::allocator<char> > const ,std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >,1> >::cbegin+0x2f [c:\program files (x86)\microsoft visual studio 11.0\vc\include\xtree @ 1252]
      • 007eeff0 01365934 grpcservertest!grpc::FillMetadataArray+0x8a [z:\dragon\projects\grpc\src\cpp\common\call.cc @ 67]
      • 007eeeb0 013883ea grpcservertest!std::_Tree<std::_Tmap_traits<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::pair<std::basic_string<char,std::char_traits<char
      • >,std::allocator<char> > const ,std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >,1> >::cbegin+0x2f [c:\program files (x86)\microsoft visual studio 11.0\vc\include\xtree @ 1252]
      • 007eeff0 01365934 grpcservertest!grpc::FillMetadataArray+0x8a [z:\dragon\projects\grpc\src\cpp\common\call.cc @ 67007eeeb0 013883ea grpcservertest!std::_Tree<std::_Tmap_traits<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::less<std::basic_string<char,std
      • ::char_traits<char>,std::allocator<char> > >,std::allocator<std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >,1> >::cbegin+0x2f [c:\program files (x86)\microsoft visual studio 11.0\vc\include\xtree @ 1252]
      • 007eeff0 01365934 grpcservertest!grpc::FillMetadataArray+0x8a [z:\dragon\projects\grpc\src\cpp\common\call.cc @ 67]
      • ugh i can't paste with this irc client
      • ugh sorry for the spam
      • ejona
        :)
      • dragon55
        problem looks like the cbegin iterator
      • Using VS 2012 with Debug builds for everything
      • larsonm
        is this the async server or sync
      • dragon55
        whatever the helloworld example uses
      • larsonm
        I don't think hello world comes with vs project files, you have to set those up yourself - is that correct?
      • dragon55
        yea I created a project with them
      • with the example source code
      • larsonm
        ok. you end up with two projects, a client and a server, and in each you are building with either greeter_async_client/greeter_async_server or greeter_client/greeter_server
      • dragon55
        greeter_client/greeter_server
      • ok so synchronous
      • larsonm
        ok. i'm still working on replicating this, almost done
      • it'll be a bit, I needed a bunch of updates and rebuilds
      • dragon55
        i'm in no hurry
      • about to take my lunch
      • i'll be here till around 5pm CST
      • larsonm
        when I've built this in the past, I've made the protobuf generated files on linux and then copied them over and included them
      • dragon55
        yea I do all the protobuf stuff on my mac
      • and copy them into my windows VM
      • larsonm
        ok. each project ends up with 4 protobuf files, the two .h and the two .cc - do you have those?
      • dragon55
        yea
      • larsonm
        ok. all correct so far
      • oh. ok, all of the examples are broken currently when building with grpc head. you said you were using .9.1
      • dragon55
        right now I'm trying to verify what I checked out
      • I thought I was using 0.9.1
      • larsonm
        probably you are, this is just why my stuff isn't building
      • dragon55
        when using the helloworld example with 0.9.1 i get this now
      • unresolved external symbol "void __cdecl grpc::FillMetadataMap
      • so maybe I wasn't using 0.9.1
      • i'm redownloaded 0.9.1 and working from there
      • i*
      • i'm linking against grpc.lib from 0.9.1
      • larsonm
        ok - I'm still working on downgrading everything to that version. annoying to do on linux
      • dragon55
        yea when I link against the head built libs the exmaple compiles ok
      • i guess since there are no releases for grpc-common I'll just have to revert back to a revision that is close to 0.9.1?
      • larsonm
        yeah probably
      • if you can just use head for everything and maybe make a couple small changes that might be the best route (like, with route_guide I think just renaming "isok" to "ok" will do it)
      • arkq has quit
      • marga has left the channel
      • xplatten has quit
      • |Pixel|: I spent some time hacking on generate_debug_projects.sh / generate_vsprojects.py to get the windows cpp projects building, I almost have all of them except some things are still coming across as libs when they shouldn't - did you get anywhere with this?
      • xplatten joined the channel
      • hle_ joined the channel
      • dragon55
        i have not, just got back from lunch
      • oh nm
      • hle_ has quit
      • xplatten has quit
      • hle_ joined the channel