JuPedSim / jpsreport

Analysis tool
https://www.jupedsim.org/jpsreport_introduction.html
Other
3 stars 9 forks source link

Method D, one_demensional, segmentation fault #192

Open gjaeger opened 3 years ago

gjaeger commented 3 years ago

The parameter setting <one_dimensional enabled="true"/> one_dimensional.zip leads to a segmentation fault:

(credits to @Rudinamsubaih)

 % jpsreport_debug inifile_new.xml
[2020-11-23 14:36:30.838] [info] Starting JuPedSim - JPSreport
[2020-11-23 14:36:30.838] [info] Version 0.8.4
[2020-11-23 14:36:30.838] [info] Commit id v0.8.4-1020-g139612f8
[2020-11-23 14:36:30.838] [info] Commit date Tue Nov 17 13:25:25 2020
[2020-11-23 14:36:30.838] [info] Build from branch master
[2020-11-23 14:36:30.838] [info] Build with clang++(12.0.0)
[2020-11-23 14:36:30.838] [info] Parsing the ini file <inifile_new.xml>
[2020-11-23 14:36:30.839] [info] Geometry File is: </JPSreport_one_dimensional/geometry.xml>
[2020-11-23 14:36:30.839] [info] Format of the trajectory file is: <.txt>
[2020-11-23 14:36:30.839] [info] Input trajectory file is <UX_14_1.txt>
[2020-11-23 14:36:30.839] [info] Input directory for loading trajectory is </JPSreport_one_dimensional>
[2020-11-23 14:36:30.839] [info] created directory </JPSreport_one_dimensional/Output/>
[2020-11-23 14:36:30.839] [info] Output directory for results is: </JPSreport_one_dimensional/Output/>
[2020-11-23 14:36:30.840] [info] Measure area id  <1> with type <BoundingBox>
[2020-11-23 14:36:30.840] [info] Measure area points  <3.150, 2.000>
[2020-11-23 14:36:30.840] [info] Measure area points  <3.150, -1.000>
[2020-11-23 14:36:30.840] [info] Measure area points  <0.000, -1.000>
[2020-11-23 14:36:30.840] [info] Measure area points  <0.000, 2.000>
[2020-11-23 14:36:30.840] [info] Both x and y-component of coordinates will be used to calculate instantaneous velocity over <38> frames
[2020-11-23 14:36:30.840] [info] Method D is selected with following options
[2020-11-23 14:36:30.840] [info] Measurement area id <1> will be used for analysis
[2020-11-23 14:36:30.840] [info] Local individual FD will be output
[2020-11-23 14:36:30.840] [info] The data will be analyzed with one dimensional way!!
[2020-11-23 14:36:30.840] [info] Each Voronoi cell will be cut by a circle with the radius of <1.0> m
[2020-11-23 14:36:30.840] [info] The circle is discretized to a polygon with <10> edges!!
[2020-11-23 14:36:30.840] [info] Arithmetic velocity calculation is used.
[2020-11-23 14:36:30.840] [info] Global IFD data will be calculated. Bounding box is created as measurement area.
[2020-11-23 14:36:30.841] [info] Loading building file successful!!!

[2020-11-23 14:36:30.841] [info] Init Geometry
[2020-11-23 14:36:30.842] [info] Init Geometry successful!!!

[2020-11-23 14:36:30.842] [info] Adding the room 'outside'
[2020-11-23 14:36:30.842] [info] INFO:  Adding surrounding room X: -10.54, Y: 13.60 -- -11.00,  12.00

[2020-11-23 14:36:30.842] [info] Bounding box:
        minX = -10.54
        maxX = 13.60
        minY = -11.00
        maxY = 12.00
[2020-11-23 14:36:30.842] [info] Finish parsing inifile
[2020-11-23 14:36:30.842] [info] Start Analysis for the file: UX_14_1.txt
[2020-11-23 14:36:30.842] [info] **********************************************************************
[2020-11-23 14:36:30.843] [info] Loading building file successful!!!

[2020-11-23 14:36:30.843] [info] Init Geometry
[2020-11-23 14:36:30.843] [info] Init Geometry successful!!!

[2020-11-23 14:36:30.843] [info] ReadGeometry with /JPSreport_one_dimensional/geometry.xml.
[2020-11-23 14:36:30.843] [info] the name of the trajectory is: <UX_14_1.txt>
[2020-11-23 14:36:30.843] [info] full name of the trajectory is: </JPSreport_one_dimensional/UX_14_1.txt>
[2020-11-23 14:36:30.843] [info] Frame rate fps: <25.00>
[2020-11-23 14:36:30.843] [info] pos_id: 0
[2020-11-23 14:36:30.843] [info] pos_fr: 1
[2020-11-23 14:36:30.843] [info] pos_x: 2
[2020-11-23 14:36:30.844] [info] pos_y: 3
[2020-11-23 14:36:30.844] [info] pos_z: 4
[2020-11-23 14:36:30.844] [info] pos_vd: 5
[2020-11-23 14:36:30.942] [info] Finished reading the data
[2020-11-23 14:36:30.942] [info] Got 6131 lines
[2020-11-23 14:36:30.943] [info] minID: 1
[2020-11-23 14:36:30.943] [info] maxID: 72
[2020-11-23 14:36:30.943] [info] minFrame: 0
[2020-11-23 14:36:30.943] [info] numFrames: 2148
[2020-11-23 14:36:30.944] [info] INFO: Total number of Agents: 72
[2020-11-23 14:36:30.944] [info] Enter CreateGlobalVariables with numPeds=72 and numFrames=2148
[2020-11-23 14:36:30.944] [info] allocate memory for xCor
[2020-11-23 14:36:30.945] [info] allocate memory for yCor
[2020-11-23 14:36:30.946] [info] allocate memory for zCor
[2020-11-23 14:36:30.947] [info] allocate memory for index
[2020-11-23 14:36:30.948] [info] allocate memory for vComp
[2020-11-23 14:36:30.973] [info] Finished memory allocation
[2020-11-23 14:36:30.995] [info] Leave CreateGlobalVariables()
[2020-11-23 14:36:30.995] [info] Create Global Variables done
[2020-11-23 14:36:31.007] [info] convert x and y
[2020-11-23 14:36:31.013] [info] Save the data for each frame
[2020-11-23 14:36:31.052] [info] Method D: frame rate fps: <25.00>, start: <-1>, stop: <-1> (minFrame = 0)
[2020-11-23 14:36:31.052] [info] Method D: frame rate fps: <25.00>, start: <-1>, stop: <-1> (minFrame = 0)
[2020-11-23 14:36:31.052] [info] create the directory </JPSreport_one_dimensional/Output/Fundamental_Diagram/Classical_Voronoi>
[2020-11-23 14:36:31.052] [info] create the directory </JPSreport_one_dimensional/Output/Fundamental_Diagram/IndividualFD>
[2020-11-23 14:36:31.052] [info] ------------------------Analyzing with Method D-----------------------------
[2020-11-23 14:36:31.053] [info] frame ID = 0
[2020-11-23 14:36:31.053] [info] ------------------------Analyzing with Method D-----------------------------
[2020-11-23 14:36:31.053] [info] frame ID = 0
zsh: segmentation fault   inifile_new.xml