Bug 24819 - OxyPlot Crashes Android
Summary: OxyPlot Crashes Android
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-11-25 16:13 UTC by Ian
Modified: 2016-03-25 18:39 UTC (History)
4 users (show)

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 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.

Related Links:

Description Ian 2014-11-25 16:13:01 UTC
When we use OxyPlot in WF or iOS it works, but in Android on X.Forms, I get this:

11-25 12:59:28.590 I/MonoDroid(12912): at Xamarin.Forms.Platform.Android.VisualElementRenderer`1<OxyPlot.XamarinForms.PlotView>.Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement) <0x0012b>
11-25 12:59:28.590 I/MonoDroid(12912): at Xamarin.Forms.Platform.Android.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement) <IL 0x00022, 0x0013f>
11-25 12:59:28.590 I/MonoDroid(12912): at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement,Xamarin.Forms.Platform.Android.IVisualElementRenderer,Xamarin.Forms.Platform.Android.RendererPool,bool) <IL 0x00011, 0x000ff>
11-25 12:59:28.590 I/MonoDroid(12912): at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement,Xamarin.Forms.VisualElement) <IL 0x00116, 0x00827>
11-25 12:59:28.590 I/MonoDroid(12912): at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () <IL 0x0000d, 0x0008b>
11-25 12:59:28.590 I/MonoDroid(12912): at Xamarin.Forms.Platform.Android.VisualElementRenderer`1<Xamarin.Forms.Page>.SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager) <0x00087>
11-25 12:59:28.590 I/MonoDroid(12912): at Xamarin.Forms.Platform.Android.VisualElementRenderer`1<Xamarin.Forms.Page>.SetElement (Xamarin.Forms.Page) <0x006af>
11-25 12:59:28.590 I/MonoDroid(12912): at Xamarin.Forms.Platform.Android.VisualElementRenderer`1<Xamarin.Forms.Page>.Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement) <0x0012b>
11-25 12:59:28.590 I/MonoDroid(12912): at Xamarin.Forms.Platform.Android.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement) <IL 0x00022, 0x0013f>
11-25 12:59:28.590 I/MonoDroid(12912): at Xamarin.Forms.Platform.Android.Platform.AddChild (Xamarin.Forms.VisualElement) <IL 0x00016, 0x000b7>
11-25 12:59:28.590 I/MonoDroid(12912): at Xamarin.Forms.Platform.Android.Platform.SetPage (Xamarin.Forms.Page) <IL 0x00082, 0x00473>
11-25 12:59:28.590 I/MonoDroid(12912): at Xamarin.Forms.Platform.Android.AndroidActivity.SetPage (Xamarin.Forms.Page) <IL 0x000b6, 0x0045b>
11-25 12:59:28.590 I/MonoDroid(12912): at SimpleDemo.Android.MainActivity.OnCreate (Android.OS.Bundle) [0x00017] in c:\Users\ivink\Desktop\oxyplot-master\Source\Examples\XamarinForms\SimpleDemo.Android\MainActivity.cs:23
11-25 12:59:28.590 I/MonoDroid(12912): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/platforms/android-15/src/generated/Android.App.Activity.cs:1944
11-25 12:59:28.590 I/MonoDroid(12912): at (wrapper dynamic-method) object.f338712f-08f8-43b2-b44e-1b907f43aba4 (intptr,intptr,intptr) <IL 0x00017, 0x00043>
11-25 12:59:29.630 E/mono    (12912): 
11-25 12:59:29.630 E/mono    (12912): Unhandled Exception:
11-25 12:59:29.630 E/mono    (12912): System.MissingMethodException: Method not found: 'Android.Views.View.set_Background'.
11-25 12:59:29.630 E/mono    (12912):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[OxyPlot.XamarinForms.PlotView].SetElement (OxyPlot.XamarinForms.PlotView element) [0x00000] in <filename unknown>:0 
11-25 12:59:29.630 E/mono    (12912):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[OxyPlot.XamarinForms.PlotView].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <filename unknown>:0 
11-25 12:59:29.630 E/mono    (12912):   at Xamarin.Forms.Platform.Android.RendererFactory.GetRenderer (Xamarin.Forms.VisualElement view) [0x00000] in <filename unknown>:0 
The program 'Mono' has exited with code 0 (0x0).
Comment 1 Ian 2014-11-25 16:16:21 UTC
This is a "Hello World" app
Comment 2 Prashant manu 2014-12-31 01:41:12 UTC
Hi Ian, 

We have checked "Oxyplot.XamarinAndroid version 2014.1.546" with Android on X.Forms and it is working fine in Xamarin studio. In VS2012 it fails to install
"Oxyplot.XamarinAndroid version 2014.1.546" with android.

Screencast: http://screencast.com/t/qp7y8ntR84o

Please review the screencast and provide us test steps you followed and are missing in screencast. If possible please attach a small complete project that demonstrates this behavior.

Also can you please add the logs from the following places?:
If using VS, IDE log: Location: C:\User\AppData\Local\Xamarin\Log\ 
(Devenev file with latest timestamp)
Android Trace log: Location: \AppData\Local\Xamarin\Log\XamarinAndroid

Please also provide us the environment details.

Environment Info:
Microsoft Visual Studio Professional 2012
Version 11.0.61030.00 Update 4
Microsoft .NET Framework
Version 4.5.51209

Installed Version: Professional

LightSwitch for Visual Studio 2012   04938-004-0033001-02572
Microsoft LightSwitch for Visual Studio 2012

Office Developer Tools   04938-004-0033001-02572
Microsoft Office Developer Tools

Team Explorer for Visual Studio 2012   04938-004-0033001-02572
Microsoft Team Explorer for Visual Studio 2012

Visual Basic 2012   04938-004-0033001-02572
Microsoft Visual Basic 2012

Visual C# 2012   04938-004-0033001-02572
Microsoft Visual C# 2012

Visual C++ 2012   04938-004-0033001-02572
Microsoft Visual C++ 2012

Visual F# 2012   04938-004-0033001-02572
Microsoft Visual F# 2012

Visual Studio 2012 Code Analysis Spell Checker   04938-004-0033001-02572
Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Visual Studio 2012 SharePoint Developer Tools   04938-004-0033001-02572
Microsoft Visual Studio 2012 SharePoint Developer Tools

ASP.NET and Web Tools   2012.3.41009
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

NuGet Package Manager   2.8.50926.602
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.0
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   11.1.20627.00
Microsoft SQL Server Data Tools

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin (10cfd178d55287f09c85f5a1e604dfe20889a40f)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

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

Xamarin.iOS (840a925103a0bf4a856507f13d5eaee3c1579c2f)
Visual Studio extension to enable development for Xamarin.iOS.

XS 5.5.4(15)
Comment 3 Jason Smith [MSFT] 2016-03-25 18:39:54 UTC
No response from user