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
- Crash on UndoManager::Undo when undoing SpriteAtlas Compression value changes
- [Happy Harvest] #ThunderLabel text is "\u26C8" instead of "⛈"
- Warning “New Sprite Atlas: There is a mismatch in secondary textures of sprites compared to WhiteUnit, wasting texture space and potentially break draw call batching. Affected Sprites are (Flag)“ is thrown when packing Atlas with Sprite Atlas V2
- Sprite Editor dropdown text is cut-off for options with longer text
- Sprite Editor can't be scrolled horizontally using the trackpad gesture
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.