静脉:试图读取超过字节缓冲区错误的结尾 [英] veins: Attempted to read past end of byte buffer error
问题描述
我使用相扑 0.21、静脉 3.0、OMNet++ 4.6但是当我在没有互联网连接的情况下运行模拟时,我收到错误
I use sumo 0.21, veins 3.0, OMNet++ 4.6 but when I run simulation without internet connection i get the error
试图读取超过字节缓冲区的末尾
甚至在运行模拟之前使用低速互联网连接也会产生明显的延迟我使用了这些模拟器的先前版本,但仅在这些版本中出现此问题这个问题的原因是什么?我该如何解决?
and even using low speed internet connection make noticeable latency before running simulation i used previous version of these simulator but only in these version this problem occurred What is the cause of this problem? how can I fix it?
推荐答案
对于最新版本的 SUMO,您需要关闭 XML 模式验证,设置 SUMO_HOME
环境变量,以便 XML 模式可以找到文件,或将您的机器连接到 Internet 以便按需下载.
For recent versions of SUMO, you will need to either turn XML schema validation off, set the SUMO_HOME
environment variable so that XML schema files can be found, or attach your machine to the Internet so they can be downloaded on-demand.
引自 SUMO Wiki:
--xml-validation
--xml-validation <STRING>: Set schema validation scheme of XML inputs ("never", "auto" or "always"); default: auto
架构文件可以在/data/xsd 目录中找到您的 SUMO 安装.如果设置了环境变量 SUMO_HOME,验证输入时将使用这些文件.
The schema files can be found in the /data/xsd directory of your SUMO installation. If the environment variable SUMO_HOME is set, these files will be used when validation inputs.
否则,文件是从http://sumo.dlr.de/xsd/SCHEMA_FILE 这可能会减慢应用程序(如果没有互联网连接,则失败).
Otherwise, the files are loaded from http://sumo.dlr.de/xsd/SCHEMA_FILE which may slow down the application (or fail if there is no internet connection).
这篇关于静脉:试图读取超过字节缓冲区错误的结尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!