简体   繁体   English

Ampps 窗口变灰,Ubuntu 18.04 LTS

[英]Ampps window is greyed out, Ubuntu 18.04 LTS

I just installed Ampps through the terminal on Ubuntu 18.04, and everything went fine.我刚刚在 Ubuntu 18.04 上通过终端安装了 Ampps,一切顺利。 When I run the program, however, the screen is completely greyed out, and I receive the following stack trace whenever I move the window:但是,当我运行程序时,屏幕完全变灰,每当我移动窗口时,我都会收到以下堆栈跟踪:

[Ampps::exec] "/usr/local/ampps/apache/bin/httpd-k start" 
X Error: BadAccess (attempt to access private resource denied) 10
  Extension:    130 (MIT-SHM)
  Minor opcode: 1 (X_ShmAttach)
  Resource id:  0x14a
X Error: BadShmSeg (invalid shared segment parameter) 128
  Extension:    130 (MIT-SHM)
  Minor opcode: 5 (X_ShmCreatePixmap)
  Resource id:  0x1c00010
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x1c00011
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x1c00011
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x1c00011

I've tried googling and searching on here, but couldn't find a solution.我试过谷歌搜索并在这里搜索,但找不到解决方案。 I read somewhere that I should use the command:我在某处读到我应该使用命令:

sudo QT_X11_NO_MITSHM=1 usr/local/ampps/Ampps.run

When I use it, it doesn't recognize as a sudo command, and says the command wasn't found.当我使用它时,它无法识别为sudo命令,并说未找到该命令。

Any help/answers would be appreciated.任何帮助/答案将不胜感激。

There is a slight mistake in your sentence.你的句子有一个小错误。 It should read:它应该是:

sudo QT_X11_NO_MITSHM=1 /usr/local/ampps/Ampps须藤 QT_X11_NO_MITSHM=1 /usr/local/ampps/Ampps

For me setting the QT env to "native" did the trick:对我来说,将 QT env 设置为“本机”可以解决问题:

The Qt rendering speed is affected strongly by the rendering mode used. Qt 渲染速度受所使用的渲染模式的影响很大。 In Qt version 4.7 or newer this can be controlled by the environmental variable QT_GRAPHICSSYSTEM.在 Qt 4.7 或更新版本中,这可以由环境变量 QT_GRAPHICSSYSTEM 控制。 The options are "native", "raster", or "opengl" in order of increasing rendering speed.选项为“本机”、“光栅”或“opengl”,以提高渲染速度。 For earlier versions of Qt the terminal defaults to "raster".对于早期版本的 Qt,终端默认为“raster”。

export QT_GRAPHICSSYSTEM=native

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM