Bug 57250 - Previewer bug, work perfect in emulator..
Summary: Previewer bug, work perfect in emulator..
Status: CONFIRMED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Xamarin.Forms Previewer ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jérémie Laval
URL:
Depends on:
Blocks:
 
Reported: 2017-06-07 16:22 UTC by Stanley Broo
Modified: 2017-06-08 08:55 UTC (History)
5 users (show)

Tags:
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 for Bug 57250 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
CONFIRMED

Description Stanley Broo 2017-06-07 16:22:43 UTC
Creating class loader with 20 projects

Creating LibraryClassLoader in shadow copy path C:\Users\stanley\AppData\Local\Temp\AndroidDesignerJars8415397788035289124
Setting id 1 on newly created ClassLoader

Trying to load class md5e940e1e778de0f856e343395a2f338c5.XFPageRendererView

mono.android.DesignerException: java.lang.NullPointerException
	at mono.android.DesignerException.fromThrowable(DesignerException.java:46)
	at mono.android.DesignerSession.checkRenderResultForError(DesignerSession.java:187)
	at mono.android.DesignerSession.load(DesignerSession.java:239)
	at mono.android.DesignerSession.processMessage(DesignerSession.java:702)
	at mono.android.MessageListener.executeMessage(MessageListener.java:88)
	at mono.android.MessageListener$Runner.run(MessageListener.java:44)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
	at android.preference.PreferenceManager.getDefaultSharedPreferencesName(PreferenceManager.java:498)
	at android.preference.PreferenceManager.getDefaultSharedPreferences(PreferenceManager.java:487)
	at md5b60ffeb829f638581ab2bb9b1a7f4f3f.PageRenderer.n_onAttachedToWindow(Native Method)
	at md5b60ffeb829f638581ab2bb9b1a7f4f3f.PageRenderer.onAttachedToWindow(PageRenderer.java:55)
	at android.view.View.dispatchAttachedToWindow(View.java:15395)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2953)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
	at android.view.AttachInfo_Accessor.setAttachInfo(AttachInfo_Accessor.java:42)
	at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:333)
	at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
	at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:368)
	at mono.android.DesignerSession.load(DesignerSession.java:233)
	... 4 more
Comment 1 Alan McGovern 2017-06-08 08:55:20 UTC
Jeremie, can this be made work in the previewer context or is just simply a limitation of layoutlib and google need to fix it?