-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
Description
Describe the Bug
If a Camera's projection field is changed after its been initialized, Webots attempts (and fails) to regenerate its memory-mapped file and then crashes on the next timestep. This is probably a result of some assumptions that the file will never change.
The initial error could probably be corrected by adding in a fallback to an alternate filename, however, some more work probably has to be done to ensure that the rest of the code (e.g. the controller api) is properly notified of the change. It would be even nicer if there was a way to get the code to gracefully-release the old file before creating the new one, but that might not be easily possible.
Steps to Reproduce
- Open the
camera.wbtsample world. - Make sure the simulation is running
- Find the
Cameranode in the Scene Tree - Set its
projectionfield tospherical - Crash