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

Segmentation fault in xercesc_3_2::IGXMLScanner::resolveSchemaGrammar #2

Open
ebadi opened this issue Jan 18, 2022 · 0 comments
Open

Comments

@ebadi
Copy link
Owner

ebadi commented Jan 18, 2022

wave@wave:~/repositories/python-esmini$ python3 examples/scenarioplayer.py  ~/repositories/python-esmini/esmini/resources/xosc/pedestrian_collision.xosc
B0_[ScenarioPlayer] B0_[ControlDomains] B1_[EntityScaleMode] B2_[class std::__cxx11::basic_string<char> ControlDomain2Str(enum ControlDomains)] B3_[bool FileExists(const char *)] B4_[class std::__cxx11::basic_string<char> CombineDirectoryPathAndFilepath(std::string, std::string)] B5_[double GetAngleOfVector(double, double)] B6_[double GetAbsAngleDifference(double, double)] B7_[double GetAngleSum(double, double)] B8_[double GetAngleInInterval2PI(double)] B9_[double GetAngleInIntervalMinusPIPlusPI(double)] B10_[double GetAngleDifference(double, double)] B11_[bool IsAngleStraight(double)] B12_[double GetCrossProduct2D(double, double, double, double)] B13_[double GetDotProduct2D(double, double, double, double)] B14_[int GetIntersectionOfTwoLineSegments(double, double, double, double, double, double, double, double, double &, double &)] B15_[double PointDistance2D(double, double, double, double)] B16_[double PointToLineDistance2DSigned(double, double, double, double, double, double)] B17_[double PointSquareDistance2D(double, double, double, double)] B18_[void ProjectPointOnVector2D(double, double, double, double, double, double, double &, double &)] B19_[bool PointInBetweenVectorEndpoints(double, double, double, double, double, double, double &)] B20_[double DistanceFromPointToEdge2D(double, double, double, double, double, double, double *, double *)] B21_[double DistanceFromPointToLine2D(double, double, double, double, double, double, double *, double *)] B22_[int PointSideOfVec(double, double, double, double, double, double)] B23_[double GetLengthOfLine2D(double, double, double, double)] B24_[double GetLengthOfVector3D(double, double, double)] B25_[void RotateVec2D(double, double, double, double &, double &)] B26_[void Global2LocalCoordinates(double, double, double, double, double, double &, double &)] B27_[void Local2GlobalCoordinates(double &, double &, double, double, double, double, double)] B28_[void NormalizeVec2D(double, double, double &, double &)] B29_[void OffsetVec2D(double, double, double, double, double, double &, double &, double &, double &)] B30_[void ZYZ2EulerAngles(double, double, double, double &, double &, double &)] B31_[void R0R12EulerAngles(double, double, double, double, double, double, double &, double &, double &)] B32_[void SwapByteOrder(unsigned char *, int, int)] B44_[scenarioengine::OSCProperties] B45_[scenarioengine::Object] B46_[scenarioengine::Vehicle] B47_[scenarioengine::Pedestrian] B48_[scenarioengine::MiscObject] B49_[scenarioengine::Entities] B50_[scenarioengine::Entry] B51_[scenarioengine::Catalog] B52_[scenarioengine::Catalogs] B53_[scenarioengine::StoryBoardElement] B54_[scenarioengine::OSCAction] B55_[scenarioengine::OSCParameterDeclarations] B56_[scenarioengine::Parameters] B57_[scenarioengine::ObjectInfoStruct] B58_[scenarioengine::ObjectStateStruct] B59_[scenarioengine::ObjectPositionStruct] B60_[scenarioengine::ObjectStateStructDat] B61_[scenarioengine::ObjectState] B62_[scenarioengine::ScenarioGateway] B63_[scenarioengine::OSCGlobalAction] B64_[scenarioengine::ParameterSetAction] B65_[scenarioengine::SwarmTrafficAction] B66_[scenarioengine::OSCOrientation] B67_[scenarioengine::OSCPosition] B68_[scenarioengine::OSCPositionWorld] B69_[scenarioengine::OSCPositionLane] B70_[scenarioengine::OSCPositionRoad] B71_[scenarioengine::OSCPositionRelativeObject] B72_[scenarioengine::OSCPositionRelativeWorld] B73_[scenarioengine::OSCPositionRelativeLane] B74_[scenarioengine::OSCPositionRelativeRoad] B75_[scenarioengine::OSCPositionRoute] B76_[scenarioengine::OSCPositionTrajectory] B77_[scenarioengine::Controller] B78_[class scenarioengine::Controller * scenarioengine::InstantiateController(void *)] B79_[scenarioengine::OSCPrivateAction] B80_[scenarioengine::LongSpeedAction] B81_[scenarioengine::LongDistanceAction] B82_[scenarioengine::LatLaneChangeAction] B83_[scenarioengine::LatLaneOffsetAction] B84_[scenarioengine::SynchronizeAction] B85_[scenarioengine::TeleportAction] B86_[scenarioengine::AssignRouteAction] B87_[scenarioengine::FollowTrajectoryAction] B88_[scenarioengine::AcquirePositionAction] B89_[scenarioengine::AssignControllerAction] B90_[scenarioengine::ActivateControllerAction] B91_[scenarioengine::VisibilityAction] B92_[scenarioengine::OverrideControlAction] B93_[scenarioengine::Init] B94_[scenarioengine::OSCCondition] B95_[scenarioengine::ConditionGroup] B96_[scenarioengine::Trigger] B97_[scenarioengine::TrigByEntity] B98_[scenarioengine::TrigByTimeHeadway] B99_[scenarioengine::TrigByTimeToCollision] B100_[scenarioengine::TrigByReachPosition] B101_[scenarioengine::TrigByDistance] B102_[scenarioengine::TrigByTraveledDistance] B103_[scenarioengine::TrigByRelativeDistance] B104_[scenarioengine::TrigByCollision] B105_[scenarioengine::TrigByEndOfRoad] B106_[scenarioengine::TrigByOffRoad] B107_[scenarioengine::TrigByAcceleration] B108_[scenarioengine::TrigBySpeed] B109_[scenarioengine::TrigByRelativeSpeed] B110_[scenarioengine::TrigByStandStill] B111_[scenarioengine::TrigByState] B112_[scenarioengine::TrigByValue] B113_[scenarioengine::TrigBySimulationTime] B114_[scenarioengine::TrigByPar['AddOSIDetection', 'AddObjectSensor', 'Frame', 'GetFixedTimestep', 'GetNumberOfParameters', 'GetNumberOfProperties', 'GetOSIFreq', 'GetParameterName', 'GetParameterValue', 'GetParameterValueBool', 'GetParameterValueDouble', 'GetParameterValueInt', 'GetPropertyName', 'GetPropertyValue', 'IsQuitRequested', 'ScenarioFrame', 'ScenarioFramePart', 'SetFixedTimestep', 'SetOSIFileStatus', 'SetParameterValue', 'ShowObjectSensors', 'UpdateCSV_Log', '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'exe_path_', 'maxStepSize', 'minStepSize', 'objCallback', 'opt', 'roadManager', 'scenarioEngine', 'scenarioGateway', 'sensor']
Python: running constructor
ameter] B115_[scenarioengine::Event] B116_[scenarioengine::OSCManeuver] B117_[scenarioengine::ManeuverGroup] B118_[scenarioengine::Act] B119_[scenarioengine::Story] B120_[scenarioengine::StoryBoard] B121_[scenarioengine::OSCFile] B122_[scenarioengine::RoadNetwork] B123_[scenarioengine::ControllerPool] B124_[scenarioengine::ScenarioReader] B125_[scenarioengine::ScenarioEngine] 0:filename
1:--window
2:60
3:60
4:800
5:400
6:--osc
7:/home/wave/repositories/python-esmini/esmini/resources/xosc/pedestrian_collision.xosc
esmini GIT REV: a75bb2b+
esmini GIT TAG: 
esmini GIT BRANCH: remotes/origin/fix_route_1st_waypoint_issue~1
esmini BUILD VERSION: N/A - client build
Generated seed 762665373
Loading pedestrian_collision.xosc (v1.0)
OpenDRIVE: ../xodr/fabriksgatan.xodr
Scenegraph: ../models/fabriksgatan.osgb
Route::AddWaypoint Added waypoint 0: 0, 1, 63.00
Route::AddWaypoint Added intermediate waypoint 1 roadId 9 laneId -1
Route::AddWaypoint Added waypoint 2: 2, 1, 0.00
Route::AddWaypoint Added waypoint 0: 0, 1, 63.00
Route::AddWaypoint Added intermediate waypoint 1 roadId 9 laneId -1
Route::AddWaypoint Added waypoint 2: 2, 1, 0.00

before scenarioEngine->getScenarioGateway()
after scenarioEngine->getRoadManager()
after new OSIReporter()0.000: Init Ego RoutingAction standbyState -> startTransition -> runningState
0.000: Starting teleport Action
0.000: Ego New position:
0.000: Pos(42.98, -71.25, 0.00) Rot(1.78, 0.00, 0.00) roadId 0 laneId 1 offset 0.00 t 1.75
0.000: Init Ego TeleportAction standbyState -> startTransition -> runningState
0.000: Init Ego LongitudinalAction standbyState -> endTransition -> completeState
0.000: Starting teleport Action
0.000: pedestrian_adult New position:
0.000: Pos(35.69, -23.63, 0.00) Rot(1.80, 0.00, 0.00) roadId 0 laneId 3 offset 0.50 t 5.30
0.000: Init pedestrian_adult TeleportAction standbyState -> startTransition -> runningState
0.000: Init Ego RoutingAction runningState -> endTransition -> completeState
0.000: Init Ego TeleportAction runningState -> endTransition -> completeState
0.000: Init pedestrian_adult TeleportAction runningState -> endTransition -> completeState
Segmentation fault (core dumped)

wave@wave:~/repositories/python-esmini$ gdb python3 examples/scenarioplayer.py  ~/repositories/python-esmini/esmini/resources/xosc/pedestrian_collision.xosc
Excess command line arguments ignored. (/home/wave/repositories/python-esmini/esmini/resources/xosc/pedestrian_collision.xosc)
GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Registered pretty printers for UE4 classes
Reading symbols from python3...(no debugging symbols found)...done.
"/home/wave/repositories/python-esmini/examples/scenarioplayer.py" is not a core dump: File format not recognized
(gdb) r  examples/scenarioplayer.py  ~/repositories/python-esmini/esmini/resources/xosc/pedestrian_collision.xosc
Starting program: /usr/bin/python3 examples/scenarioplayer.py  ~/repositories/python-esmini/esmini/resources/xosc/pedestrian_collision.xosc
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
B0_[ScenarioPlayer] B0_[ControlDomains] B1_[EntityScaleMode] B2_[class std::__cxx11::basic_string<char> ControlDomain2Str(enum ControlDomains)] B3_[bool FileExists(const char *)] B4_[class std::__cxx11::basic_string<char> CombineDirectoryPathAndFilepath(std::string, std::string)] B5_[double GetAngleOfVector(double, double)] B6_[double GetAbsAngleDifference(double, double)] B7_[double GetAngleSum(double, double)] B8_[double GetAngleInInterval2PI(double)] B9_[double GetAngleInIntervalMinusPIPlusPI(double)] B10_[double GetAngleDifference(double, double)] B11_[bool IsAngleStraight(double)] B12_[double GetCrossProduct2D(double, double, double, double)] B13_[double GetDotProduct2D(double, double, double, double)] B14_[int GetIntersectionOfTwoLineSegments(double, double, double, double, double, double, double, double, double &, double &)] B15_[double PointDistance2D(double, double, double, double)] B16_[double PointToLineDistance2DSigned(double, double, double, double, double, double)] B17_[double PointSquareDistance2D(double, double, double, double)] B18_[void ProjectPointOnVector2D(double, double, double, double, double, double, double &, double &)] B19_[bool PointInBetweenVectorEndpoints(double, double, double, double, double, double, double &)] B20_[double DistanceFromPointToEdge2D(double, double, double, double, double, double, double *, double *)] B21_[double DistanceFromPointToLine2D(double, double, double, double, double, double, double *, double *)] B22_[int PointSideOfVec(double, double, double, double, double, double)] B23_[double GetLengthOfLine2D(double, double, double, double)] B24_[double GetLengthOfVector3D(double, double, double)] B25_[void RotateVec2D(double, double, double, double &, double &)] B26_[void Global2LocalCoordinates(double, double, double, double, double, double &, double &)] B27_[void Local2GlobalCoordinates(double &, double &, double, double, double, double, double)] B28_[void NormalizeVec2D(double, double, double &, double &)] B29_[void OffsetVec2D(double, double, double, double, double, double &, double &, double &, double &)] B30_[void ZYZ2EulerAngles(double, double, double, double &, double &, double &)] B31_[void R0R12EulerAngles(double, double, double, double, double, double, double &, double &, double &)] B32_[void SwapByteOrder(unsigned char *, int, int)] B44_[scenarioengine::OSCProperties] B45_[scenarioengine::Object] B46_[scenarioengine::Vehicle] B47_[scenarioengine::Pedestrian] B48_[scenarioengine::MiscObject] B49_[scenarioengine::Entities] B50_[scenarioengine::Entry] B51_[scenarioengine::Catalog] B52_[scenarioengine::Catalogs] B53_[scenarioengine::StoryBoardElement] B54_[scenarioengine::OSCAction] B55_[scenarioengine::OSCParameterDeclarations] B56_[scenarioengine::Parameters] B57_[scenarioengine::ObjectInfoStruct] B58_[scenarioengine::ObjectStateStruct] B59_[scenarioengine::ObjectPositionStruct] B60_[scenarioengine::ObjectStateStructDat] B61_[scenarioengine::ObjectState] B62_[scenarioengine::ScenarioGateway] B63_[scenarioengine::OSCGlobalAction] B64_[scenarioengine::ParameterSetAction] B65_[scenarioengine::SwarmTrafficAction] B66_[scenarioengine::OSCOrientation] B67_[scenarioengine::OSCPosition] B68_[scenarioengine::OSCPositionWorld] B69_[scenarioengine::OSCPositionLane] B70_[scenarioengine::OSCPositionRoad] B71_[scenarioengine::OSCPositionRelativeObject] B72_[scenarioengine::OSCPositionRelativeWorld] B73_[scenarioengine::OSCPositionRelativeLane] B74_[scenarioengine::OSCPositionRelativeRoad] B75_[scenarioengine::OSCPositionRoute] B76_[scenarioengine::OSCPositionTrajectory] B77_[scenarioengine::Controller] B78_[class scenarioengine::Controller * scenarioengine::InstantiateController(void *)] B79_[scenarioengine::OSCPrivateAction] B80_[scenarioengine::LongSpeedAction] B81_[scenarioengine::LongDistanceAction] B82_[scenarioengine::LatLaneChangeAction] B83_[scenarioengine::LatLaneOffsetAction] B84_[scenarioengine::SynchronizeAction] B85_[scenarioengine::TeleportAction] B86_[scenarioengine::AssignRouteAction] B87_[scenarioengine::FollowTrajectoryAction] B88_[scenarioengine::AcquirePositionAction] B89_[scenarioengine::AssignControllerAction] B90_[scenarioengine::ActivateControllerAction] B91_[scenarioengine::VisibilityAction] B92_[scenarioengine::OverrideControlAction] B93_[scenarioengine::Init] B94_[scenarioengine::OSCCondition] B95_[scenarioengine::ConditionGroup] B96_[scenarioengine::Trigger] B97_[scenarioengine::TrigByEntity] B98_[scenarioengine::TrigByTimeHeadway] B99_[scenarioengine::TrigByTimeToCollision] B100_[scenarioengine::TrigByReachPosition] B101_[scenarioengine::TrigByDistance] B102_[scenarioengine::TrigByTraveledDistance] B103_[scenarioengine::TrigByRelativeDistance] B104_[scenarioengine::TrigByCollision] B105_[scenarioengine::TrigByEndOfRoad] B106_[scenarioengine::TrigByOffRoad] B107_[scenarioengine::TrigByAcceleration] B108_[scenarioengine::TrigBySpeed] B109_[scenarioengine::TrigByRelativeSpeed] B110_[scenarioengine::TrigByStandStill] B111_[scenarioengine::TrigByState] B112_[scenarioengine::TrigByValue] B113_[scenarioengine::TrigBySimulationTime] B114_[scenarioengine::TrigByPar['AddOSIDetection', 'AddObjectSensor', 'Frame', 'GetFixedTimestep', 'GetNumberOfParameters', 'GetNumberOfProperties', 'GetOSIFreq', 'GetParameterName', 'GetParameterValue', 'GetParameterValueBool', 'GetParameterValueDouble', 'GetParameterValueInt', 'GetPropertyName', 'GetPropertyValue', 'IsQuitRequested', 'ScenarioFrame', 'ScenarioFramePart', 'SetFixedTimestep', 'SetOSIFileStatus', 'SetParameterValue', 'ShowObjectSensors', 'UpdateCSV_Log', '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'exe_path_', 'maxStepSize', 'minStepSize', 'objCallback', 'opt', 'roadManager', 'scenarioEngine', 'scenarioGateway', 'sensor']
Python: running constructor
ameter] B115_[scenarioengine::Event] B116_[scenarioengine::OSCManeuver] B117_[scenarioengine::ManeuverGroup] B118_[scenarioengine::Act] B119_[scenarioengine::Story] B120_[scenarioengine::StoryBoard] B121_[scenarioengine::OSCFile] B122_[scenarioengine::RoadNetwork] B123_[scenarioengine::ControllerPool] B124_[scenarioengine::ScenarioReader] B125_[scenarioengine::ScenarioEngine] 0:filename
1:--window
2:60
3:60
4:800
5:400
6:--osc
7:/home/wave/repositories/python-esmini/esmini/resources/xosc/pedestrian_collision.xosc
esmini GIT REV: a75bb2b+
esmini GIT TAG: 
esmini GIT BRANCH: remotes/origin/fix_route_1st_waypoint_issue~1
esmini BUILD VERSION: N/A - client build
Generated seed 1246515245
Loading pedestrian_collision.xosc (v1.0)
OpenDRIVE: ../xodr/fabriksgatan.xodr
Scenegraph: ../models/fabriksgatan.osgb
Route::AddWaypoint Added waypoint 0: 0, 1, 63.00
Route::AddWaypoint Added intermediate waypoint 1 roadId 9 laneId -1
Route::AddWaypoint Added waypoint 2: 2, 1, 0.00
Route::AddWaypoint Added waypoint 0: 0, 1, 63.00
Route::AddWaypoint Added intermediate waypoint 1 roadId 9 laneId -1
Route::AddWaypoint Added waypoint 2: 2, 1, 0.00

before scenarioEngine->getScenarioGateway()
after scenarioEngine->getRoadManager()
after new OSIReporter()0.000: Init Ego RoutingAction standbyState -> startTransition -> runningState
0.000: Starting teleport Action
0.000: Ego New position:
0.000: Pos(42.98, -71.25, 0.00) Rot(1.78, 0.00, 0.00) roadId 0 laneId 1 offset 0.00 t 1.75
0.000: Init Ego TeleportAction standbyState -> startTransition -> runningState
0.000: Init Ego LongitudinalAction standbyState -> endTransition -> completeState
0.000: Starting teleport Action
0.000: pedestrian_adult New position:
0.000: Pos(35.69, -23.63, 0.00) Rot(1.80, 0.00, 0.00) roadId 0 laneId 3 offset 0.50 t 5.30
0.000: Init pedestrian_adult TeleportAction standbyState -> startTransition -> runningState
0.000: Init Ego RoutingAction runningState -> endTransition -> completeState
0.000: Init Ego TeleportAction runningState -> endTransition -> completeState
0.000: Init pedestrian_adult TeleportAction runningState -> endTransition -> completeState

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4c6e300 in xercesc_3_2::IGXMLScanner::resolveSchemaGrammar(char16_t const*, char16_t const*, bool)@plt ()
   from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
(gdb) bt
#0  0x00007ffff4c6e300 in xercesc_3_2::IGXMLScanner::resolveSchemaGrammar(char16_t const*, char16_t const*, bool)@plt ()
   from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#1  0x00007ffff5a0ced2 in osgSim::MultiSwitch::expandToEncompassSwitchSet(unsigned int) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#2  0x00007ffff5a0dcad in osgSim::MultiSwitch::setValueList(unsigned int, std::vector<bool, std::allocator<bool> > const&) ()
   from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#3  0x00007ffff57e823e in ?? () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#4  0x00007ffff57e9d6d in osgDB::UserSerializer<osgSim::MultiSwitch>::read(osgDB::InputStream&, osg::Object&) ()
   from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#5  0x00007ffff5b4d12c in osgDB::ObjectWrapper::read(osgDB::InputStream&, osg::Object&) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#6  0x00007ffff5b5d3a7 in osgDB::InputStream::readObjectFields(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, osg::Object*) ()
   from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#7  0x00007ffff5b5d798 in osgDB::InputStream::readObject(osg::Object*) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#8  0x00007ffff59a179d in ?? () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#9  0x00007ffff59a258d in osgDB::UserSerializer<osg::Group>::read(osgDB::InputStream&, osg::Object&) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#10 0x00007ffff5b4d12c in osgDB::ObjectWrapper::read(osgDB::InputStream&, osg::Object&) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#11 0x00007ffff5b5d3a7 in osgDB::InputStream::readObjectFields(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, osg::Object*) ()
   from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#12 0x00007ffff5b5d798 in osgDB::InputStream::readObject(osg::Object*) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#13 0x00007ffff59a179d in ?? () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#14 0x00007ffff59a258d in osgDB::UserSerializer<osg::Group>::read(osgDB::InputStream&, osg::Object&) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#15 0x00007ffff5b4d12c in osgDB::ObjectWrapper::read(osgDB::InputStream&, osg::Object&) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#16 0x00007ffff5b5d3a7 in osgDB::InputStream::readObjectFields(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, osg::Object*) ()
   from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#17 0x00007ffff5b5d798 in osgDB::InputStream::readObject(osg::Object*) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#18 0x00007ffff59a179d in ?? () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#19 0x00007ffff59a258d in osgDB::UserSerializer<osg::Group>::read(osgDB::InputStream&, osg::Object&) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#20 0x00007ffff5b4d12c in osgDB::ObjectWrapper::read(osgDB::InputStream&, osg::Object&) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#21 0x00007ffff5b5d3a7 in osgDB::InputStream::readObjectFields(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, osg::Object*) ()
   from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#22 0x00007ffff5b5d798 in osgDB::InputStream::readObject(osg::Object*) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#23 0x00007ffff59c899f in ReaderWriterOSG2::readNode(std::istream&, osgDB::Options const*) const () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#24 0x00007ffff59c945c in ReaderWriterOSG2::readNode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) const ()
   from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#25 0x00007ffff5ba21e1 in osgDB::Registry::ReadNodeFunctor::doRead(osgDB::ReaderWriter&) const () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#26 0x00007ffff5b9d24e in osgDB::Registry::read(osgDB::Registry::ReadFunctor const&) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#27 0x00007ffff5b9de4b in osgDB::Registry::readImplementation(osgDB::Registry::ReadFunctor const&, osgDB::Options::CacheHintOptions) ()
   from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#28 0x00007ffff5b9e7e8 in osgDB::Registry::readNodeImplementation(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) ()
   from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#29 0x00007ffff5b90ce6 in osgDB::readNodeFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) ()
   from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#30 0x00007ffff57bf4aa in viewer::Viewer::AddEnvironment(char const*) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#31 0x00007ffff57d0bfc in viewer::Viewer::Viewer(roadmanager::OpenDrive*, char const*, char const*, char const*, osg::ArgumentParser, SE_Options*) ()
   from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#32 0x00007ffff4cea85a in ScenarioPlayer::InitViewer() () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#33 0x00007ffff4cf08e1 in ScenarioPlayer::Init() () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#34 0x00007ffff4cf1e7b in ScenarioPlayer::ScenarioPlayer(int&, char**) () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#35 0x00007ffff4cd81f8 in ?? () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#36 0x00007ffff4cce9a8 in ?? () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
#37 0x00000000005675fc in _PyCFunction_FastCallDict ()
#38 0x00000000005953c1 in ?? ()
#39 0x000000000054a545 in ?? ()
#40 0x0000000000551f81 in ?? ()
#41 0x00007ffff4ccd335 in ?? () from /home/wave/.local/lib/python3.6/site-packages/pyplayerbase.cpython-36m-x86_64-linux-gnu.so
---Type <return> to continue, or q <return> to quit---
#42 0x00000000005aa2ac in _PyObject_FastCallKeywords ()
#43 0x000000000050a7f3 in ?? ()
#44 0x000000000050c274 in _PyEval_EvalFrameDefault ()
#45 0x0000000000507f94 in ?? ()
#46 0x000000000050b0d3 in PyEval_EvalCode ()
#47 0x0000000000634dc2 in ?? ()
#48 0x0000000000634e77 in PyRun_FileExFlags ()
#49 0x000000000063862f in PyRun_SimpleFileExFlags ()
#50 0x00000000006391d1 in Py_Main ()
#51 0x00000000004b0d30 in main ()
(gdb) 

Expected result: No crash, similar to

wave@wave:~/Downloads/esmini-bin_ubuntu/esmini/bin$ ./esmini --window 60 60 800 400 --osc  ~/repositories/python-esmini/esmini/resources/xosc/pedestrian_collision.xosc
esmini GIT REV: aadd9ed
esmini GIT TAG: v2.19.3
esmini GIT BRANCH: tags/v2.19.3^0
esmini BUILD VERSION: 2.19.3.build.2106
Generated seed 253612235
Loading pedestrian_collision.xosc (v1.0)
OpenDRIVE: ../xodr/fabriksgatan.xodr
Scenegraph: ../models/fabriksgatan.osgb
Route::AddWaypoint Added waypoint 0: 0, 1, 63.00
Route::AddWaypoint Added intermediate waypoint 1 roadId 9 laneId -1
Route::AddWaypoint Added waypoint 2: 2, 1, 0.00
Route::AddWaypoint Added waypoint 0: 0, 1, 63.00
Route::AddWaypoint Added intermediate waypoint 1 roadId 9 laneId -1
Route::AddWaypoint Added waypoint 2: 2, 1, 0.00
0.000: Init Ego RoutingAction standbyState -> startTransition -> runningState
0.000: Starting teleport Action
0.000: Ego New position:
0.000: Pos(42.98, -71.25, 0.00) Rot(1.78, 0.00, 0.00) roadId 0 laneId 1 offset 0.00 t 1.75
0.000: Init Ego TeleportAction standbyState -> startTransition -> runningState
0.000: Init Ego LongitudinalAction standbyState -> startTransition -> runningState
0.000: Starting teleport Action
0.000: pedestrian_adult New position:
0.000: Pos(35.69, -23.63, 0.00) Rot(1.80, 0.00, 0.00) roadId 0 laneId 3 offset 0.50 t 5.30
0.000: Init pedestrian_adult TeleportAction standbyState -> startTransition -> runningState
0.000: Init Ego RoutingAction runningState -> endTransition -> completeState
0.000: Init Ego TeleportAction runningState -> endTransition -> completeState
0.000: Init Ego LongitudinalAction runningState -> endTransition -> completeState
0.000: Init pedestrian_adult TeleportAction runningState -> endTransition -> completeState
Invalid MIT-MAGIC-COOKIE-1 key0.010: Trigger /------------------------------------------------
0.010: ActStartCondition == true, 0.0100 > 0.00 edge: none
0.010: Trigger  ------------------------------------------------/
0.010: LTAPActNPC standbyState -> startTransition -> runningState
0.113: Trigger /------------------------------------------------
0.113: ped_walk_event == true, traveled_dist: 1.02 >= 1.00, edge: rising
0.113: Triggering entity 0: Ego
0.113: Trigger  ------------------------------------------------/
0.130: walk_speed standbyState -> startTransition -> runningState
0.130: walk_route standbyState -> startTransition -> runningState
0.130: ped_walk_event standbyState -> startTransition -> runningState
0.913: walk_speed runningState -> endTransition -> completeState

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

No branches or pull requests

1 participant