Bug 1301 - Ns2MobilityHelper causes Node GetPosition() to return NaN
Ns2MobilityHelper causes Node GetPosition() to return NaN
Status: VERIFIED FIXED
Product: ns-3
Classification: Unclassified
Component: mobility models
ns-3.11
Other Linux
: P5 major
Assigned To: Pavel Boyko
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-22 06:09 UTC by Nicholas Loulloudes
Modified: 2011-12-15 09:14 UTC (History)
2 users (show)

See Also:


Attachments
Compressed Mobilty traces generated by SUMO (259.09 KB, application/zip)
2011-11-22 06:11 UTC, Nicholas Loulloudes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Loulloudes 2011-11-22 06:09:27 UTC
Hi all, 

I am using mobility traces in NS2 format generated from SUMO (0.13.0) for some VANET simulations I am performing.

While the simulations are running I get the following exception from the propagation-loss model:

distance >= 0", file=../src/propagation/model/propagation-loss-model.cc, line=643
terminate called without an active exception

I tracked it down via debug and it is because the MobilityModel::GetPosition () of a node returns NaN.

I am attaching the mobility trace file generated by SUMO (to be more specific generated by traceExporter tool in SUMO), in order to reproduce the bug.

The exception takes place around simulation time 132s
Comment 1 Nicholas Loulloudes 2011-11-22 06:11:46 UTC
Created attachment 1273 [details]
Compressed Mobilty traces generated by SUMO
Comment 2 Kirill Andreev 2011-12-12 06:50:36 UTC
(In reply to comment #0)


Hi!
> Hi all, 
> 
> I am using mobility traces in NS2 format generated from SUMO (0.13.0) for some
> VANET simulations I am performing.
> 
> While the simulations are running I get the following exception from the
> propagation-loss model:
> 
> distance >= 0", file=../src/propagation/model/propagation-loss-model.cc,
> line=643
> terminate called without an active exception
> 
> I tracked it down via debug and it is because the MobilityModel::GetPosition ()
> of a node returns NaN.

This bug can not be reproduced now and can be reproduced with earlier versions of ns-3-dev.
This problem seems to be fixed here:
https://www.nsnam.org/bugzilla/﷒0﷓

Please, check that you have no problem with the latest ns-3-dev or apply the patch provided in 1219 fix
> 
> I am attaching the mobility trace file generated by SUMO (to be more specific
> generated by traceExporter tool in SUMO), in order to reproduce the bug.
> 
> The exception takes place around simulation time 132s
Comment 3 Kirill Andreev 2011-12-14 11:02:07 UTC
Changeset 3da1c746cb06