I should add, this is SUMO 0.25.0, with the intent of interfacing SUMO with OMNet++ via VEINS. This error seems to occur whenever I try to reroute a vehicle via TraCI, its MSLane* myLane seems to always be 0. Not sure where that's happening yet.
On Sat, Jan 28, 2017 at 8:35 PM, Andreas Kasprzok <akaspr...@gmail.com> wrote: > Hey guys, > > I'm trying to trigger the rerouting of a vehicle via TraCI in python, > using the traci.vehicle.rerouteTraveltime function. It seems to be > causing an issue with an assertion 'startLane !=0' in MSVehicle.cpp:1932. > Going through the backtrace, it seems that the current Edge of the vehicle > doesn't contain any lanes. Have any of you run across this issue before? > > > super simple python script: > > > import traci > step = 0 > traci.init() > > while step < 1000: > traci.simulationStep() > veh = traci.simulation.getLoadedIDList() > if len(veh) > 0: > traci.vehicle.rerouteTraveltime(veh[0]) > print step > step += 1 > > traci.close() > > > > > backtrace of sumo started in gdb, with --remote-port 8813 option, a grid > generated using netgenerate, and trips generated via randomTrips.py. > > Simulation started with time: 0.00 > sumo: MSVehicle.cpp:1932: void MSVehicle::updateBestLanes(bool, const > MSLane*): Assertion `startLane != 0' failed. > Step #2.00 (40ms ~= 25.00*RT, ~50.00UPS, vehicles TOT 2 ACT > 2) > Program received signal SIGABRT, Aborted. > 0x00007ffff649b428 in __GI_raise (sig=sig@entry=6) at > ../sysdeps/unix/sysv/linux/raise.c:54 > 54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. > (gdb) bt > #0 0x00007ffff649b428 in __GI_raise (sig=sig@entry=6) at > ../sysdeps/unix/sysv/linux/raise.c:54 > #1 0x00007ffff649d02a in __GI_abort () at abort.c:89 > #2 0x00007ffff6493bd7 in __assert_fail_base (fmt=<optimized out>, > assertion=assertion@entry=0x75207b "startLane != 0", > file=file@entry=0x751c0c "MSVehicle.cpp", line=line@entry=1932, > function=function@entry=0x752580 <MSVehicle::updateBestLanes(bool, > MSLane const*)::__PRETTY_FUNCTION__> "void MSVehicle::updateBestLanes(bool, > const MSLane*)") at assert.c:92 > #3 0x00007ffff6493c82 in __GI___assert_fail (assertion=0x75207b > "startLane != 0", file=0x751c0c "MSVehicle.cpp", line=1932, > function=0x752580 <MSVehicle::updateBestLanes(bool, MSLane > const*)::__PRETTY_FUNCTION__> "void MSVehicle::updateBestLanes(bool, > const MSLane*)") at assert.c:101 > #4 0x000000000050f401 in MSVehicle::updateBestLanes (this=0xb7de40, > forceRebuild=true, startLane=0x0) at MSVehicle.cpp:1932 > #5 0x00000000005052fa in MSVehicle::replaceRoute (this=0xb7de40, > newRoute=0xc719ee0, onInit=false, offset=0) at MSVehicle.cpp:491 > #6 0x0000000000537766 in MSBaseVehicle::replaceRouteEdges > (this=0xb7de40, edges=std::vector of length 43, capacity 64 = {...}, > onInit=false) at MSBaseVehicle.cpp:217 > #7 0x00000000005370d7 in MSBaseVehicle::reroute (this=0xb7de40, t=2000, > router=..., onInit=false, withTaz=false) > at MSBaseVehicle.cpp:166 > #8 0x00000000006bfd39 in TraCIServerAPI_Vehicle::processSet (server=..., > inputStorage=..., outputStorage=...) > at TraCIServerAPI_Vehicle.cpp:881 > #9 0x0000000000690b43 in TraCIServer::dispatchCommand (this=0xb6d980) at > TraCIServer.cpp:411 > #10 0x0000000000690615 in TraCIServer::processCommandsUntilSimStep > (step=2000) at TraCIServer.cpp:283 > #11 0x00000000004a82b0 in MSNet::simulationStep (this=0xb76120) at > MSNet.cpp:426 > #12 0x00000000004a7233 in MSNet::simulate (this=0xb76120, start=0, > stop=7100000) at MSNet.cpp:329 > #13 0x000000000040c3a2 in main (argc=5, argv=0x7fffffffe418) at > sumo_main.cpp:153 > > > > Thanks for any pointers! > -- > Andreas Kasprzok > > CU-ICAR > www.cuicar.com > -- Andreas Kasprzok CU-ICAR www.cuicar.com ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list sumo-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sumo-user