Bug 20579 - Bundling assemblies into native code with HTTP client BCL in PCL causes application to crash on startup
Summary: Bundling assemblies into native code with HTTP client BCL in PCL causes appli...
Status: REOPENED
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler (show other bugs)
Version: 4.12.4
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2014-06-13 08:40 UTC by Simon
Modified: 2014-06-20 09:39 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Simon 2014-06-13 08:40:19 UTC
Microsoft Visual Studio Ultimate 2013
Version 12.0.30408.00 Update 2
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Ultimate

Xamarin   3.0.54.0 (d3cf238e3845e930e312b6ec9b4c6c5437c33067)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android

Xamarin.Android   4.12.4.20 (b5dc5ce91305e19de51d71a1122c109719c4bc34)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   3.0.54.0 (d3cf238e3845e930e312b6ec9b4c6c5437c33067)
Visual Studio extension to enable development for Xamarin.iOS

Test device: LGE Nexus 4
Android version: 4.3


Repro steps:

- Create a new Xamarin android project in Visual Studio 2013
- Add a PCL, targeting all but Silverlight 5.
- Add the Microsoft HTTP Client Libraries (2.2.22) from Nuget to the PCL
- Change the Target version to API Level 18
- Deselect Shared Runtime
- Select Bundle assemblies into native code

Result:

The following error occurs immediately on app launch from the android debugger:

Fatal signal 11 (SIGSEGV) at 0xbeb46434 (code=2), thread 2002 (TestBCL.Droid)

The application fails to launch.
Comment 1 Mohit Kheterpal 2014-06-13 11:32:59 UTC
I have tried to reproduce this issue after following the steps mention in bug description but I am not able to reproduce it as shown in screencast : http://screencast.com/t/stfK70P28

Please have a look and let me know if I have missed any step?

Thanks
Comment 2 Simon 2014-06-13 11:49:12 UTC
Hi,

Sorry, my bug report might not have been clear. All API level options should be 18. I set the "Compile using Android version" to 18 and left the two options to "Use Compile using SDK version"

Also, PCL should target all 'except' Silverlight 5, not only Silverlight 5.

The sample project I attached should reproduce this issue if you're still unable.

Thanks.

Note You need to log in before you can comment on or make changes to this bug.