Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Steps to reproduce:
1. Open iOS sample 'CustomCollectionViewLayoutAttributes'.
2. Debug or run the sample.
3. Click on any image on iOS Simulator.
Actual result: Application getting crashed and throwing exception "SIGSEGV". However, this is working fine on physical device.
Expected Result: Image should get removed after clicking on Image on iOS Simulator.
Application output: https://gist.github.com/saurabh360/21cec5afa3d261cf3693
Application crash log: https://gist.github.com/saurabh360/abd5fb433477cf7329cc
iPad Simulator 6.1, 6.0 and 7.0
X.S 4.2.4(build 32)
REGRESSION: This is working fine with stable X.iOS 184.108.40.206
This seems to be an object getting freed.
Running with GC_DONT_GC=1 doesn't crash.
This is the cause:
We must also call retain on the return value when users override Copy (really any method with the [Release] attribute on its return value).
Actually the test project still crashes.
OK, I believe I managed to finally fix it now.
I have tested this issue with the following builds:
XS 4.2.4(build 32)
I am observing same issue with the latest build and sample also.Hence reopening the issue.
It was not (then) backported - but only on master (as stated in comment 5).
It is now backported in monotouch-7.2.1-branch 46b2486c6e69811dd4e0c69c61e57fa34b257461
You need 220.127.116.11 (or newer) to get/test this fix.
Today I have tested this sample with the following builds:
XS 4.2.4(build 32)
Now it is working fine.Hence marking this issue as verified fixed.