crossz

Archive for the ‘bug’ Category

放弃在Mac 10.5.7 上安装GNUstep 0.23

In bug, mac, tip on July 12, 2009 at 10:26 am

经过大半个星期的下班时间调试,尝试在Mac osx 10.5.7 (darwin 9.7)上安装GNUstep 0.23,最终没有成功,还把Mac弄残一次,我猜可能是由于compiling的时候出现的segmentation fault致使Kernel Panic。

总结失败教训如下:
  1. make的时候,常常是需要 $LDFLAG 比用到 $DYLD_LIBRARY_PATH 的时候多。后者貌似更像是运行程序的时候使用,而不是configure和make时候用。
  2. Mac作为操作系统,其界面无可争议,但是底层系统方面,我个人觉得还不如Linux。在最近的console下编译程序的时候,出现两次致使Mac不断重启的情况,而解决方法都是不得不重装系统后,第二次更离谱,连cmd+s的single user mode都无法进入。Mac啊,现在给我的感觉是典型的外强中干。
  3. GNUstep需要有gnu的objc runtime,如果用默认的设置,必然使得其调用mac自带的gcc和objc的库,这样肯定会带来些兼容性的问题。 我猜我弄出的两次mac无法开机不断重启,与此两种不兼容并冲突的objc有关系。因为GNUstep在ubuntu 9.04和fedora 11下编译运行的很好。如果想在Mac上安装,我觉得还得是要等macports提供,macports跟进的还算不错,对gnustep,和官方新版本放出的时间也就差2个星期左右。可是,macports下的objc目前还不能安装,等到这个出现后,可以再试编译gnustep源文件。
以下是我用到的env设置:
#export LDFLAGS=’-L/usr/local/lib -L/usr/lib -L/opt/local/lib -L/sw/lib’
export LDFLAGS=’-L/opt/local/lib -L/sw/lib -L/usr/GNUstep/Local/Library/Libraries’
#export DYLD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/opt/local/lib:/sw/lib
export CPPFLAGS=’-I/opt/local/include -I/sw/include’
#export CFLAGS=’-I/usr/local/include -I/usr/include -I/opt/local/include -I/sw/include’
export PATH=/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sb:/usr/bin:/bin:/usr/sbin:/sbin
#. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
注:个人认为,在编译gnu的程序时,最好避免用到mac自带的一些命令。而且,最好在编译之前,把/usr/bin/gcc改成是 /opt/local/bin/gcc-mp-4.2这样的,以防止避免gnu和mac的程序冲突。

BUG: GNUstep Project Center can not generate the conf for ‘MAIN_MODEL_FILE’

In bug on July 4, 2009 at 5:12 pm

GNUstep Project Center (0.5.0) can not generate the conf for ‘MAIN_MODEL_FILE’, therefore, to make the GUI (gorm style) work, put corresponding configuration in the ‘GNUmakefile’. Like the following:

#
# Main application
#

PACKAGE_NAME=SimpleApp

APP_NAME=SimpleApp
SimpleApp_MAIN_MODEL_FILE=MainMenu.gorm

BUG: eclipse starts with empty dialog

In bug, linux on June 13, 2009 at 5:01 pm

Fix:

sudo apt-get install xulrunner
( sudo yum reinstall xulrunner on fedora)

append to eclipse.ini
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner/xulrunner

voila!!!

BUG: Videos are twisted in Feodar 11 first week

In bug, linux on June 11, 2009 at 12:24 pm

Many users are already aware from coverage in the press that significant changes have recently been made to the driver for Intel graphics adapters (and the supporting code in Mesa/DRI and the kernel), and that these have caused some functionality regressions. If you are suffering from problems with an Intel graphics adapter such as failure of X to start at all, hangs or freezes or crashes in the graphical environment, display corruption, failure of 3D accelerated applications to work properly or similar problems, and your issue is not specifically covered elsewhere on this page, the following general advice may be of use.

1) Several such issues may be worked around by disabling kernel mode setting. To do this, add

nomodeset

as a kernel parameter. If this solves your problem, please check whether a bug has already been reported for it, and if not, file a new bug report on the xorg-x11-drv-intel component, explaining your symptoms, and providing all the usual information required for X.org bug reports. In future kernel mode setting will be the only available method, and so we wish to ensure all problems caused by kernel mode setting are fixed.

From: http://fedoraproject.org/wiki/Common_F11_bugs#Miscellaneous_problems_with_Intel_graphics_adapters

2) when ‘nomodeset’ was appened in the kernel line, it seems some visualization functions were affected, such as mp4 files can not played and mp3 files can not played with MOVIE PLAYER, which use some visualization graphic when music is playing. The symptoms are same, the video/audio will be closed or you will be logged out directly.

To fix this, the video driver of VESA should replace the default INTEL driver in system-config-display.

HOWTO: firefox cannot save username & password on hotmail.com

In bug, howto on April 24, 2009 at 12:17 pm

If it just happens on that site try clearing the hotmail cookies. Select Tools > Options > Privacy – In the Cookies section click “Show Cookies…” to access the option for removing cookies.

If you can not use the “remember me” option on other sites as well, a likely cause is the file that stores cookies is corrupt. To test this close Firefox, go to your profile folder and rename cookies.sqlite to cookies.tmp
Restart Firefox, log into those sites and then see if it remembers the logins.

Also make sure that cookies are being accepted and not being deleted when Firefox closes. Go to Tools > Options > Privacy, on that dialog you can make sure that cookies are being accepted, then in the private data section make sure that Firefox is not set to delete cookies when Firefox closes. Also click on the Exceptions button in the cookies section to make sure cookies from those sites are not being blocked.

Next check any internet security software to make sure it is not blocking or deleting cookies. Some internet security software has privacy options that can block or delete cookies.

BUG: f-spot uploading photos to flickr

In bug, linux on April 13, 2009 at 9:33 pm

F-spot will suspend when uploading photos to flickr.

Fix:
===========
sudo ifconfig wlan0 mtu 1450
then try to upload again.
Where MTU = Maximum transmission unit

====================
TWEAKING MTU SETTINGS

As you become more experienced with Linux you maybe want to fine tune your internet connection settings . . . . .

The default of 1460 bytes per packet can vary with the connection, distro or hardware you have.
On some systems you can have better results with low MTU settings and some with high MTU settings, you will just have to see and try what works best for you.

Here is how you can change the MTU settings for your network interface:

First have a look on how the settings are now:


CODE
# ifconfig eth0

And you will get something similar to this:

QUOTE = ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:95:XX:XX:59
inet addr:10.0.0.152 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:29861 errors:0 dropped:0 overruns:0 frame:0
TX packets:26784 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6378900 (6.0 Mb) TX bytes:2889677 (2.7 Mb)
Interrupt:11 Base address:0xd400

Now we will test another setting ( MTU 1460 ):

CODE
# ifconfig eth0 mtu 1460

And see if you get better results . . . No ? Well, try again
CODE
# ifconfig eth0 mtu 1300

or

CODE
# ifconfig eth0 mtu 1200

Now imagine you found the value you want to make permanent: MTU 1250 , pull up the file “/etc/sysconfig/network-scripts/ifcfg-eth0″ and make it read:

QUOTE = /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
MTU=1250
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
METRIC=10

After the next boot the MTU settings will be on 1250

HOWTO: outer DIV can not cover element with FLOAT style

In bug, css, howto on March 31, 2009 at 12:03 am
Normally, all the content in the outer DIV will inherit the css styles from it, such as background.
But when the float style is used for inner tag, this part of content may come out of the outer DIV. Also, if you are using Firebug in Firefox, when your mouse is hovering on the outer DIV, the browser then will not cover all the parts inside the DIV.

All are because the FLOAT style.

In this article, Simple Clearing of Floats, 4 methods are intorduced to fix this ‘bug’, which appears in Firefox, Chrome, while not in IE, this did supprise me. Normally IE is more buggy in my opinion.

My favorite method is to append the outer style with ‘overflow:auto’. Then, the floated part will be covered by the outer DIV, no matter the background issue or the selection problem in Firebug.

See also: (other conflicts with some attributes)
text-align for normal div tag ( this will not work 100% in table with align attribute, this will be ignored) and align attribute for table: here


style of marquee in div ( style of div will not work 100%)

IE CSS: texts display incompletely

In bug, css on March 16, 2009 at 6:58 pm
Some texts, huge ones, bigger than 20px, especially link (<a>), will not display completely in IE. Always missing the top part of the characters.

Why?
===========
1) This just happens when the texts are embedded in ‘table’, while no problem with ‘div’.

2) Not the problem of the height of ‘tr’. No matter how you change it, it will not fix it.

3) The real reason is the ‘line-height’, which normally declared in ‘body’ part.

Fix:
===========
in the specific table, to use class or ID to select the table you want to modify, add ‘line-height’, make it 10%-15% bigger than that declared in body part.

This variable is just like the line space we always use in OFFICE WORD, normally I set it to 1.5, to make it look comfortable.

Eclipse hangs on exit in Ubuntu 8.10

In bug on March 12, 2009 at 3:46 pm
Since installing Intrepid, my Eclipse session hangs on exit. All windows close normally but the process doesn’t die.

A bug that describe the problem and a workaround

https://bugs.eclipse.org/bugs/show_bug.cgi?id=240033

Solution:
================
“I confirm that switching off the “Assistive Technologies” ((GNOME) Menu ->
System -> Preferences -> Assistive Technologies -> checkbox “Enable Assistive
Technologies”) is a good workaround for this problem.”

Eclipse hangs on exit in Ubuntu 8.10

In bug on March 12, 2009 at 3:46 pm
Since installing Intrepid, my Eclipse session hangs on exit. All windows close normally but the process doesn’t die.

A bug that describe the problem and a workaround

https://bugs.eclipse.org/bugs/show_bug.cgi?id=240033

Solution:
================
“I confirm that switching off the “Assistive Technologies” ((GNOME) Menu ->
System -> Preferences -> Assistive Technologies -> checkbox “Enable Assistive
Technologies”) is a good workaround for this problem.”

Profiler for Eclipse Java Development Tool

In bug, java on March 7, 2009 at 1:44 am

TPTP, as java profiler for eclipse, so far version 4.5.2, still relies on very old gcc, libstdc++2.10-glibc2.2.
To solve this, compat-libstdc++ should be installed for the compatibility.

To get more statistics result, besides TPTP project, try to install more modules, such as trace, logging tools etc.

Note:
=============
1) For Ubuntu, the above gcc binary is not available in the repository any more. But google it will find some downloads: http://packages.ubuntu.com/gutsy/i386/libstdc++2.10-glibc2.2/download

2) For Ubuntu, Tptp also using java 1.5 to capture the jvm information. If got error message like : “ERROR: JVMPI, an experimental interface, is no longer supported.”. The fix is:
Go to eclipse/plugins/org.eclipse.tptp.platform.ac.linux_ia32_4.4.1.v200808290100/agent_controller/bin, and edit the files ACStart.sh, ACStop.sh. In first line, when it says #!/bin/sh, it should say #!/bin/bash.
Otherwise, just use ‘netbeans’ to profile your java programs :)

Pidgin 在windows下显示中文

In bug on March 5, 2009 at 6:07 pm

如果安装英文版, 在pidgin(2.5)中修改各项参数很难使其能够正确显示中文的信息内容.

解决方法很简单,其实只要安装中文版的pidgin就可以;但是,进来发现pidgin不提供多语言选项.
所以,要设置环境变量:
环境变量可以在 [控制面板]=>[系统]=>[高级]=>[环境变量]里设置:
加入环境变量 PIDGINLANG=zh_CN

Ubuntu smb.conf, supporting ‘net usershare’=nautilus-share

In bug, linux on December 1, 2008 at 5:30 pm

[global]
usershare owner only = False
workgroup = workgroup
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
encrypt passwords = no
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
security = share
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[test]
path = /home/cross/test
writeable = yes
; browseable = yes
guest ok = yes

BUGS: Samba shares

In bug on November 28, 2008 at 12:57 pm

there are two type of share,
1) traditional way, GUI: system-config-samba.
2) nautilus-share, right click the folder you want to share, which is default in ubuntu. this need a line ‘usershare owner only = False’ to put into the global section in smb.conf, sometimes, ‘usershare allow guests = yes’ is also needed. This is working on the command of ‘net usershare’.

1) system-config-samba will modify smb.conf; while 2) nautilus-share, using ‘net usershare’ will not change smb.conf. So these are different ways for sharing.

In Ubuntu, no matter what method you use, both works fine. But fedora, so far, only 1) works, while 2) always saying “‘net usershare’ returned error 255: net usershare: usershares are currently disabled”.

The music players for Ipod in Linux

In bug, linux on October 23, 2008 at 3:53 pm

A little bit jealous of Mac users, because those stupid people have a smart itune.
Compared with clever us, linux users, we have to confront the bloody true world.

Here are my favorite music players. So far, none of them can be called perfect.

1. Rhythmbox 0.11.6
As a ‘music’ player supporting podcasting, for audio ones, it works very very well, just like itune, the episodes can be marked new or old. super!
And support Chinese characters.
But it can not do the right things of video podcast transferring to ipod, even though it can play video now using visualization.

2. Banshee 1.4
Almost can do everything, including video podcast transfering to ipod, and a sync button.
But 1) not support transferring music or videos with Chinese file name correctly. Yes, you can transfer them, but when you reconnect ipod, most of the songs in ipod can not be recognized. Maybe the database in ipod is destroyed by the Chinese characters; Except everytime you re-sync your music library in ipod.
And 2) Doesn’t mark the item is new or listened. (compared with Rhythmbox and amarok)

3. Songbird 1.0
Great products and ideas from mozilla. In the current 0.70 version, the synchronaztion works. (add something to tell ipod the item is video, so ipod nano 3rd gen will not see and hear any video podcasts)
And support Chinese characters.
But it has same shortcoming with firefox 1) too much memory usage, because of internal web engine embeded. 2) Without new/old marks in Ipod. Also, 3) It can not watch folders, but this feature is coming in half of year, feb 2009. 4) Very weak functionality for podcasting.

4. Amarok
Mark new or old, video podcasting and transfering, supporint Chinese characters. Only missing the sync button, but it can add the new podcast episodes to a queue, which collects all the items are waiting for transferring to ipod.
But 1) No sync button, have to manually sync each playlist, transfer episode and delete old episodes. 2) Very odd KDE interface and menu, difficult to find the right place to show what’s in ipod libary and how to transfer or sync.

ATI brings white screen on Ubuntu Hardy

In bug on July 23, 2008 at 10:27 am
1. EnvyNG for ATI driver

When switch on desktop effect, it will bring white screen, which hide all the GUI.

$ modprobe fglrx
will get rid of the white screen, but desktop effect can not work.

2. ATI driver from restricted driver.
No white screen, but crash in some minutes after switching on the desktop effect

Sigh!!

http://ge.ubuntuforums.com/showthread.php?s=62e322f49a76f15390544fcaeee98436&t=714034&page=5

ATI brings white screen on Ubuntu Hardy

In bug on July 23, 2008 at 10:27 am
1. EnvyNG for ATI driver

When switch on desktop effect, it will bring white screen, which hide all the GUI.

$ modprobe fglrx
will get rid of the white screen, but desktop effect can not work.

2. ATI driver from restricted driver.
No white screen, but crash in some minutes after switching on the desktop effect

Sigh!!

http://ge.ubuntuforums.com/showthread.php?s=62e322f49a76f15390544fcaeee98436&t=714034&page=5

Matlab bugs about call external programs, such as Python

In bug, linux, matlab on May 7, 2008 at 3:07 pm
When I upgrade my OS to Ubuntu 8.04 and Matlab to Matlab 2008a, which is a fantastic version with a lot of optimizations and bug fixes.

But when I run my Matlab scripts, which using [system('python temp4python.py')] to do more system level jobs, I was prompted such a error message I’ve never seen before:/usr/local/matlab/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.9′ not found (required by……

Why?
This similar message (or something like it) means that the loader is
linking to the versions of libstdc++ libraries supplied with Matlab,
and those versions do not correspond to the versions that your version
of Python was compiled against.

The fix!
(for me) was to navigate to the offending folder (/usr/local/matlab/sys/os/glnx86)
and make a new directory “old”, and move all libstdc and libgcc files
into the “old” directory. Once done, the loader will be unable to link
with these libraries, and will be forced to use the ones installed in
your distribution instead.

Matlab bugs about call external programs, such as Python

In bug, linux, matlab on May 7, 2008 at 3:07 pm
When I upgrade my OS to Ubuntu 8.04 and Matlab to Matlab 2008a, which is a fantastic version with a lot of optimizations and bug fixes.

But when I run my Matlab scripts, which using [system('python temp4python.py')] to do more system level jobs, I was prompted such a error message I’ve never seen before:/usr/local/matlab/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.9′ not found (required by……

Why?
This similar message (or something like it) means that the loader is
linking to the versions of libstdc++ libraries supplied with Matlab,
and those versions do not correspond to the versions that your version
of Python was compiled against.

The fix!
(for me) was to navigate to the offending folder (/usr/local/matlab/sys/os/glnx86)
and make a new directory “old”, and move all libstdc and libgcc files
into the “old” directory. Once done, the loader will be unable to link
with these libraries, and will be forced to use the ones installed in
your distribution instead.

ID3 Tag problem with Rhythmbox:: Linux Music Player

In bug, linux on May 5, 2008 at 12:25 pm
Compared with famous Amarok, I prefer to Rhythmbox, which keeps Gnome features, such as, simple interface, plugins supports.

But when playing with music players between Windows and Linux, I found it seems two kinds of ID tags were used.

1) In Windows, I can modify the tags with Foobar2000 easily. But in Explore, some of the tags of some mp3 are not available. Does this mean there are two kinds of or versions of ID tag are used?

2)
2.1) In Linux, this is more weird. From file property-&gt;Audio tab, we can get some tag info of this mp3 file, But sometime it’s different from showing in Rhythmbox and Amarok. Does this also mean two kinds of or versions of ID tag are used? Similar bugs are reported such as https://bugs.launchpad.net/ubuntu/+source/easytag/+bug/120538.

2.2) Some mp3’s ID tag is not allowed to modify using Rhythmbox (but such mp3 files can be modified previously, this is quite weird, but after some operation, they becomes not allowed to modify). In this case, you can solve this problem by adding a mp3 file, which you can modify its ID tag, and those mp3 files you can not modify to a same playlist. Start from the file you can modify by right clicking-&gt;property to modify, then goto others, in this way, all ID tags can be modified. However all these modified information stored in another places, not in the file property -&gt;Audio tab ( in Nautilus, not in Rhythmbox). So I do think there are two types or versions of mp3 ID tag are used.

Solutions:
=====================
Install Foobar2000 in wine. Add those weird mp3 files into foobar playlist, select them then righ click to TAGGING, here you can select what kind of ID TAG you want to use on those mp3 files.

Foobar in Wine just can change the typge of ID TAG, while not modify the content of ID TAG, which will be availabe to be modified after foobar processing.

iphone passwd change from alpine to anything

In bug, howto, iphone on April 21, 2008 at 9:42 pm
passwd, this command not work properly in iphone (currently 1.1.4), it will cause endless loop, you must restore the system using itune. So this is the way how to change it.

Login to your iPhone using SSH, or use the Terminal Application, type vi /etc/master.passwd, and look for this line :

root:YOUROUTPUTHERE:0:0::0:0:System Administrator:/var/root:/bin/sh

Replace the content immediately after the root: with the output from that command we used early on. Done, password changed.
Maybe do the same for the mobile User, which is also a line in the same file.

NOTE:
Someone mailed me and stated that the above method did not work for him at all. Quite the opposite, he had to reinstall his Firmware again. Annoying. According to him, the
following snipped to generate the Password Hash worked fine.

openssl passwd -crypt -salt /s myNewPasswd

Personally right now i don’t have another iPhone to try this on, but i think i should still mention his method here.

from: http://www.overridersworld.com/?p=74
=================================

Some discussion:
Before I tested your method I wanted to make sure the output with the default pw ‘alpine’ would be equal to the crypted pw in mast.passwd.

master.passwd: /smx7MYTQIi2M

Perl method:
perl -e ‘print crypt(”alpine”, “XX”).”\n”‘
XXCLVpuFl/zmI

hmm…

OpenSSL method:
openssl passwd -crypt -salt /s djsr71bb
/smx7MYTQIi2M

So the OpenSSL provided the correct output.
I have now changed the pw to my own pw and everything works fine.
So I guess the perl method would not have worked with me.

Vista sp1 installed in Virtualbox on Ubuntu

In bug, linux on April 14, 2008 at 5:00 pm

Install the VirtualBox Additions

From the Devices menu, click “Install Guest Additions”

Get the Missing Network Driver

Microsoft decided to not include the network driver that VirtualBox
uses in Vista, so you will have to install it yourself. (Doesn’t
Microsoft claim that Windows has better driver support than Linux
….. ?)

cd ~/install_fileswget http://www.amd.com/us-en/assets/content_type/utilities/V4.51.zipunzip V4.51.zip -d drivermkisofs -o driver.iso -R -J driver

In the VirtualBox window, mount driver.iso . Then go to:

Control Panel &gt; Hardware and Sound &gt; Device Manager. Right click
on Ethernet Controller &gt; Update Driver Software &gt; Browser my
computer…

Navigate to the CDROM drive, and click ok.

Wait a minute… and congratulations, you have installed Vista

Vista sp1 installed in Virtualbox on Ubuntu

In bug, linux on April 14, 2008 at 5:00 pm

Install the VirtualBox Additions

From the Devices menu, click “Install Guest Additions”

Get the Missing Network Driver

Microsoft decided to not include the network driver that VirtualBox
uses in Vista, so you will have to install it yourself. (Doesn’t
Microsoft claim that Windows has better driver support than Linux
….. ?)

cd ~/install_fileswget http://www.amd.com/us-en/assets/content_type/utilities/V4.51.zipunzip V4.51.zip -d drivermkisofs -o driver.iso -R -J driver

In the VirtualBox window, mount driver.iso . Then go to:

Control Panel &gt; Hardware and Sound &gt; Device Manager. Right click
on Ethernet Controller &gt; Update Driver Software &gt; Browser my
computer…

Navigate to the CDROM drive, and click ok.

Wait a minute… and congratulations, you have installed Vista

ubuntu add printer

In bug, linux on February 12, 2008 at 7:36 pm

Now if you want to add a printer, you must come here.
http://localhost:631
Because, the GUI for printer installation in Ubuntu using current user while not root, so no way to pass the authorization check. The web UI can put in root user and password, so it’s better.

Another issue is that the default setting of Ubuntu have no root password, so
sudo passwd
to create a password for the Unix system. Then when you add printer from the web UI, it will work.