chrome浏览器中flash动画的屏幕截图问题

chrome浏览器中flash动画的屏幕截图问题

我正在使用 chromium-browser 和 vnc4 服务器来对 Flash 资源进行一些缩略图处理。这是版本:

$ chromium-browser --version
Using PPAPI flash.
Chromium 48.0.2564.116 Ubuntu 14.04

这就是我尝试捕获时所做的事情:

sudo vnc4server  -kill :1
vnc4server 
export DISPLAY=:1
sudo xhost +local: 
chromium-browser "<url to load the resource on our website>"

这在过去是有效的;我将继续进行一些交互(按播放按钮等),然后进行屏幕截图。但现在它挂起,显示以下输出:

Using PPAPI flash.
Xlib:  extension "XInputExtension" missing on display ":1".
Xlib:  extension "XInputExtension" missing on display ":1".
Xlib:  extension "XInputExtension" missing on display ":1".
[3121:3121:0322/164259:ERROR:logging.h(808)] Failed to call method: org.freedesktop.DBus.ObjectManager.GetManagedObjects: object_path= /: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
[3121:3121:0322/164259:ERROR:logging.h(808)] Failed to call method: org.freedesktop.DBus.ObjectManager.GetManagedObjects: object_path= /: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
Xlib:  extension "XInputExtension" missing on display ":1".
libGL error: failed to load driver: swrast
[3176:3176:0322/164300:ERROR:gl_surface_glx.cc(347)] GLX 1.3 or later is required.
[3176:3176:0322/164300:ERROR:gl_surface_x11.cc(56)] GLSurfaceGLX::InitializeOneOff failed.
[3176:3176:0322/164300:ERROR:gpu_child_thread.cc(257)] Exiting GPU process due to errors during initialization
[3121:3155:0322/164300:ERROR:browser_gpu_channel_host_factory.cc(132)] Failed to launch GPU process.
[WARNING:flash/platform/pepper/pep_module.cpp(63)] SANDBOXED
Vector smash protection is enabled.

现在,除了挂起终端之外,这似乎确实有效。我可以打开另一个终端并在那里进行交互和屏幕截图,如下所示:

#click play button
sudo xdotool mousemove 160 655; sudo xdotool click 1
#screengrab
sudo import -display :1 -window root -crop 800x600+11+83 /path/to/output.jpg

所以,如果我找到一种绕过挂起命令的方法,也许我实际上可以忽略这个问题。我尝试&在末尾添加一个,如下所示:

chromium-browser "<url to load the resource on our website>" &

但它仍然挂着。如果我这样做它也会挂起

chromium-browser "<url to load the resource on our website>" >/dev/null

我还尝试nohup在命令前面启动它(仍然挂起,但没有输出)并在开始时在末尾nohup启动(相同)。&

我没主意了。我对 vnc4 或 chromium 浏览器不够熟悉,不知道这个错误意味着什么,更不用说尝试修复它了。有人可以建议吗?

答案1

尝试重新安装铬。也许发生了故障。如果这不起作用,也许您必须删除它的一些库文件,然后尝试重新安装。

我希望这能解决您的问题!

答案2

截取屏幕截图时,Chromium 浏览器存在问题。看这个错误报告

相关内容