0

Veins erlangen の例で 1000 台の車両をシミュレートしようとしました。しかし、シミュレーターは常に約 700 台の車両を停止し、エラー メッセージを表示します。500 台の車両をシミュレートできます。1000 台の車両をシミュレートできないのはなぜですか?

ランタイムエラー。cRuntimeError 例外がスローされようとしていますが、(ini ファイルで debug-on-errors=true を設定することによって) エラーが実行を中止し、デバッガーに割り込むように要求しました。

おそらく、gdb または別のデバッガーでシミュレーションを実行しているはずです。シミュレーション カーネルは、デバッガに入る SIGABRT シグナルを発生させます。デバッガーで実行していない場合でも、事後分析のデバッグにコア ダンプを使用できます。デバッガーに入ったら、コール スタック (gdb: "bt" コマンド) を表示して、ランタイム エラーのコンテキストを確認します。

イベント #21128、t=2112.7 でのモジュール (Veins::TraCIScenarioManagerLaunchd) RSUExampleScenario.manager (id=6) のエラー: std::bad_alloc: std::bad_alloc。

ここに画像の説明を入力

<pre>
[General]
cmdenv-express-mode = true
cmdenv-autoflush = true
cmdenv-status-frequency = 10000000s

#tkenv-default-config = debug
#tkenv-default-run = 1
ned-path = .

network = RSUExampleScenario

##########################################################
#            Simulation parameters                       #
##########################################################
debug-on-errors = true
print-undisposed = false

#sim-time-limit = 6000s
sim-time-limit = 8000s

**.scalar-recording = true
**.vector-recording = true

**.debug = false
**.coreDebug = false

*.playgroundSizeX = 2500m
*.playgroundSizeY = 2500m
*.playgroundSizeZ = 50m
#*.playgroundSizeX = 7500m #ME ADDED
#*.playgroundSizeY = 7500m #ME ADDED
#*.playgroundSizeZ = 500m #ME ADDED


##########################################################
# Annotation parameters                                  #
##########################################################
*.annotations.draw = false

##########################################################
# Obstacle parameters                                    #
##########################################################
*.obstacles.debug = false
*.obstacles.obstacles = xmldoc("config.xml",   "//AnalogueModel[@type='SimpleObstacleShadowing']/obstacles")

##########################################################
#            WorldUtility parameters                     #
##########################################################
*.world.useTorus = false
*.world.use2D = false

##########################################################
#            TraCIScenarioManager parameters             #
##########################################################
*.manager.updateInterval = 0.1s
*.manager.host = "localhost"
*.manager.port = 9999
*.manager.moduleType = "org.car2x.veins.nodes.Car"
*.manager.moduleName = "node"
*.manager.moduleDisplayString = ""
*.manager.autoShutdown = true
*.manager.margin = 25
*.manager.launchConfig = xmldoc("erlangen.launchd.xml")

##########################################################
#                       RSU SETTINGS                     #
#                                                        #
#                                                        #
##########################################################
*.rsu[0].mobility.x = 2000
*.rsu[0].mobility.y = 2000
*.rsu[0].mobility.z = 3
*.rsu[*].applType = "TraCIDemoRSU11p"
*.rsu[*].appl.debug = false
*.rsu[*].appl.headerLength = 256 bit
*.rsu[*].appl.sendBeacons = false
*.rsu[*].appl.dataOnSch = false
*.rsu[*].appl.sendData = true
*.rsu[*].appl.beaconInterval = 1s
*.rsu[*].appl.beaconPriority = 3
*.rsu[*].appl.dataPriority = 2
*.rsu[*].appl.maxOffset = 0.005s


##########################################################
#            11p specific parameters                     #
#                                                        
# NIC-Settings                        #
##########################################################
*.connectionManager.pMax = 20mW
*.connectionManager.sat = -89dBm
*.connectionManager.alpha = 2.0
*.connectionManager.carrierFrequency = 5.890e9 Hz
*.connectionManager.sendDirect = true

*.**.nic.mac1609_4.useServiceChannel = false

*.**.nic.mac1609_4.txPower = 20mW
*.**.nic.mac1609_4.bitrate = 18Mbps

*.**.nic.phy80211p.sensitivity = -89dBm
*.**.nic.phy80211p.useThermalNoise = true
*.**.nic.phy80211p.thermalNoise = -110dBm
*.**.nic.phy80211p.decider = xmldoc("config.xml")
*.**.nic.phy80211p.analogueModels = xmldoc("config.xml")
*.**.nic.phy80211p.usePropagationDelay = true

##########################################################
#                    WaveAppLayer                        #
##########################################################
*.node[*].applType = "TraCIDemo11p"
*.node[*].appl.debug = false
*.node[*].appl.headerLength = 256 bit
*.node[*].appl.sendBeacons = false
*.node[*].appl.dataOnSch = false
*.node[*].appl.sendData = true
*.node[*].appl.beaconInterval = 1s
*.node[*].appl.beaconPriority = 3
*.node[*].appl.dataPriority = 2
*.node[*].appl.maxOffset = 0.005s

##########################################################
#                      Mobility                          #
##########################################################
*.node[*].veinsmobilityType =      "org.car2x.veins.modules.mobility.traci.TraCIMobility"
*.node[*].mobilityType = "TraCIMobility"
*.node[*].mobilityType.debug = true
*.node[*].veinsmobilityType.debug = true
*.node[*].veinsmobility.x = 0
*.node[*].veinsmobility.y = 0
*.node[*].veinsmobility.z = 1.895
#*.node[*0].veinsmobility.accidentCount = 0
#*.node[*0].veinsmobility.accidentStart = 75s
#*.node[*0].veinsmobility.accidentDuration = 30s
*.node[5].veinsmobility.accidentCount = 0
*.node[5].veinsmobility.accidentStart = 15s
*.node[5].veinsmobility.accidentDuration = 35s
*.node[10].veinsmobility.accidentCount = 0
*.node[10].veinsmobility.accidentStart = 35s
*.node[10].veinsmobility.accidentDuration = 35s

[Config nodebug]
description = "default settings"
**.debug = false
**.coreDebug = false
*.annotations.draw = false

[Config debug]
description = "(very slow!) draw and print additional debug information"
**.debug = true
**.coreDebug = true
*.annotations.draw = true

</pre>
4

2 に答える 2

1

メモリが不足しているようです。封筒の裏側の計算から、Veins は各車両をシミュレートするために約 400 KB のメモリを必要とします。つまり、1000 台の車両をシミュレートするには 400 MB のメモリが必要であり、グラフィカル ユーザー インターフェイスを実行する場合はさらに多くなります。

そこから、あなたの質問に対する 2 つの回答を導き出すことができます。まず、コマンド ライン モードでシミュレーションを実行します (方法については、ユーザー マニュアルを参照してください)。次に、少なくとも 0.4 GByte のメイン メモリが空いていることを確認してください。

于 2016-07-18T15:29:22.890 に答える