Javacym / liblunar

Automatically exported from code.google.com/p/liblunar
1 stars 0 forks source link

内存占用的问题 #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
32 位系统,Fedora 12 + Xfce4.6.1

编译了 liblunar-2.2.4 和 liblunar-gtk-2.2.4,然后用 Xfce4-panel 
自带的
datetime 显示农历. 

一开始 Xfce4-panel 占用内存仅为 20M 左右,但是点击 datetime 
几次(点击
datetime 
图标或在弹出下拉框中点击某一日期)以及在弹出的下拉框中�
��几页,内存
占用都会急剧增加,附图是我在 datetime 
下拉框中点击了两次日期并翻了两页后的
截图,内存占用已超过 
220M,如果继续点击日期或翻页的话,内存占用还会继续增加.

以上问题也许只是特例?因周围没有其他同学使用 
liblunar,我也无从断定. 如果不
是特例的话,请开发者关注一下内存占用的问题. 谢谢~

最后感谢开发者的辛苦工作,跟我们带来了这一便利的函数��
�, Keep up the good work!

Original issue reported on code.google.com by Frogge...@gmail.com on 30 Mar 2010 at 9:59

Attachments:

GoogleCodeExporter commented 8 years ago
非常感谢,查了一下,问题主要在g_string_replace函数上,已经�
��了修改,不过暂时不会发布
新版本,如果你着急的话,可以先用这个patch自己编译使用。

Original comment by yet...@gmail.com on 30 Mar 2010 at 4:56

Attachments:

GoogleCodeExporter commented 8 years ago
十分感谢您的回复!

应用了您给出的 patch 
后,内存占用持续增加的问题已经没有了,现在 Xfce4-panel 
占用内存
一直稳定在20M左右.

不过应用上述 patch 后产生了新的问题:
点击 datetime 
的图标弹出日期下拉框,要隐藏该下拉框再次点击 datetime 
图标时,Xfce4-
panel 会产生闪烁. 如此进行多次,Xfce4-panel 会崩溃并消失.

不过这也不是什么大问题了,相信没几个人会一直不停得点��
� datetime 的图标:)

再次感谢您的回复,辛苦了~

Original comment by Frogge...@gmail.com on 31 Mar 2010 at 1:37

GoogleCodeExporter commented 8 years ago
对的,在linuxsir的讨论也表明,确实存在内存泄露问题
http://www.linuxsir.org/bbs/thread357462.html
我打上边的补丁试试看

Original comment by yafeng...@gmail.com on 28 May 2010 at 11:47

GoogleCodeExporter commented 8 years ago
liblunar-2.2.4应用补丁后,还是存在内存泄漏,期待新版本.

Original comment by yuanhui...@gmail.com on 1 Sep 2010 at 8:42

GoogleCodeExporter commented 8 years ago
试一下新版本吧
lunar-date-2.4.0 和
lunar-calendar-2.4.1(for gtk2),lunar-calendae-3.0.0(for gtk3)

Original comment by yet...@gmail.com on 7 May 2011 at 9:00