Bug 41496 - Missing System.IO.Compression native-to-managed wrappers with mobile_static
Summary: Missing System.IO.Compression native-to-managed wrappers with mobile_static
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: 4.5.X
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Alexander Kyte
URL:
Depends on:
Blocks:
 
Reported: 2016-06-03 17:30 UTC by Alexander Kyte
Modified: 2016-06-06 17:51 UTC (History)
3 users (show)

Tags: mobile-static-tests
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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 GitHub or Developer Community 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.

Related Links:
Status:
RESOLVED FIXED

Description Alexander Kyte 2016-06-03 17:30:36 UTC
Many tests in the System.IO.Compression namespace are failing due to a lack of native-to-managed wrappers. We have 43 test failures in total because of this.


   System.ExecutionEngineException : Attempting to JIT compile method '(wrapper native-to-managed) System.IO.Compression.DeflateStreamNative:UnmanagedRead (intptr,int,intptr)' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.

List of failures (too long for bugzilla):
https://gist.github.com/alexanderkyte/b9be770547dbac000d2f97248c40fefd
Comment 1 Zoltan Varga 2016-06-06 08:32:12 UTC
Those methods need to be marked with a [MonoPInvokeCallback] attribute:
https://developer.xamarin.com/guides/ios/advanced_topics/limitations/#Reverse_Callbacks
Comment 2 Alexander Kyte 2016-06-06 17:50:58 UTC
That fixed it.