(WP7.x)仿真器(XDE)故障排除技巧。 [英] (WP7.x) Emulator (XDE) Troubleshooting Tips.

查看:85
本文介绍了(WP7.x)仿真器(XDE)故障排除技巧。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(从旧论坛复制)

如果您在启动Windows Phone模拟器或模拟器运行缓慢时遇到问题,请使用此疑难解答。


部署到模拟器失败
或挂起

请注意,如果模拟器失败并且:"由于命令行参数无效而导致连接失败",实际发生此错误是因为模拟器无法启动。按照指示的顺序尝试以下变通方法:


1.      
验证您的系统是否满足系统要求,如发行说明中所示
此处


2.      
确认您至少有2GB的系统内存可用于启动模拟器。 请注意,规定的最低系统要求为3GB。
由于您在开发系统上运行模拟器,请考虑您的系统还需要足够的内存来容纳其他开发工具。因此,根据您使用计算机的方式,请考虑安装超过3GB的系统
内存。  (SDK 7.0要求是2GB系统内存)


3.      
确认您的计算机上未安装旧版本的Windows Mobile模拟器(例如5.x或6.x版本的模拟器)。如果
存在则卸载它们,然后重新启动。


< span style ="color:#000000; line-height:115%; font-family:'arial','sans-serif'; font-size:10pt"> 4.      
确认您没有在虚拟机中运行,因为这不是受支持的方案。


5.      
如果您刚刚安装了Tools但尚未重新启动,请先尝试重新启动,看看是否能解决问题。


6.     ;&NBSP;&NBSP;
尝试将VS2010设置为以管理员身份启动。这是程序。确保以管理员身份登录。右键单击Microsoft Visual
Studio 2010 Express for Windows Phone,选择"属性",单击"兼容性"选项卡,然后启用"以管理员身份运行此程序"复选框。确保以管理员身份登录,然后重新启动Visual Studio。


7.      ;&NBSP;&NBSP;
尝试手动启动没有命令行参数的模拟器;查找模拟器启动错误消息(通常只会看到一个帮助窗口)。
如果您看到错误消息,请向此论坛帖子报告任何错误详情。


8.      
关闭Visual Studio和其他内存饥饿的应用程序,然后尝试从"开始"菜单链接手动启动模拟器。

如果上述技术成功启动仿真器,则表明原始故障是由于可用内存不足造成的。


9.      
请确保未在同一台计算机上使用其他虚拟化软件。 Hyper-V,VirtualPC或
其他虚拟机软件不支持此版本。运行虚拟PC会话,完整操作系统或应用程序或第三方虚拟化软件可能会干扰或替换Windows Phone仿真器使用的虚拟机管理器(VMM)服务。 (例如:英特尔硬件加速
执行管理器(英特尔HAXM)。)




10.   
验证VMM服务是否正在运行。 在命令提示符下,键入"sc query vmm",您应该看到如下内容:


SERVICE_NAME:vmm


TYPE               :1 
KERNEL_DRIVER


状态              :4  RUNNING


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;(停止的,
NOT_PAUSABLE,IGNORES_SHUTDOWN)


WIN32_EXIT_CODE&NBSP;&NBSP;&NBSP; :0  (0x0)


SERVICE_EXIT_CODE  :0  (0x0)


CHECKPOINT         :0x0


WAIT_HINT          :0x0




如果服务已停止,请尝试删除第三方VMM软件,然后您可能需要使用"sc start vmm"从命令提示符重新启动Microsoft VMM服务





< p style ="margin:0in 0in 0pt 0.25in; text-indent:-0.25in"> 11.   
仿真器尚未使用Atom处理器进行测试,该处理器用于许多上网本电脑。此外,由于在使用Atom时可能会出现模拟器
性能问题,因此请考虑在不使用Atom的计算机中使用模拟器进行开发。


12.   
如果您的计算机有多个安装工具,防病毒软件等的历史记录,请考虑使用干净的运行
系统安装来重建您的系统。


13。检查是否有任何系统工具将foriegn DLL注入模拟器进程。  SDK 7.1模拟器需要
750MB的连续地址空间块。 模拟器调整它使用的DLL的加载地址,以便最大化连续的地址空间;但是,模拟器不知道注入的DLL,因此无法控制它们的加载位置。 





如果以上步骤没有帮助,请回复此主题并提供以下运行信息来自命令提示符的DXDIAG:


       &NBSP;
计算机系统模型和处理器类型


       &NBSP;
视频设备型号制造商和名称


       &NBSP;
已安装的物理内存量


最大化仿真器性能


       
确保您的计算机至少具有2GB的系统内存。如果您正在运行其他应用程序或工具,请考虑在使用
模拟器时关闭它们,以确保有足够的可用系统内存。


·       
使用在其BIOS设置屏幕中指示"硬件虚拟化技术"的计算机(这是用于启用Virtual PC等的技术)。
然后你必须确保在BIOS中打开该功能。更多信息:


< a href ="http://www.microsoft.com/windows/virtual-pc/support/configure-bios.aspx"> 支持:为硬件辅助虚拟化(HAV)PC配置BIOS


·        
如发行说明中所示
这里
使用具有WDDM 1.1驱动程序的高性能DirectX 10卡,可以利用Windows Phone Emulator上的GPU加速功能。确保您使用的是视频卡制造商提供的最新驱动程序。


为了查看您的计算机硬件功能,请从命令行窗口运行DXDIAG。在系统选项卡中,确认
DirectX 10或更高版本。在"显示"选项卡的"驱动程序"框中,确认DDI版本10及更高版本,以及驱动程序型号WDDM 1.1或更高版本。


如果您的视频卡更有可能支持这些功能,已安装的操作系统是Windows 7.


      &NBSP;&NBSP;
要验证硬件加速是否有效,请创建默认的Windows Phone Silverlight应用程序,并在MainPage()
方法中包含以下内容:



Application.Current.Host.Settings.EnableFrameRateCounter = true;



如果您在左上方看到一个显示5组计数器的叠加层,则表示您的仿真器正在使用硬件加速。


·       
您可以通过降低模拟器的缩放级别来提高性能。 点击"扳手"图标选择缩放级别。


 


如果您的硬件或驱动程序不符合优化性能的最低要求:


       &NBSP;
请参阅驱动程序卡制造商的网站。 查看是否有更新的驱动程序。


      &NBSP;&NBSP;
考虑升级您的视频驱动程序。


       &NBSP;
考虑在更高性能的计算机中安装Windows Phone 7开发人员工具。






 


模拟器视频在运行XNA或Silverlight + XNA游戏时出现损坏。


Windows Phone SDK 7.1.1中包含的模拟器映像与某些视频卡或视频卡驱动程序存在兼容性问题。

问题当系统托盘可见时,横向使用XNA图形渲染引擎时显示为损坏的显示。



要解决此问题:

&NBSP; XNA游戏应将方向设置为纵向:

    graphicsDeviceManager.SupportedOrientations = DisplayOrientation.Portrait;



- 或 - 启用全屏模式:

    graphicsDeviceManager.IsFullScreen =
true
;




 使用横向页面方向的Silverlight + XNA游戏应禁用系统托盘:







'TR>
&NBSP;&NBSP;&NBSP;&NBSP;的 SupportedOrientations <跨度风格="font-size:11px"> = "横向"   方向 = "LandscapeLeft"  








< span style ="color:#0000ff">< phone:PhoneApplicationPage 
&NBSP;&NBSP;&NBSP;&NBSP;壳:的 SystemTray.IsVisible = " False"   ;
 

解决方案

嗨Eric,我正在尝试解决Windows的原因Phone 7 VS2010环境无法连接到手机模拟器。我正在运行两个不同的Mac Core 2 Duo系统,Parallels和Windows 7.除了连接到
手机外,一切似乎都有效。知道如何解决连接问题吗?模拟器是否使用TCP / IP和需要启用的特定端口?


(Copied from old Forums)
Please use this Troubleshooter if you are having problems getting the Windows Phone Emulator to launch or if the emulator is running slowly.

Deploying to the emulator is failing or hanging
Note that if the emulator fails with: "Connection failed because of invalid command-line arguments", this error is in reality occurring because the emulator is unable to launch. Try the following workarounds in the order indicated:

1.      Verify that your system meets the system requirements as indicated in the Release Notes here.

2.      Verify that you have at least 2GB of system memory available to launch the emulator.  Note that the stated minimum system requirement is 3GB. Since you are running the Emulator on your development system, consider that your system also requires enough memory to accommodate your other development tools. Therefore, depending on how you use your computer, consider installing more than 3GB of system memory.  (SDK 7.0 requirement was 2GB system Memory)

3.      Verify you do not have older versions of Windows Mobile emulators installed on your computer (such version 5.x or 6.x emulators). Uninstall them if they are present, and then reboot.

4.      Confirm you are not running from within a Virtual Machine as this is not a supported scenario.

5.      If you have just installed the Tools but have not rebooted yet, try rebooting first to see if that fixes the problem.

6.      Try setting VS2010 to launch as Administrator. Here is the procedure. Make sure you are logged in as Administrator. Right click on Microsoft Visual Studio 2010 Express for Windows Phone, choose Properties, click on the Compatibility tab and turn on the check box for "Run this program as an Administrator". Make sure you are logged in as Administrator and then re-launch Visual Studio.

7.      Try manually launching the emulator with no command line arguments; look for emulator launch error messages (normally you will only see a help window). If instead you see an error message then please report any error details to this forum thread.

8.      Close Visual Studio and other memory hungry applications, and then try manually launching the emulator from the Start menu link.
If the above technique is successful in launching the emulator, this suggests that the original failure was due to insufficient free memory.

9.      Please ensure that other virtualization software is not being used on the same computer. This release is not supported on Hyper-V, VirtualPC, or other virtual machine software. Running a Virtual PC session, full OS or App, or third party virtualization software may interfere with or replace the Virtual Machine Manager (VMM) service used by the Windows Phone Emulator. (ex: Intel Hardware Accelerated Execution Manager (Intel HAXM).)

10.   Verify that the VMM service is running.  At a command prompt, type "sc query vmm" and you should see something like this:

SERVICE_NAME: vmm

TYPE               : 1  KERNEL_DRIVER

STATE              : 4  RUNNING

                           (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)

WIN32_EXIT_CODE    : 0  (0x0)

SERVICE_EXIT_CODE  : 0  (0x0)

CHECKPOINT         : 0x0

WAIT_HINT          : 0x0

If the service is stopped, try removing third party VMM software, and then you may need to restart the Microsoft VMM service from a command prompt using "sc start vmm".

11.   The Emulator has not been tested with the Atom processor, which is used in a number of Netbook PCs. Also, since there will likely be slow emulator performance issues when using the Atom, consider development using the Emulator in a computer that does not use the Atom.

12.   If your computer has a history of multiple installations of Tools, antivirus software etc., consider rebuilding your system with a clean operating system installation.

13. Check to see if any system tools are injecting foriegn DLL's into the emulator process.  The SDK 7.1 emulator requires a 750MB block of contiguous address space.  The emulator adjusts the load address of the DLLs it uses in order to maximize the contiguous address space; however, the emulator is unaware of injected DLLs and so has no control over where they load. 


If the above steps do not help, then please reply to this thread and supply the following information obtained by running DXDIAG from a command prompt:

·        Computer system model and processor type

·        Video device model manufacturer and name

·        Amount of installed physical memory

Maximizing Emulator Performance

·        Ensure that your computer has a minimum of 2GB of system memory. If you have other applications or tools running, consider closing them when using the emulator to ensure there is sufficient free system memory available.

·        Use a computer that has "hardware virtualization technology" indicated in its BIOS setup screen (this is the technology used to enable Virtual PC etc.). And then you must ensure that the feature is turned on in the BIOS. More information here:

Support: Configure BIOS for Hardware Assisted Virtualization (HAV) PCs

·        As indicated in the Release Notes here, use a high performance DirectX 10 capable card with a WDDM 1.1 driver that can take advantage of GPU acceleration on Windows Phone Emulator. Ensure that you are using the very latest driver from the video card manufacturer.

In order to review your computer hardware capabilities, run DXDIAG from a command-line window. From the System tab, confirm DirectX 10 or greater. From the Display tab, in Drivers box, confirm DDI Version 10 and above, and Driver model WDDM 1.1 or greater.

It is more likely that your video card supports these features if the installed operating system is Windows 7.

·        To verify whether Hardware Acceleration is working, create a default windows phone Silverlight application and include the following in your MainPage() method:

Application.Current.Host.Settings.EnableFrameRateCounter = true;

If you see at the top left an overlay showing 5 sets of counters this indicates that your emulator is using hardware acceleration.

·        You can get some performance improvement by reducing the zoom level of the emulator.  Click on the "wrench" icon to choose the zoom level.

 

If your hardware or drivers do not meet the minimum requirements for optimized performance:

·        Refer to the web site of the manufacturer of your driver card.  See if a newer driver is available.

·        Consider upgrading your video driver.

·        Consider installing the Windows Phone 7 Developer Tools in a higher performance computer.


 

Emulator Video appears corrupted running XNA or Silverlight + XNA game.
The emulator images included in Windows Phone SDK 7.1.1 have a compatability problem with some video cards or video card drivers.
The problem appears as corrupted display when using the XNA graphics rendering engine in landscape orientation when system tray is visible.

To work around this problem:
  XNA games should either set the orientation to portrait:
    graphicsDeviceManager.SupportedOrientations = DisplayOrientation.Portrait;

-or- enable full screen mode:
    graphicsDeviceManager.IsFullScreen = true;

 Silverlight + XNA games which use landscape page orientation should disable the system tray:

<phone:PhoneApplicationPage  
    SupportedOrientations="Landscape" Orientation="LandscapeLeft" 
    shell:SystemTray.IsVisible="False" 
 

解决方案

Hi Eric, I'm trying to troubleshoot why the Windows Phone 7 VS2010 environment will not connect to the Phone emulator. I'm running two different Mac Core 2 Duo systems, Parallels and Windows 7. Everything seems to work except for the connection to the phone. Any idea how to troubleshoot the connection? Is the emulator using TCP/IP and a particular port that needs to be enabled?


这篇关于(WP7.x)仿真器(XDE)故障排除技巧。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆