Convert osm map to Sumo network file, exit code: -1073741571

840 views
Skip to first unread message

Domenico Daniele Celsa

unread,
Jan 19, 2015, 6:47:49 PM1/19/15
to omn...@googlegroups.com
Dear all,
i have to simulate some algorithms in different scenarios and i'm trying to understand how to work with them.

I followed the Sumo tutorial to import a map, but i always get an error. When i run the simulation in Tkenv, it immediately stops and i get this error:
" Simulation terminated with exit code: -1073741571 "

FYI: 
- it doesn't happen, of course, with Erlangen scenario.

- it happens ONLY when i use the route file.. if i only put the .net file in launchd and sumo.cfg files (commenting the route file), it works but obviously the cars don't move.

- it doesn't happen also with Eichstaett scenario, but only if i convert the .osm file manually (with netconvert command) ..!  If i use the eichstaett.net.xml file given from Tutorial, it happens! 
(in these cases i used a route file made by myself, choosing just 3 streets whose names i got by sumo-gui)

Last point, makes me think that the problem is in .osm file (or in .net file), not in route file.
But i don't know how to modify the osm file. I know in the tutorial is explained how to modify a map, but i guess the problem is another one. In fact, when i convert the file, netconvert gives me warnings like this:
" No way found for reference '262346936' in relation '455194' "

Is it possible the problem is this one? And if yes, how to fix it?

Any helps is really really appreciated..

Best,
Daniele Celsa
 

Domenico Daniele Celsa

unread,
Jan 19, 2015, 11:20:29 PM1/19/15
to omn...@googlegroups.com
I tried, for example, with bilbao_small.osm, a very little osm file that i got on the web thanks to a researcher who faced a problem similar to mine.
I opened it in JOSM and i got that it is ok, i mean just some warnings but not important.
I got the .net file by myself with netconvert (her .net file was not good i guess, because when i open it with sumo-gui, i see it very bad) . 
Then i opened in sumo-gui the network just created and i chose 3 streets for my route file.. 
i created the route file and launched the simulation, but it crashes again..

Could someone tells me if i'm going wrong in some steps?

I attached the .osm file i talked before.

Thanks in advance,
Daniele Celsa
bilbao_small.osm

Christoph Sommer

unread,
Jan 20, 2015, 3:35:50 AM1/20/15
to omn...@googlegroups.com
Domenico Daniele Celsa wrote:
> I followed the Sumo tutorial to import a map, but i always get an error.
> When i run the simulation in Tkenv, it immediately stops and i get this
> error:
> " Simulation terminated with exit code: -1073741571 "

Most likely, SUMO is crashing. Please see

http://veins.car2x.org/documentation/faq/#crash

for details for general guidelines.

Best,

Christoph


--
Dr. Christoph Sommer
Distributed Embedded Systems Group
University of Paderborn, Germany
http://www.ccs-labs.org/~sommer/

Domenico Daniele Celsa

unread,
Jan 20, 2015, 12:14:47 PM1/20/15
to omn...@googlegroups.com
Yes, Omnet++ seems to be ok so probably the problem is SUMO.

But where can i find the log file? Sorry for stupid question, but i see just the console..
I got in the log file i can find information about both SUMO and sumo.launchd but i need to read it.

Thanks
Daniele Celsa

Il giorno martedì 20 gennaio 2015 00:47:49 UTC+1, Domenico Daniele Celsa ha scritto:

Christoph Sommer

unread,
Jan 20, 2015, 12:35:32 PM1/20/15
to omn...@googlegroups.com
Domenico Daniele Celsa wrote:
> where can i find the log file?

this is covered in the FAQ:
http://veins.car2x.org/documentation/faq/#crash

Domenico Daniele Celsa

unread,
Jan 20, 2015, 12:36:36 PM1/20/15
to omn...@googlegroups.com
I guess the log file we are talking about is the Event log section of Omnet++. Is it right? the problem is the it is empty! but i enabled the recording of event-log in my .ini file... Is the log file different from Event log?

Daniele Celsa

Il giorno martedì 20 gennaio 2015 00:47:49 UTC+1, Domenico Daniele Celsa ha scritto:

Christoph Sommer

unread,
Jan 20, 2015, 1:16:14 PM1/20/15
to omn...@googlegroups.com
Domenico Daniele Celsa wrote:
> I guess the log file we are talking about is the Event log section of
> Omnet++. Is it right?

No, debug output for SUMO is not stored in the OMNeT++ Event Log. Please
read the Veins FAQ. It explains where debug output is stored. I cannot
explain the process any better than what I wrote there.

Domenico Daniele Celsa

unread,
Jan 21, 2015, 8:04:02 AM1/21/15
to omn...@googlegroups.com
"Debug output for SUMO (both stdout and stderr) is captured by sumo-launchd and stored in its log files (see above)." 
So i have to take a look to the log files of sumo-launchd (if 'its' is referred to sumo-launchd. otherwise, if 'its' is referred to SUMO, i have no idea about where the log file of SUMO is).

Above, you say that:
"Debug output for sumo-launchd can be found on the console, as well as in its log file". But you still don't say where exactly is the log file of sumo-launchd .

Then
"Please refer to its --verbose and --logfile parameters for controlling how much (and where) information is written." 
So these two parameters should tell me where is the information - where is the log file (i guess). But i don't see these two parameters neither on console nor anywhere. Where should i read --verbose and --logfile parameters?

I'm sure i don't understand something easy, but please help me..

Best,
Daniele Celsa

 

Il giorno martedì 20 gennaio 2015 00:47:49 UTC+1, Domenico Daniele Celsa ha scritto:

Christoph Sommer

unread,
Jan 21, 2015, 8:58:38 AM1/21/15
to omn...@googlegroups.com
Daniele,

Programs on the command line often take any number of options to
influence their behavior [1].

For example, you are running the sumo-launchd with option "-v" to
increase its verbosity and with option "-c /.../bin/sumo" to specify the
command to execute for running SUMO.

But these are not the only parameters that you can set for sumo-launchd
[2]. If you run sumo-launchd with the "-h" or "--help" option, it will
output a list of all options.

One of these parameters is called "--logfile", which allows you to
configure where to write the log file [3], that is, a file that will
contain a transcript of what happened.

To set a parameter, you just append the corresponding option (and, if
applicable, its value) to the command line. For example, instead of
running "ls" to see a list of files in default format, you would write
"ls -l" to see the same list in long form.

The same holds for sumo-launchd: if you append "--logfile my.txt" to its
command line it will write a transcript of events to "my.txt", which you
can then open with a text editor (e.g., gedit [4]) of your choice.

Best,

Christoph


[1] https://help.ubuntu.com/community/UsingTheTerminal#Options
[2] http://veins.car2x.org/documentation/sumo-launchd/
[3] http://en.wikipedia.org/wiki/Logfile
[4] https://help.ubuntu.com/community/gedit

Domenico Daniele Celsa

unread,
Jan 21, 2015, 7:13:32 PM1/21/15
to omn...@googlegroups.com
Dear Christoph,
thank you very much! 
Your answer has been really helpful for me, i wanna thank you for your availability and patience! :)

Best,
Daniele Celsa

Il giorno martedì 20 gennaio 2015 00:47:49 UTC+1, Domenico Daniele Celsa ha scritto:
Reply all
Reply to author
Forward
0 new messages