+ -
当前位置:首页 → 问答吧 → 为什么在slackware9.0下窗口很容易crash

为什么在slackware9.0下窗口很容易crash

时间:2004-02-14

来源:互联网

比如说mozilla和firefox,在浏览的时候经常crash,而且是在不装flash插件的情况下。但是firefox在windows2000下就很稳定,而且是在安装了flash插件的情况下,从来不会crash。
其他的一些软件有时也会突然crash。
我用的是PIII的本本,128M内存。我老怀疑是因为申请不到内存导致窗口crash,不知各位大侠有没有碰到我这种情况:(

作者: barbie2pig   发布时间: 2004-02-14

经常crash倒是没有过

作者: nbxmedia   发布时间: 2004-02-14

关于SlackWare中的部分软件Crash问题,一般是QT所造成的,如果,你在汉化中所使用Fireley兄所提供的汉化软件包中的QT,必然会出现你所述的以上问题。因为F兄所提供的QT2.3.1这一版本与SlackWare中的QT版本是一样的,但可能在汉化中存在的BUG所造成的,具体是什么导致如:Mozilla,及Konqueror、还有kde下的控制中心在选择字体时Crash问题尚还不清楚,如果需要汉化,最好不安装F兄提供的QT程序方可避免以上问题发生了。

作者: LiEn   发布时间: 2004-02-16

只是选字体的时候崩溃,直接该配置文件的字体就可以了。

作者: zhanggy_zju   发布时间: 2004-02-17

因为我的汉化是按最简单的步骤做的, 仅仅是
export LC_CTYPE=zh_CN
然后拷入simsun和tahoma, fc-cache就可以正常使用中文了.
当然, 我用的是KDE, 这样速度也比较快

其实窗口容易crash的问题没有汉化就存在了. 比较明显的例子, 当你在console窗口编译一个比较大的工程, 象xine, mplayer之类, mozilla就肯定会crash, 甚至无法打开.

以前我用的redhat 7.3就没有这样的问题, 所以比较怀疑是KDE3.1的问题. 但现在又懒得升级, 只好求助各位大侠

作者: barbie2pig   发布时间: 2004-02-17

最近想了很多办法还是无法解决这个窗口crash的问题。还试了最简单的fvwm,仍然是会在load比较重的时候崩溃,真是受不了了。
尤其是喜欢一边用xine看网上直播,一边用firefox的时候,总是会莫名其妙的有窗口crash,只好在看视频的时候少开几个窗口了。
每次crash的时候总是显示出一个killed就完了,真是受不了了!

作者: barbie2pig   发布时间: 2004-02-29

呵呵,找找原因嘛

作者: lushan   发布时间: 2004-02-29

呵呵,找找原因嘛

作者: lushan   发布时间: 2004-02-29

引用:
最初由 lushan 发表
呵呵,找找原因嘛
高人请指点一下,我也想调试一下看看是什么原因

作者: barbie2pig   发布时间: 2004-03-01

开了20多个窗口都有没有问题!!

作者: hgty123456789   发布时间: 2004-03-01

引用:
最初由 hgty123456789 发表
开了20多个窗口都有没有问题!!
你用的是slackware9.0吗?机器的配置是什么样的?我的机器配置是PIII700, 128M内存。
试一下在一个terminal编译一个比教大的project,比如mplayer或xine之类,同时用mozilla或firefox上网。一般这种情况下我的浏览器很快就crash了。如果编译的的东西更大,比如qt,桌面上的图标和任务条都有可能消失,这是kde出现crash的表现。:(
我很希望找到原因。因为以前安装得的slackware的版本和redhat的版本都没有这个问题。

作者: barbie2pig   发布时间: 2004-03-01

试试升级内核

作者: zonzi   发布时间: 2004-03-01

check memory usage (top or free), if you are about using up the memory, the kernel OOM killer may be the reason to kill some processes to save memory

作者: terminator   发布时间: 2004-03-01

引用:
最初由 terminator 发表
check memory usage (top or free), if you are about using up the memory, the kernel OOM killer may be the reason to kill some processes to save memory
感觉很有道理,其实我也觉得是内存申请不到之类的错误,可是如何解决这个问题呢?我记得win2000会把内存中的东西暂时缓存到硬盘上。而且好的操作系统应该可以处理这种情况而不杀掉进程。

希望大侠再伸援手

作者: barbie2pig   发布时间: 2004-03-02

引用:
最初由 barbie2pig 发表
感觉很有道理,其实我也觉得是内存申请不到之类的错误,可是如何解决这个问题呢?我记得win2000会把内存中的东西暂时缓存到硬盘上。而且好的操作系统应该可以处理这种情况而不杀掉进程。

希望大侠再伸援手
Terminator大侠,现在觉得可能是我的swap分区开的太小,只开了128M,可是最近又不想重新分区,真是苦恼啊:(

作者: barbie2pig   发布时间: 2004-03-02

建一个swap file.

root@cactux:/home/frenzy# dd if=/dev/zero of=/tmp/swapfile bs=1024 count
=65536
65536+0 records in
65536+0 records out
root@cactux:/home/frenzy# ls -l /tmp/swapfile
-rw-r--r-- 1 root root 67108864 Mar 2 09:43 /tmp/swapfile
root@cactux:/home/frenzy# mkswap /tmp/swapfile
Setting up swapspace version 1, size = 67104 kB
root@cactux:/home/frenzy# swapon /tmp/swapfile
root@cactux:/home/frenzy#

作者: frenzy   发布时间: 2004-03-02

yes, swapfile is a good solution - actually I always use it. btw, I created my swap file in /boot instead of /tmp since files in /tmp may be deleted by cron jobs.

to enable swapfile during boot, you can simply change /etc/fstab and add the swap file entry into it.

if you are using kernel 2.6, you will need to change /etc/rc.d/rc.S, and move the line 'swapon -a' after line '/sbin/mount -w -o remount /'. This is because at the position of the original 'swapon -a', / file system is still read-only, but you need read-write for swap file. so kernel 2.6 will refuse to turn on swap. I've reported it to Patrick, but he is reluctant to make the change. :-)

作者: terminator   发布时间: 2004-03-02

引用:
最初由 barbie2pig 发表
最近想了很多办法还是无法解决这个窗口crash的问题。还试了最简单的fvwm,仍然是会在load比较重的时候崩溃,真是受不了了。
尤其是喜欢一边用xine看网上直播,一边用firefox的时候,总是会莫名其妙的有窗口crash,只好在看视频的时候少开几个窗口了。
每次crash的时候总是显示出一个killed就完了,真是受不了了!
crash能不能清楚一点?是关闭还是停止响应

作者: gnwd   发布时间: 2004-03-02

引用:
最初由 terminator 发表
yes, swapfile is a good solution - actually I always use it. btw, I created my swap file in /boot instead of /tmp since files in /tmp may be deleted by cron jobs.

to enable swapfile during boot, you can simply change /etc/fstab and add the swap file entry into it.

if you are using kernel 2.6, you will need to change /etc/rc.d/rc.S, and move the line 'swapon -a' after line '/sbin/mount -w -o remount /'. This is because at the position of the original 'swapon -a', / file system is still read-only, but you need read-write for swap file. so kernel 2.6 will refuse to turn on swap. I've reported it to Patrick, but he is reluctant to make the change. :-)
真的很感谢你, 昨天晚上最后发现原因是在fstab里没有swap的内容, 所以根本没有办法交换内存. 这么快就把问题定位, 大牛!!!!:2cool

作者: barbie2pig   发布时间: 2004-03-03

引用:
最初由 frenzy 发表
建一个swap file.

root@cactux:/home/frenzy# dd if=/dev/zero of=/tmp/swapfile bs=1024 count
=65536
65536+0 records in
65536+0 records out
root@cactux:/home/frenzy# ls -l /tmp/swapfile
-rw-r--r-- 1 root root 67108864 Mar 2 09:43 /tmp/swapfile
root@cactux:/home/frenzy# mkswap /tmp/swapfile
Setting up swapspace version 1, size = 67104 kB
root@cactux:/home/frenzy# swapon /tmp/swapfile
root@cactux:/home/frenzy#
感谢贴出这么详细的步骤, 让我又学到不少

作者: barbie2pig   发布时间: 2004-03-03

我内存应该没有问题
但是firefox装了flash插件和flash viewer 扩展之后,浏览一些网页还是会crash,比如sohu,而浏览任何网页,都可能会出现死掉的问题。
还有qt程序,比如psi,有时候打开一个新的聊天窗口后也会停止相应,并且连累其他所有运行中的qt程序都停止相应。难道真是firefly的问题?

作者: Xoo   发布时间: 2004-03-04

No, I think it's just because X is busy. wait for a while and you will get response back.

作者: terminator   发布时间: 2004-03-04