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

[Possible Bug] Assistance Needed with An Error #16035

Open
usamael2000 opened this issue Jan 16, 2025 · 7 comments
Open

[Possible Bug] Assistance Needed with An Error #16035

usamael2000 opened this issue Jan 16, 2025 · 7 comments

Comments

@usamael2000
Copy link

usamael2000 commented Jan 16, 2025

Hi Everyone,

I have started encountering the following error over the past couple of days. I am currently using the latest development version of SUMO, which I compiled about a week ago. Initially, I thought recompiling SUMO would resolve the issue, but the error persists.

It’s worth noting that the error appears randomly, making it challenging to reproduce or identify the exact steps to replicate it.

For additional context, I am running SUMO through a Python script executed in Jupyter Notebook within the Anaconda environment.

In addition, my simulation time is set to 5400 seconds. However, it appears that the simulation does not end correctly. As shown here, it terminates prematurely after step 1540.

I would greatly appreciate any guidance or suggestions on how to avoid this error.

Best regards,

The error:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Integration method was set to 'ballistic', since a default action step length was specified.
Loading net-file from 'test01_signalized.net.xml' ... done (4ms).
Loading additional-files from 'TLS.add.xml' ... done (11ms).
Loading additional-files from 'test01_detectors.add.xml' ... done (14ms).
Loading additional-files from 'Edge_Emissions.add.xml' ... done (1ms).
Loading route-files incrementally from 'test01.rou.xml'
Loading done.
Simulation version v1_21_0+1886-e75a3528e94 started with time: 0.00.
Step #0.00Vehicle 'flow_0.0' does not supply vehicle parameter 'device.ssm.exclude-conflict-types'. Using default of ''.
Step #1540.00800.00Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e3_detector.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e3_nb_detector.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e3_sb_detector.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e3_minor_detector.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e1_Major_EB.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e1_Major_WB.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e1_minor_NB.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e1_minor_SB.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e1_Major_EB_LT.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e1_Major_WB_LT.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e1_Right_Uturn.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e1_Left_Uturn.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e1_Major_EB_RT.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e1_Major_WB_RT.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 3, column 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/edge_emissions.xml:3:0: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 129, column 3

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/e2_detector.xml:129:3: unclosed token
Traceback (most recent call last):
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: unclosed token: line 11774, column 8

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 293, in
main()
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 277, in main
attrFinder = AttrFinder(options.xsd, options.source, options.split, options.keepAttrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mainpc/Documents/sumo_source_code/sumo/tools/xml/xml2csv.py", line 89, in init
xml.sax.parse(source, self)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/xmlreader.py", line 127, in parse
self.close()
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 254, in close
self.feed(b"", isFinal=True)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/expatreader.py", line 221, in feed
self._err_handler.fatalError(exc)
File "/home/mainpc/anaconda3/lib/python3.11/xml/sax/handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: output/SSM_Output.xml:11774:8: unclosed token
+++ END of Error ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

My SUMO version is:
$ sumo
Eclipse SUMO sumo Version v1_21_0+1886-e75a3528e94
Build features: Linux-6.12.6-amd64 x86_64 GNU 14.2.0 Release FMI Proj GUI Intl SWIG Eigen GDAL FFmpeg OSG GL2PS JuPedSim
Copyright (C) 2001-2025 German Aerospace Center (DLR) and others; https://sumo.dlr.de
License EPL-2.0: Eclipse Public License Version 2 https://eclipse.org/legal/epl-v20.html
Use --help to get the list of options.

My system information:
OS: Debian GNU/Linux trixie/sid x86_64

@usamael2000 usamael2000 changed the title [Possiple Bug] Assistance Needed with An Error [Possible Bug] Assistance Needed with An Error Jan 16, 2025
@namdre
Copy link
Contributor

namdre commented Jan 16, 2025

are you trying to parse simulation output files while the simulation is still running?

@usamael2000
Copy link
Author

Please note that I typically run two simulation instances simultaneously for different scenarios, each from a separate folder.

@usamael2000
Copy link
Author

are you trying to parse simulation output files while the simulation is still running?

This process is supposed to occur after the simulation is completed. Below is the part of the code that involves running SUMO and converting XML files to CSV files:

for k in Nruns:
##
!sumo -c test01.sumocfg
## Convert required xml files to csv files.
!python "$SUMO_HOME/tools/xml/xml2csv.py" "output/e3_detector.xml"
!python "$SUMO_HOME/tools/xml/xml2csv.py" "output/e3_nb_detector.xml"
!python "$SUMO_HOME/tools/xml/xml2csv.py" "output/e3_sb_detector.xml"
!python "$SUMO_HOME/tools/xml/xml2csv.py" "output/e3_minor_detector.xml"

@m-kro
Copy link
Contributor

m-kro commented Jan 17, 2025

It is expected that XML parsing after a SUMO crash won't work because the XML files are not complete.

@usamael2000 Can you post your sumocfg?

@m-kro m-kro removed the c:output label Jan 17, 2025
@usamael2000
Copy link
Author

It is expected that XML parsing after a SUMO crash won't work because the XML files are not complete.

@usamael2000 Can you post your sumocfg?

Here you are the configuration file:

<input>
    <net-file 	value="test01.net.xml"/>
	<route-files  value="test01.rou.xml"/>   
	<additional-files  value="test01_detectors.add.xml,Edge_Emissions.add.xml"/>
</input>

<output>
    <write-license value="True" />
	<!--output-prefix value="TIME_"/-->    <!-- will need to comment this line later on -->
	<!--emission-output value="output/emission.xml"/-->
	<!--emission-output.attributes value="eclass,type,speed,CO2,CO,HC,NOx,PMx,fuel" /-->  <!-- List attributes that should be included in the emission output -->
	<!--fcd-output 	value="output/FCD_output.xml"/-->      <!-- to write all the vehicles raw data as floating car -->
	<!--fcd-output.acceleration	value="True"/-->
	<!--fcd-output.filter-edges.input-file	value="FCD_edges.xml"/-->
	<!--summary-output	value="output/summary.xml"/-->
	<tripinfo-output 	value="output/tripinfo.xml"/>
	<tripinfo-output.write-unfinished 	value="True"/>
	<tripinfo-output.write-undeparted 	value="True"/>
	<!--link-output 	value="output/link_output.xml"/-->
	<statistic-output	value="output/statistic_output.xml"/>
    <!--summary   value="output/summary.xml" /-->
	<!--lanechange-output  value="output/lanechange.xml" /-->    <!--Record lane changes and their motivations for all vehicles into FILE -->
    <!--lanechange-output.started  value="True"/-->  <!--Record start of lane change manoeuvres; default: false -->
    <!--lanechange-output.ended    value="True"/-->  <!--Record end of lane change manoeuvres; default: false -->
    <!--lanechange-output.xy       value="True"/-->  <!--Record coordinates of lane change manoeuvres; default: false -->
	<!--edgedata-output 	value="output/edgedata_output.xml"/-->  <!--Write aggregated traffic statistics for all edges into FILE -->
    <!--lanedata-output 	value="output/lanedata_output.xml"/-->  <!--Write aggregated traffic statistics for all lanes into FILE -->

</output>

<Time>
	<begin         value="0.0"/> 			<!--Defines the begin time in seconds; The simulation starts at this time; default: 0 -->
	<end	       value="5400" />  		<!--Defines the end time in seconds; The simulation ends at this time; default: -1  -->
	<step-length   value="0.10" /> 	<!--Defines the step duration in seconds; default: 1  -->
</Time>

<processing>
    <threads value="10" />
    <default.action-step-length value="0.40" />
    <time-to-impatience value="180" /> <!-- <TIME> Specify how long a vehicle may wait until impatience grows from 0 to 1, defaults to 300 ???, non-positive values disable impatience growth; default: 180  -->
    <time-to-teleport value="-1" />  <!-- Specify how long a vehicle may wait until being teleported, defaults to 300, non-positive values disable teleporting; default: 300 -->
    <!--time-to-teleport.disconnected value="-1" /-->  <!-- <TIME> The waiting time after which vehicles with a disconnected route are teleported. Negative values disable teleporting; default: -1 -->
    <time-to-teleport.remove  value="true" />  <!-- <BOOL> Whether vehicles shall be removed after waiting too long instead of being teleported; default: false -->
    <extrapolate-departpos value="true" />
	<collision.action value="none" />
	<collision.check-junctions	value="true" />
	<emergencydecel.warning-threshold value="1.20" />  <!-- values greater than 1.0 will stop warning -->
</processing>

<report>
	<verbose value="True" />
	<log	value="output/log.xml" />
	<error-log 	value="output/error_log.xml" />
	<duration-log.statistics value="True" />   <!-- To get the Statistic output   -->
	<duration-log.disable 	value="True" />
	<no-step-log	value="false" />
	<step-log.period value="100" />
</report>

<Random-Number>
	<random value="false" />
	<seed	value="10000" />
</Random-Number>

<Ssm_Device>
	<device.ssm.probability 			value="1" />
	<device.ssm.file					value="output/SSM_Output.xml" />
    <device.ssm.measures 				value="TTC DRAC" />
    <device.ssm.thresholds	 			value="3.0 1.0" /> <!-- default: TTC=3.0 sec & DRAC >3.0 m/s^2  -->
	<device.ssm.range 					value="200" /> <!-- default = 50 m  -->
	<device.ssm.extratime 				value="5.0" />
    <device.ssm.trajectories 			value="false" />
    <device.ssm.geo						value="true" />
	<device.ssm.write-positions 		value="true" />
    <device.ssm.write-lane-positions 	value="true" />
    <device.ssm.mdrac.prt               value="1.00" /> <!-- Specifies the perception reaction time for MDRAC computation.; default: 1 -->
    <device.ssm.exclude-conflict-types value="" />
    <device.ssm.filter-edges.input-file value="ssm_edge_list.txt" />   <!-- I will need to Specify this file later on  -->
</Ssm_Device>

<Emissions>
	<device.emissions.probability value="1.0" />
	<!--device.emissions.begin	value="900" /-->   <!-- use the warming up period -->
	<!--device.emissions.period value="1.0" /-->  <!-- to use 1.0 sec instead of sub-seconds -->
    <emissions.volumetric-fuel  value="false" /> <!-- Return fuel consumption values in (legacy) unit l instead of mg; default: false  -->
	
</Emissions>

<Gui-Only>
    <gui-settings-file value="gui.xml" />  <!-- Load visualisation settings from FILE -->
    <quit-on-end value="true" />  <!-- Quits the GUI when the simulation stops; default: false -->
    <start value="true" />  <!-- Start the simulation after loading; default: false -->
</Gui-Only>

@namdre
Copy link
Contributor

namdre commented Jan 17, 2025

Try running without option threads.
At the current state of development, this option gives hardly any speedup and therefore isn't fully tested/matured.

@usamael2000
Copy link
Author

Try running without option threads. At the current state of development, this option gives hardly any speedup and therefore isn't fully tested/matured.

I removed the threads option from my configuration files and ran the simulation again. So far, no errors have occurred. I also tried re-enabling the threads option, and after some time, the error reappeared. It seems that the threads option was the source of the issue.

Thank you so much for your help!

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

No branches or pull requests

3 participants