标题:qpe只显示出一个鼠标箭头
作者:tyholly
日期:2006-11-02 16:36
内容:
我用的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
不知道是什么缘故,哪位大大能帮帮忙啊,着急,折腾好久了还是不对
#1 [cavendish 11-02 22:32]
qvfb和qte使用共享内存以及信号量导致的
重启就可以了
应该还有一个linux命令可以清空的
但是现在我忘了
看看其他朋友有人知道么
或者我找到了再告诉你
#2 [cavendish 11-02 22:59]
找到了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-bytesmessages
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
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 ty ..
#3 回 楼主(tyholly) 的帖子 [草也 01-05 15:03]
问题解决了么?