• 7761阅读
  • 3回复

qpe只显示出一个鼠标箭头 [复制链接]

上一主题 下一主题
离线tyholly
 
只看楼主 倒序阅读 楼主  发表于: 2006-11-02
我用的qt是2.3.10版本的,运行
qvfb &
qpe
只出现了qvfb的黑界面,什么内容都没有,只有个不能移动的鼠标箭头,提示的错误是

ODevice() - found 'vendor_id   : GenuineIntel'
Cannot create semaphore /tmp/qtembedded-0/QtEmbedded-0 't'
Error 22 Invalid argument

Cannot attach to shared memory


不知道是什么缘故,哪位大大能帮帮忙啊,着急,折腾好久了还是不对
离线cavendish

只看该作者 1楼 发表于: 2006-11-02
qvfb和qte使用共享内存以及信号量导致的

重启就可以了

应该还有一个linux命令可以清空的
但是现在我忘了

看看其他朋友有人知道么
或者我找到了再告诉你
离线cavendish

只看该作者 2楼 发表于: 2006-11-02
找到了ipcs和ipcrm
http://www.tldp.org/LDP/lpg/node22.html

The ipcs Command

The ipcs command can be used to obtain the status of all System V IPC objects. The Linux version of this tool was also authored by Krishna Balasubramanian.

ipcs   -q:   Show only message queues
ipcs   -s:   Show only semaphores
ipcs   -m:   Show only shared memory
ipcs --help:   Additional arguments

By default, all three categories of objects are shown. Consider the following sample output of ipcs:

------ Shared Memory Segments --------
shmid   owner   perms   bytes   nattch   status    

------ Semaphore Arrays --------
semid   owner   perms   nsems   status    

------ Message Queues --------
msqid   owner   perms   used-bytes messages  
0       root     660     5       1

Here we see a single message queue which has an identifier of ``0''. It is owned by the user root, and has octal permissions of 660, or -rw-rw--. There is one message in the queue, and that message has a total size of 5 bytes.

The ipcs command is a very powerful tool which provides a peek into the kernel's storage mechanisms for IPC objects. Learn it, use it, revere it.

The ipcrm Command

The ipcrm command can be used to remove an IPC object from the kernel. While IPC objects can be removed via system calls in user code (we'll see how in a moment), the need often arises, especially under development environments, to remove IPC objects manually. Its usage is simple:

ipcrm <msg | sem | shm> <IPC ID>

Simply specify whether the object to be deleted is a message queue (msg), a semaphore set (sem), or a shared memory segment (shm). The IPC ID can be obtained by the ipcs command. You have to specify the type of object, since identifiers are unique among the same type (recall our discussion of this earlier).
离线草也
只看该作者 3楼 发表于: 2011-01-05
回 楼主(tyholly) 的帖子
问题解决了么?
快速回复
限100 字节
 
上一个 下一个