Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route planner doesn't show any results #183

Open
pietercolpaert opened this issue Mar 6, 2015 · 6 comments
Open

Route planner doesn't show any results #183

pietercolpaert opened this issue Mar 6, 2015 · 6 comments

Comments

@pietercolpaert
Copy link

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
Copy link
Contributor

koch-t commented Mar 6, 2015

Could you try to run cliënt in gdb?
On 6 Mar 2015 11:07, "Pieter Colpaert" [email protected] 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
#183.

@pietercolpaert
Copy link
Author

(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
Copy link
Contributor

koch-t commented Mar 6, 2015

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

@pietercolpaert
Copy link
Author

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

@pietercolpaert
Copy link
Author

And same thing happens with 3.0.0

@koch-t
Copy link
Contributor

koch-t commented Mar 6, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants