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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment