Search Issue Tracker
Fixed in 0.7.0
Votes
3
Found in [Package]
0.4.0-preview.10
Issue ID
1204977
Regression
No
[Entities] Unity silent crash when converting a GameObject with GenerateAuthoringComponent attribute
How to reproduce:
1. Open the user-submitted project
2. Open the Sample Scene
3. Enter Play mode
4. Observe the crash
Reproducible with: Unity 2019.3.0f4 and 2020.1.0a17 (0.2.0-preview.18, 0.3.0-preview.4, 0.4.0-preview.10) -- when compiling in debug mode.
Notes:
The issue is not reproducible prior to Unity 2019.3.0b10 because affected package versions are not available.
-------------------------------------------
Workaround:
The asmdef that contains the generated authoring component needs to have at least one class with one method.
E.g.: class SomeClass { void SomeMethod() { } }
This is due to a bug that causes Debug C# compilation not to generate method tables in the PDB file in this case. Adding one class with one method works around the issue.
Fixed in next version of Entities (0.7.0)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Error "cannot map expression to ps_4_0 instruction set" in Shader Graph preview when using the GATHER_RED_TEXTURE2D macro in custom hlsl function
- Sprite Renderer image is changed when Mask Interaction is turned by C# script
- URP Player remains in Windows Background processes when the application is closed
- [Android] The built-in URP shaders Lit, Complex Lit and the Simple Lit are not rendered when built on Android devices with an Adreno 300 series GPUs
- "Radio Button" disappears when added under the "RadioButtonGroup" and the parent Visual Element is selected
Zagule
Mar 06, 2020 14:49
Would be great to apply the solution also for 2D Entities, where it still crashes (as of version 0.22) unless using the workaround
msfredb7
Jan 28, 2020 21:26
Edit: I don't think Visual Studio was the issue after all. My Unity 2020.1 now only seems to crash if I put it in Debug Mode (new debug mode that was added at the bottom right of the Editor)
msfredb7
Jan 28, 2020 21:22
I think I encountered the same issue. If you even encounter it again in 2020.1 (like me), try restarting visual studio. That's what seemed to have fixed it for me.