ThomDietrich / multiUAV-simulation

Discrete event simulation framework aimed at UAV movement, energy management, and signal propagation
Other
37 stars 23 forks source link

Cannot run the simulation #54

Open lebronze opened 5 years ago

lebronze commented 5 years ago

i tried to run the simulation on OMNET++ ODE and got some errors.

Simulation terminated with exit code: -1073741819 Working directory: Command line: multiUAV-simulation_dbg.exe -r 0 -m -u Qtenv -c Szenario_Hotel_Gabelbach omnetpp.ini

i can't find where is wrong

Marconi666 commented 5 years ago

the same problem with me . I don't know how to resolve it.

9a54ks514w commented 5 years ago

Did either of you resolve the problem? thx~

ThomDietrich commented 5 years ago

Hello guys, I recognize the error but don't remember the reason/solution.

  1. Please check if you are able to execute the osgearth example project
  2. Check you've selected a valid configuration (e.g. Szenario_Hotel_Gabelbach)
  3. Please describe when the error is shown. Right when you run the code, when the simulation is loaded in the 3D view, or when you start the simulation?

Best!

9a54ks514w commented 4 years ago

Hello ThomDietrich, Which system can run this simulation, either Windows, or Linux, or both? I followed these steps to install the simulation:

  1. Install OMNeT++
  2. Put "boost" into the "include-boost" of the OMNeT++ base directory
  3. Build All in the OMNeT++ IDE
  4. Run simulation config in the OMNeT++ IDE. However, it always terminated with exit code: -1073741819 in Windows, and 134 in Linux Which step did I make the mistake on?

Thanks!

ThomDietrich commented 4 years ago

@9a54ks514w you did not give any further details. Please describe as good as you can.

I've been using Windows and your boost addition sounds correct.

yuan158588 commented 4 years ago

Hello, I also have the same problem.I build the project and no problem,but i meet problems when i run multiUAV-simulation debug.launch .thanks!

Besides,I can run the osg-earth example project.Although it's consloe "[osgEarth]* [Horizon] No horizon info installed in callback",the project can run successfully.


problem 1:
[osgEarth]* [EarthSerializer2] Layer "readymap_elevation" : Error : Failed to open a cache for layer because cache_only policy is in effect and bin [9c4fad04] could not be located.
problem 2:
Simulation terminated with exit code: -1073741819
Working directory: H:/multiUAV-simulation-master
Command line: multiUAV-simulation_dbg.exe -r 0 -m -u Qtenv -c Szenario_Hotel_Gabelbach omnetpp.ini
---
console log:
Starting...

$ cd H:/multiUAV-simulation-master
$ multiUAV-simulation_dbg.exe -r 0 -m -u Qtenv -c Szenario_Hotel_Gabelbach omnetpp.ini

OMNeT++ Discrete Event Simulation  (C) 1992-2018 Andras Varga, OpenSim Ltd.
Version: 5.4.1, build: 180629-5e28390, edition: Academic Public License -- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer

Setting up Qtenv...

Loading NED files from .:  8

Loading images from 'D:\omnetpp-5.4.1\images': *: 0  abstract/*: 90  background/*: 4  block/*: 320  device/*: 195  logo/*: 1  maps/*: 9  misc/*: 70  msg/*: 55  old/*: 111  status/*: 28 

[osgEarth]  [TerrainLayer] Layer "readymap_elevation" Failed to create "tms" driver, but a cache may exist, so falling back on cache-only mode.
[osgEarth]* [EarthSerializer2] Layer "readymap_elevation" : Error : Failed to open a cache for layer because cache_only policy is in effect and bin [9c4fad04] could not be located.
Loading OSG Viewer library... 

setProcessorAffinity() : affinity.activeCPUs.size()=0, numprocessors=8
   Fallback setting CPU : 0
   Fallback setting CPU : 1
   Fallback setting CPU : 2
   Fallback setting CPU : 3
   Fallback setting CPU : 4
   Fallback setting CPU : 5
   Fallback setting CPU : 6
   Fallback setting CPU : 7
affinityMask = 255
setProcessorAffinity() : affinity.activeCPUs.size()=0, numprocessors=8
   Fallback setting CPU : 0
   Fallback setting CPU : 1
   Fallback setting CPU : 2
   Fallback setting CPU : 3
   Fallback setting CPU : 4
   Fallback setting CPU : 5
   Fallback setting CPU : 6
   Fallback setting CPU : 7
affinityMask = 255

Simulation terminated with exit code: -1073741819
Working directory: H:/multiUAV-simulation-master
Command line: multiUAV-simulation_dbg.exe -r 0 -m -u Qtenv -c Szenario_Hotel_Gabelbach omnetpp.ini

Environment variables:
PATH=;D:\omnetpp-5.4.1\bin;D:\omnetpp-5.4.1\tools\win64\mingw64\bin;D:\omnetpp-5.4.1\tools\win64\usr\bin;;D:/omnetpp-5.4.1/ide/jre/bin/server;D:/omnetpp-5.4.1/ide/jre/bin;D:/omnetpp-5.4.1/ide/jre/lib/amd64;.;D:\omnetpp-5.4.1\bin;D:\omnetpp-5.4.1\tools\win64\mingw64\bin;D:\omnetpp-5.4.1\tools\win64\usr\local\bin;D:\omnetpp-5.4.1\tools\win64\usr\bin;D:\omnetpp-5.4.1\tools\win64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\omnetpp-5.4.1\tools\win64\usr\bin\site_perl;D:\omnetpp-5.4.1\tools\win64\usr\bin\vendor_perl;D:\omnetpp-5.4.1\tools\win64\usr\bin\core_perl;D:\omnetpp-5.4.1;
OMNETPP_ROOT=D:/omnetpp-5.4.1/
OMNETPP_IMAGE_PATH=D:\omnetpp-5.4.1\images