bliksemlabs / rrrr

RRRR rapid real-time routing
BSD 2-Clause "Simplified" License
164 stars 32 forks source link

Route planner doesn't show any results #183

Open pietercolpaert opened 9 years ago

pietercolpaert commented 9 years ago

I've built the master branch of this repo (5th of April 2014)

I've used the gtfs tec available from the openov website and built it according to the readme (successfully as far as I can see)

I've had to change some code in client.c in order for the code itself to compile:

# Takes only 3 arguments said the error
-       zmq_send(sock, &req, sizeof(req), 0);
+        zmq_send(sock, &req, sizeof(req));

I've compiled it successfully but when I now try to calculate a route, nothing is returned.

RRRR:

pieter@pieter-werk:~/Projects/rrrr$ ./rrrr.sh 
killing old processes
rrrr[14750]: broker terminating
rrrr[14752]: worker terminatingrrrr[14753]: worker terminating

rrrr[14754]: worker terminating
starting new processes
pieter@pieter-werk:~/Projects/rrrr$ rrrr[17358]: broker starting up
rrrr[17361]: worker starting uprrrr[17362]: worker starting up
checking tdata coherency...

checking tdata coherency...
rrrr[17360]: worker starting uprrrr[17359]: worker starting up

checking tdata coherency...
checking tdata coherency...
checked 1767878 transfers for symmetry.
rrrr[17360]: worker sent ready message to load balancer
checked 1767878 transfers for symmetry.
checked 1767878 transfers for symmetry.
checked 1767878 transfers for symmetry.
rrrr[17359]: worker sent ready message to load balancerrrrr[17362]: worker sent ready message to load balancer

rrrr[17361]: worker sent ready message to load balancer

Client:

pieter@pieter-werk:~/Projects/rrrr$ ./client rand 1 1
rrrr[17427]: test client starting
rrrr[17427]: test client number of requests: 1
rrrr[17427]: test client concurrency: 1
rrrr[17427]: test client thread will send 1 requests
checking tdata coherency...
checked 1767878 transfers for symmetry.
rrrr[17427]: test client thread terminating
rrrr[17427]: 1 threads, 1 total requests, 0.012969 sec total time (77.106947 req/sec)
Segmentation fault (core dumped)

Is this due to me changing the zmq line or to something else?

koch-t commented 9 years ago

Could you try to run cliënt in gdb? On 6 Mar 2015 11:07, "Pieter Colpaert" notifications@github.com wrote:

I've built the master branch of this repo (5th of April 2014)

I've used the gtfs tec available from the openov website and built it according to the readme (successfully as far as I can see)

I've had to change some code in client.c in order for the code itself to compile:

Takes only 3 arguments said the error

  • zmq_send(sock, &req, sizeof(req), 0);
  • zmq_send(sock, &req, sizeof(req));

I've compiled it successfully but when I now try to calculate a route, nothing is returned.

RRRR:

pieter@pieter-werk:~/Projects/rrrr$ ./rrrr.sh killing old processes rrrr[14750]: broker terminating rrrr[14752]: worker terminatingrrrr[14753]: worker terminating

rrrr[14754]: worker terminating starting new processes pieter@pieter-werk:~/Projects/rrrr$ rrrr[17358]: broker starting up rrrr[17361]: worker starting uprrrr[17362]: worker starting up checking tdata coherency...

checking tdata coherency... rrrr[17360]: worker starting uprrrr[17359]: worker starting up

checking tdata coherency... checking tdata coherency... checked 1767878 transfers for symmetry. rrrr[17360]: worker sent ready message to load balancer checked 1767878 transfers for symmetry. checked 1767878 transfers for symmetry. checked 1767878 transfers for symmetry. rrrr[17359]: worker sent ready message to load balancerrrrr[17362]: worker sent ready message to load balancer

rrrr[17361]: worker sent ready message to load balancer

Client:

pieter@pieter-werk:~/Projects/rrrr$ ./client rand 1 1 rrrr[17427]: test client starting rrrr[17427]: test client number of requests: 1 rrrr[17427]: test client concurrency: 1 rrrr[17427]: test client thread will send 1 requests checking tdata coherency... checked 1767878 transfers for symmetry. rrrr[17427]: test client thread terminating rrrr[17427]: 1 threads, 1 total requests, 0.012969 sec total time (77.106947 req/sec) Segmentation fault (core dumped)

Is this due to me changing the zmq line or to something else?

— Reply to this email directly or view it on GitHub https://github.com/bliksemlabs/rrrr/issues/183.

pietercolpaert commented 9 years ago
(gdb) run rand 1 1
Starting program: /home/pieter/Projects/rrrr/client rand 1 1
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
rrrr[18174]: test client starting
rrrr[18174]: test client number of requests: 1
rrrr[18174]: test client concurrency: 1
[New Thread 0x7ffff542f700 (LWP 18175)]
[New Thread 0x7ffff4c2e700 (LWP 18176)]
[New Thread 0x7ffff442d700 (LWP 18177)]
rrrr[18174]: test client thread will send 1 requests
checking tdata coherency...
checked 1767878 transfers for symmetry.
rrrr[18174]: test client thread terminating

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff542f700 (LWP 18175)]
0x00007ffff7bc6e85 in zmq_msg_close ()
   from /usr/lib/x86_64-linux-gnu/libzmq.so.1
(gdb) 
koch-t commented 9 years ago

Mmh that does imply something wrong with zmq. What ZMQ version are you using?

pietercolpaert commented 9 years ago

Latest master of https://github.com/zeromq/czmq

pietercolpaert commented 9 years ago

And same thing happens with 3.0.0

koch-t commented 9 years ago

We always hated the czmq thing for this kind of FUBAR. What are you trying to do btw? If you are trying to webserver, we dogfood https://github.com/bliksemlabs/webserver/tree/handler_rrrr_realtime_expanded2 ourselves. The current dev work is really focussed on the ansi branch, which is rewrite of master in ANSI C currently only lacking the client/worker construction and embedded webserver. The master branch is now kind of in purgatory.