Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
1
Found in
5.2.0f3
Issue ID
730959
Regression
No
[OSX][StackOverflow] Incorrectly written C# setter for a property causes Unity editor to crash on Mac OS X
Steps to reproduce:
1. Open the attached project on Mac
2. Notice the script 'Boom.cs' has an error on line 12
3. Open and play 'Crash' scene
4. The editor will crash
Note: On Windows machine the crash does not occur. Instead, StackOverflowException is thrown.
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
wreckostudios
Oct 30, 2015 16:55
Turns out this issue was caused because putting additional logic into my automatic property caused in infinite loop call on the getter.
public static bool TrackTap {
get { return TrackTap; }
set {
if(TrackTap == value*) { return; }
TrackTap = value;
if(value) { GesturesTracked += TapDelegate; }
else { GesturesTracked -= TapDelegate; }
}
}
I imagine that the getter for this calls itself repeatedly. Unfortunate that no error is thrown and Unity just crashes on play.
wreckostudios
Oct 30, 2015 16:34
That is, within an automatic property
wreckostudios
Oct 30, 2015 16:31
Unfortunately I cannot see your attached script so I cannot verify this issue is the same as the one I encountered. However, I am working on a macbook pro, and if I call a property's getter from within its setter, unity crashes.