Hello, I think you're dealing with vehicles that are not on the road network due to teleporting or parking. This is no excuse for crashing though and I've opened up a ticket: http://sumo.dlr.de/trac.wsgi/ticket/1809
As a workaround it should be sufficient to test whether the laneIndex == -1 to know whether a vehicle is in this 'limbo'-state. thanks for reporting, Jakob 2015-05-27 0:23 GMT+02:00 Quentin Bragard <[email protected]>: > Hi everyone, > > I'm currently working with TAPASCologne and I rely heavily on Traci4J in > order to add new vehicles, do modifications of speed/position or delete > vehicles.Everything is going pretty smoothly, however, from time to time, I > meet vehicle with this kind of values: > > id: 104094_104094_397 > speed: -1001.0 > route: [] > laneIndex: -1 > position -1001.0 > type: passenger_P_14_1 > > Now. SUMO reacts well when I try to modify or delete an non-existent > vehicle or add an existing one, it just tells me my mistake. However when I > try to modify vehicle with those kind of values, SUMO directly crashes with > no error message. > I do use subscriptions but those values a requested, no taken from the > values pushed. Could it be that SUMO keeps a ghost vehicle because of a > subscription ? > As anyone got the same issue ? Or any suggestion ? > > My workaround for the moment is to check the values pushed for each vehicle > I want to modify but it cost a lot of unnecessary processing time. > > Thanks for the help, > Best regards, > Quentin > > -- > Quentin Bragard > Diplômé de l'INSA de Lyon, Département Informatique. > > Ph.D Student in PEL, > University College Dublin > > ------------------------------------------------------------------------------ > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
