nvvp 启动不了:Nvvp: Cannot open display, No more handles [gtk_init_check() failed]

想要在linux服务器启动Nvidia Visual Profiler,然后在windows桌面显示Nvidia Visual Profiler界面。

1. 首先需要先下载Xmanager

2.然后,通过xshell登录linux服务器。

3.接下来,运行代码:

	nvvp

报错,信息如下:

!SESSION 2018-07-03 10:39:31.973 -----------------------------------------------
  2 eclipse.buildId=unknown
  3 java.version=1.8.0_77
  4 java.vendor=Oracle Corporation
  5 BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
  6 Command-line arguments:  -os linux -ws gtk -arch x86_64 -data @noDefault
  7 
  8 !ENTRY org.eclipse.osgi 4 0 2018-07-03 10:40:20.525
  9 !MESSAGE Application error
 10 !STACK 1
 11 org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
 12     at org.eclipse.swt.SWT.error(SWT.java:4467)
 13     at org.eclipse.swt.widgets.Display.createDisplay(Display.java:934)
 14     at org.eclipse.swt.widgets.Display.create(Display.java:918)
 15     at org.eclipse.swt.graphics.Device.(Device.java:157)
 16     at org.eclipse.swt.widgets.Display.(Display.java:514)
 17     at org.eclipse.swt.widgets.Display.(Display.java:505)
 18     at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:732)
 19     at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
 20     at com.nvidia.viper.application.Application.start(Application.java:59)
 21     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
 22     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
 23     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
 24     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
 25     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
 26     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 27     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 28     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 29     at java.lang.reflect.Method.invoke(Method.java:498)
 30     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
 31     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
 32     at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

在网上找了好多,好难解决,其实都没解决。

解决这个bug,只需要在Xmanager里面设置一下就行,如下:

重点在于开启 “启用X11 forwarding”

nvvp 启动不了:Nvvp: Cannot open display, No more handles [gtk_init_check() failed]_第1张图片
确定X11 连接到 Xmanager就可以了。
就这么easy~~~

你可能感兴趣的:(nvvp 启动不了:Nvvp: Cannot open display, No more handles [gtk_init_check() failed])