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

Fix crash when adding shadow casters #1463

Open
tomas7770 opened this issue Feb 28, 2025 · 0 comments
Open

Fix crash when adding shadow casters #1463

tomas7770 opened this issue Feb 28, 2025 · 0 comments
Assignees
Labels
A-Engine B-Rendering C-Crash P-Normal This issue isn't a big priority, but it would still be nice to have it closed soon

Comments

@tomas7770
Copy link
Contributor

Description

Adding a shadow caster to an existing light source in the entity inspector crashes the engine with one of the following errors:

Spot/point lights:

terminate called after throwing an instance of 'std::out_of_range'
  what():  map::at
Aborted (core dumped)

Directional lights:

terminate called after throwing an instance of 'std::out_of_range'
  what():  unordered_map::at
Aborted (core dumped)

Reproduce

Steps to reproduce the behavior:

  1. Open an engine sample/game
  2. Open World Inspector in the Toolbox and select any entity
  3. Open Entity Inspector
  4. Add a light component if the entity doesn't have one (e.g. DirectionalLight)
  5. Add the corresponding shadow caster component (e.g. DirectionalShadowCaster)

Expected behaviour

Adding a shadow caster should enable shadows without crashing.

@tomas7770 tomas7770 added A-Engine B-Rendering C-Crash S-Triage Issues whose priority still has to be figured out labels Feb 28, 2025
@GalaxyCrush GalaxyCrush self-assigned this Mar 8, 2025
@tomas7770 tomas7770 added P-Normal This issue isn't a big priority, but it would still be nice to have it closed soon and removed S-Triage Issues whose priority still has to be figured out labels Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Engine B-Rendering C-Crash P-Normal This issue isn't a big priority, but it would still be nice to have it closed soon
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants