Search Issue Tracker
Fixed
Fixed in 5.0.0-pre.5
Votes
0
Found in [Package]
5.0.0-pre.5
Issue ID
PYTHON-201
Regression
No
Editor crashes when using Python Scripting
How to reproduce:
1. Open the user's attached project
2. In the Project window, navigate to Assets/Scripts/Python and open Example.py
3. Edit line 23 (scenarioDirectory) to use the project's current location and save
4. Open scene Scenes/SampleScene
5. Press the Play button and go to Python -> Python Message at the top of the Editor window
Expected result: no crash occurs
Actual result: crash occurs, Bug Reporter window opens
Reproducible with: 5.0.0-pre.5 (2019.4.39f1, 2020.3.34f1, 2021.3.3f1, 2022.1.1f1, 2022.2.0a14)
Could not test with: 4.0.0-pre.1 ('The Python for Unity package is unsupported on the current platform')
Notes:
1. Reproducible on Linux
2. Starting the project throws error "System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference"
3. Sometimes "PythonException: \[Errno 2] No such file or directory" is thrown although the directory is correct
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Add comment