上周安装FSL,其中的FSLview 总是崩溃。遍寻数日解决方法,不得。不过据数日来的追寻,今日隐约感觉问题所在,果然。
export QT_IM_MODULE=xim
解决问题。但是这样每次都需要在terminal中先输入这条命令再在terminal中启动FSL。
一劳永逸的方法:用root帐户 修改文件/etc/X11/xinit/xinput.d/aux/scim-qtimm,把QT_IM_MODULE=scim改为QT_IM_MODULE=xim。注销重登录,ok
参考:
mandriva 2005 中reallplay10出问题了
linux下SCIM的配置方法
输入法与环境变量HOWTO
解析环境变量XMODIFIERS/GTK_IM_MODULE
LINUX系统环境变量
解决ubuntu下skype和scim不兼容情况
附:出错信息
[user@acer ~]$ fslview
/usr/local/fsl/lib/fslview/bin/fslview: /usr/lib/libGL.so.1: no version information available (required by /usr/local/fsl/lib/fslview/lib/libvtkRendering.so.5.0)
/usr/local/fsl/lib/fslview/bin/fslview: /usr/lib/libGL.so.1: no version information available (required by /usr/local/fsl/lib/fslview/lib/libvtkftgl.so.5.0)
ScimInputContextPlugin()
WARNING: please edit ~/.scim/global and change /DefaultConfigModule to kconfig
*** glibc detected *** /usr/local/fsl/lib/fslview/bin/fslview: free(): invalid pointer: 0x09bf5338 ***
======= Backtrace: =========
/lib/i686/nosegneg/libc.so.6[0x484a4c8d]
/lib/i686/nosegneg/libc.so.6(cfree+0x90)[0x484a8340]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0x488ea871]
/usr/lib/qt-3.3/plugins/inputmethods/libqscim.so(_ZN4scim23QScimInputContextGlobal10initializeEv+0xfd2)[0x5643a2]
/usr/lib/qt-3.3/plugins/inputmethods/libqscim.so(_ZN4scim17QScimInputContextC1Ev+0x31e)[0x5653fe]
/usr/lib/qt-3.3/plugins/inputmethods/libqscim.so(_ZN22ScimInputContextPlugin6createERK7QString+0x7e)[0x55e5de]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN26QInputContextPluginPrivate6createERK7QString+0x1b)[0x48031c5b]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN20QInputContextFactory6createERK7QStringP7QWidget+0x5d)[0x480318ed]
/usr/lib/qt-3.3/plugins/inputmethods/libqimsw-multi.so(_ZN18QMultiInputContext17changeInputMethodE7QString+0xc3)[0xf6e51b]
/usr/lib/qt-3.3/plugins/inputmethods/libqimsw-multi.so(_ZN18QMultiInputContext5slaveEv+0x43)[0xf6e6cf]
/usr/lib/qt-3.3/plugins/inputmethods/libqimsw-multi.so(_ZN18QMultiInputContext15setHolderWidgetEP7QWidget+0x26)[0xf6e93e]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN20QInputContextFactory6createERK7QStringP7QWidget+0x75)[0x48031905]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN7QWidget18createInputContextEv+0x72)[0x47d87b22]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN7QWidget17resetInputContextEv+0x22)[0x47d87dc2]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN9QLineEdit7setTextERK7QString+0x22)[0x47f07102]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN9QLineEdit12setMaxLengthEi+0x36)[0x47efffd6]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN11QFileDialog4initEv+0x36c)[0x47fe018c]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN11QFileDialogC1ERK7QStringS2_P7QWidgetPKcb+0xa2)[0x47ff2732]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN11QFileDialog15getOpenFileNameERK7QStringS2_P7QWidgetPKcS2_PS0_b+0x38b)[0x47ff664b]
/usr/local/fsl/lib/fslview/bin/fslview(_ZN17ApplicationWindow8fileOpenEv+0x49)[0x80dc331]
/usr/local/fsl/lib/fslview/bin/fslview(_ZN21ApplicationWindowBase9qt_invokeEiP8QUObject+0x89)[0x8166151]
/usr/local/fsl/lib/fslview/bin/fslview(_ZN17ApplicationWindow9qt_invokeEiP8QUObject+0x307)[0x819ebbf]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN7QObject15activate_signalEP15QConnectionListP8QUObject+0x16a)[0x47e27e2a]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN7QObject15activate_signalEi+0xbd)[0x47e2895d]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN7QAction9activatedEv+0x29)[0x481d7f29]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN7QAction18internalActivationEv+0x50)[0x47f83a30]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN7QAction9qt_invokeEiP8QUObject+0x10c)[0x481d7e1c]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN7QObject15activate_signalEP15QConnectionListP8QUObject+0x16a)[0x47e27e2a]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN7QSignal6signalERK8QVariant+0x8e)[0x481b37ae]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN7QSignal8activateEv+0x77)[0x47e465f7]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN10QPopupMenu17mouseReleaseEventEP11QMouseEvent+0x475)[0x47f473f5]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN7QWidget5eventEP6QEvent+0x3c5)[0x47e652d5]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN12QApplication14internalNotifyEP7QObjectP6QEvent+0x9b)[0x47dbf0fb]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x287)[0x47dc0757]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN9QETWidget19translateMouseEventEPK7_XEvent+0xf40)[0x47d578f0]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x5e6)[0x47d55a26]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN10QEventLoop13processEventsEj+0x4eb)[0x47d676ab]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN10QEventLoop9enterLoopEv+0x42)[0x47dd8672]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN10QEventLoop4execEv+0x26)[0x47dd8536]
/usr/lib/qt-3.3/lib/libqt-mt.so.3(_ZN12QApplication4execEv+0x1f)[0x47dbec0f]
/usr/local/fsl/lib/fslview/bin/fslview(main+0x1725)[0x80d3e07]
/lib/i686/nosegneg/libc.so.6(__libc_start_main+0xdc)[0x48453f2c]
/usr/local/fsl/lib/fslview/bin/fslview(_ZN6QFrame10paintEventEP11QPaintEvent+0x31)[0x80d2321]
======= Memory map: ========
00110000-00111000 rwxp 00110000 00:00 0
00111000-00292000 r-xp 00000000 fd:00 22088687 /usr/local/fsl/lib/fslview/lib/libvtkHybrid.so.5.0.0
00292000-002b2000 rwxp 00180000 fd:00 22088687 /usr/local/fsl/lib/fslview/lib/libvtkHybrid.so.5.0.0
002b2000-002b5000 rwxp 002b2000 00:00 0
002b5000-002c0000 r-xp 00000000 fd:00 22088668 /usr/local/fsl/lib/fslview/lib/libvtkftgl.so.5.0.0
002c0000-002c1000 rwxp 0000b000 fd:00 22088668 /usr/local/fsl/lib/fslview/lib/libvtkftgl.so.5.0.0
002c1000-0032e000 r-xp 00000000 fd:00 22088656 /usr/local/fsl/lib/fslview/lib/libvtkfreetype.so.5.0.0
0032e000-00335000 rwxp 0006d000 fd:00 22088656 /usr/local/fsl/lib/fslview/lib/libvtkfreetype.so.5.0.0
00335000-0039d000 r-xp 00000000 fd:00 19927552 /usr/lib/libGL.so.1.2
0039d000-003a0000 rwxp 00067000 fd:00 19927552 /usr/lib/libGL.so.1.2
003a0000-003a2000 rwxp 003a0000 00:00 0
003a2000-003d8000 r-xp 00000000 fd:00 22088681 /usr/local/fsl/lib/fslview/lib/libvtksys.so.5.0.0
003d8000-003d9000 rwxp 00035000 fd:00 22088681 /usr/local/fsl/lib/fslview/lib/libvtksys.so.5.0.0
003d9000-00414000 r-xp 00000000 fd:00 22088700 /usr/local/fsl/lib/fslview/lib/libvtkDICOMParser.so.5.0.0
00414000-00415000 rwxp 0003b000 fd:00 22088700 /usr/local/fsl/lib/fslview/lib/libvtkDICOMParser.so.5.0.0
00415000-0043c000 r-xp 00000000 fd:00 22088706 /usr/local/fsl/lib/fslview/lib/libvtkpng.so.5.0.0
0043c000-0043d000 rwxp 00026000 fd:00 22088706 /usr/local/fsl/lib/fslview/lib/libvtkpng.so.5.0.0
0043d000-0043e000 rwxp 0043d000 00:00 0
0043e000-0048a000 r-xp 00000000 fd:00 22088702 /usr/local/fsl/lib/fslview/lib/libvtktiff.so.5.0.0
0048a000-0048c000 rwxp 0004c000 fd:00 22088702 /usr/local/fsl/lib/fslview/lib/libvtktiff.so.5.0.0
0048c000-0049b000 r-xp 00000000 fd:00 22088659 /usr/local/fsl/lib/fslview/lib/libvtkzlib.so.5.0.0
0049b000-0049d000 rwxp 0000e000 fd:00 22088659 /usr/local/fsl/lib/fslview/lib/libvtkzlib.so.5.0.0
0049d000-004c4000 r-xp 00000000 fd:00 22088658 /usr/local/fsl/lib/fslview/lib/libvtkexoIIc.so.5.0.0
004c4000-004c5000 rwxp 00027000 fd:00 22088658 /usr/local/fsl/lib/fslview/lib/libvtkexoIIc.so.5.0.0
004c5000-004ca000 rwxp 004c5000 00:00 0
004ca000-004cf000 r-xs 00000000 fd:00 13501072 /var/cache/fontconfig/beeeeb3dfe132a8a0633a017c99ce0c0-x86.cache-2
004cf000-004d1000 r-xs 00000000 fd:00 13500785 /var/cache/fontconfig/e3ead4b767b8819993a6fa3ae306afa9-x86.cache-2
004d1000-004d5000 r-xs 00000000 fd:00 13501304 /var/cache/fontconfig/a3ef620b97f3ad86e0ccce6d4afaa4cc-x86.cache-2
004d5000-004db000 r-xs 00000000 fd:00 13500698 /var/cache/fontconfig/b79f3aaa7d385a141ab53ec885cc22a8-x86.cache-2
004db000-004dd000 r-xs 00000000 fd:00 13500470 /var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-x86.cache-2
004dd000-004f2000 r-xp 00000000 fd:00 20218846 /usr/lib/qt-3.3/plugins/styles/bluecurve.so
004f2000-004f3000 rwxp 00015000 fd:00 20218846 /usr/lib/qt-3.3/plugins/styles/bluecurve.so
004f3000-004f7000 r-xp 00000000 fd:00 20250627 /usr/lib/qt-3.3/plugins/inputmethods/libqimsw-none.so
004f7000-004f8000 rwxp 00003000 fd:00 20250627 /usr/lib/qt-3.3/plugins/inputmethods/libqimsw-none.so
004f8000-00502000 r-xp 00000000 fd:00 20250629 /usr/lib/qt-3.3/plugins/inputmethods/libqxim.so
00502000-00503000 rwxp 0000a000 fd:00 20250629 /usr/lib/qt-3.3/plugins/inputmethods/libqxim.so
00503000-0050a000 r-xs 00000000 fd:00 19989315 /usr/lib/gconv/gconv-modules.cache
0050a000-0050b000 r-xp 01046000 fd:00 19927550 /usr/lib/locale/locale-archive
0050b000-0050c000 r-xp 01047000 fd:00 19927550 /usr/lib/locale/locale-archive
0050c000-0050d000 r-xp 02a54000 fd:00 19927550 /usr/lib/locale/locale-archive
0050d000-00516000/usr/local/fsl/bin/fslview: line 6:3507 Aborted ${FSLDIR}/lib/fslview/bin/fslview $@
[user@acer ~]$