Skip to content

Fix segfault on LaneCrossingCalculator nullptr access#9591

Open
berndgassmann wants to merge 1 commit intocarla-simulator:ue4-devfrom
Motor-Ai:mai/fix_lane_crossing_calculator
Open

Fix segfault on LaneCrossingCalculator nullptr access#9591
berndgassmann wants to merge 1 commit intocarla-simulator:ue4-devfrom
Motor-Ai:mai/fix_lane_crossing_calculator

Conversation

@berndgassmann
Copy link
Contributor

@berndgassmann berndgassmann commented Mar 17, 2026

LaneCrossingCalculator tried to create LaneMarking objects without check if the respective information object exists at all.

Description

Running manual_control.py on a custom made map showed segfaults. Debugging lead to a nullptr access on the not existing information from the map. OpenDRIVE maps are valid even without lane marking information (or with a reduced set of it). This change prevents from the segfault an just returns an empty list of markings.

Fixes #

Where has this been tested?

  • Platform(s): ... Ubuntu 24.04
  • Python version(s): ... 3.12
  • Unreal Engine version(s): ... 4.26

Possible Drawbacks

None.


This change is Reviewable

LaneCrossingCalculator tried to create LaneMarking objects without check
if the respective information object exists at all.
@berndgassmann berndgassmann requested a review from a team as a code owner March 17, 2026 13:24
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

Successfully merging this pull request may close these issues.

1 participant