Skip to content

[carla] Fix segfault on LaneCrossingCalculator nullptr access- #9591 - #3617

Merged
donghaiwang merged 1 commit into
hutbfrom
sync_6_8_5
Aug 8, 2026
Merged

[carla] Fix segfault on LaneCrossingCalculator nullptr access- #9591#3617
donghaiwang merged 1 commit into
hutbfrom
sync_6_8_5

Conversation

@donghaiwang

Copy link
Copy Markdown
Member

#9591

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

#9591

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
@donghaiwang
donghaiwang merged commit 7c1280e into hutb Aug 8, 2026
2 of 15 checks passed
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