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)
Comments (3)
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
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.