You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is the same issue but it may have a connection.
The following Distinct() method call succeeds on .Net but raises with a Null ref exception on Mono macOS 10.13
.
var orders = items.SelectMany(e => e.Deductions).Select(e => e.Order).Distinct();
foreach (var order in orders) {
… // order is Null here and raises
}
On Mono order is Null though orders is an instance of System.Linq.Enumerable.DistinctIterator.
In the local vars browser orders IEnumerator is Null.
Sorry I don't have a test case. It's something that turned up on production code.
So I tried the nightly build that includes this fix in my production code and too many things break before I can get anywhere near exercising this particular issue. Will try and pull out a test case.
Activity
mderoy commentedon Mar 21, 2018
This is affecting Unity users as well:
https://issuetracker.unity3d.com/issues/certain-linq-combinations-yield-wrong-results-on-net-4-dot-6
Bump corefx to bring a fix for mono#7696
Bump corefx to bring a fix for mono#7696
Bump corefx to bring a fix for mono#7696
KosmicTask commentedon Mar 22, 2018
Not sure if this is the same issue but it may have a connection.
The following Distinct() method call succeeds on .Net but raises with a Null ref exception on Mono macOS 10.13
.
var orders = items.SelectMany(e => e.Deductions).Select(e => e.Order).Distinct();
foreach (var order in orders) {
… // order is Null here and raises
}
On Mono
orderis Null thoughordersis an instance of System.Linq.Enumerable.DistinctIterator.In the local vars browser
ordersIEnumerator is Null.Sorry I don't have a test case. It's something that turned up on production code.
Bump corefx to bring a fix for #7696
Bump corefx to bring a fix for #7696
Bump to mono/2017-12/beb137dd
Bump corefx to bring a fix for #7696
marek-safar commentedon Mar 23, 2018
The issue was resolved.
@mugginsoft please test it with mono master or include full test case I could try to test.
KosmicTask commentedon Mar 23, 2018
Will do. If my issue persist I will try and pull it out of its production context.
Bump to mono/2017-12/10758249
KosmicTask commentedon Mar 24, 2018
So I tried the nightly build that includes this fix in my production code and too many things break before I can get anywhere near exercising this particular issue. Will try and pull out a test case.
Bump to mono/2017-12/10758249 (#1471)
Bump to mono/mono:2018-04@f3a2216b (#1503)
Bump to mono/mono:2018-04@f3a2216b (#1503)