Our virtual home

RSS Bandit and the 100% CPU issue

Today I could track down an annoying issue: on some installations of the newer version of RSS Bandit (starting with the first betas of 1.5.0.x) it starts using 100% CPU time on a thread. As we started also to use lucene.NET with this new release I guessed it was a related issue, I was right. But as we run into multiple issues with lucene it was not obvious as a separate problem. So here it is:

We used a slightly modified version of lucene.NET to include the available language dependent analyzers and stopword filters. Before we released, I already fixed some obvious issues I got with e.g. french stemmer. Now we got more with the CJK (Japanese/Korean, bug report) and possibly Chinese analyzers. It looks like it get into a state it never returns. The attached debug callstack was very helpful to got the direction to search for! I found this: TextReader.Read(char[], int, int) was called and the return value checked against -1 only, not against 0 (zero). So I run over all analyzers to find all the places I have to change that code and here it is: the modified lucene.net.dll (zipped, 142K).

To all users that run into the problem: can you test the modification, please? Just download, unzip into the installation folder, restart Bandit. Please report here (or as comments to the bug reports mentioned above) if it help - so we can refresh the installer for the major public.

» Similar Posts

  1. More to know about .NET Timers
  2. How to prevent the configuration file watcher thread in Microsoft Enterprise Library 3.1
  3. Strange XSL Transform Exception - figured out

» Comments

  • Chris Bennett avatar

    I had noticed a delay when clicking on different feeds when I installed the beta & the distribution.The new DLL seems to have fixed this.Thx

    Chris Bennett — März 7, 2007 12:47
  • yakpas avatar

    Hi,I'm French user.I've used the new dll and doesn't work. Rssbandit.exe uses always 48% CPU when is in the systray...My CPU PIV 3.4Ghz with HT and 1GB RAM.yakpas |_| ifrance com

    yakpas — März 7, 2007 2:04
  • yakpas avatar

    I want to add that recently the same problem is arrived on 1.3.042

    yakpas — März 7, 2007 5:04
  • Bennett Yip avatar

    I'm a Chinese User. The dll seems to fixed the problem with with Traditional Chinese, Simplified Chinese, Japanese and Korean.The following RSS URL always contains multiple languages, they may be used for your test:Sun Bloggers - blogs.sun.com/.../rssMSDN Blogs - http://blogs.msdn.com/MainFeed.aspx?Type=AllBlogsThx.

    Bennett Yip — März 7, 2007 8:34
  • TorstenR avatar

    yakpas: this must be another issue with 1.3.0.42, because lucene usage is introduced only with the 1.5.0.x versions.Bennett: thanks for the links!

    TorstenR — März 8, 2007 3:59
  • yakpas avatar

    Hi TorstenR,Yes it seems to be another problem.I can reproduce it on two differents computers, another is PIV 2.6Ghz, 1.5GB Ram.I can send you my opml file, if you want.

    yakpas — März 8, 2007 4:47
  • Anonymous avatar

    Torsten,Since I installed the new lucene DLL I am now getting the attached error - (not on the first day, but since the second day of usage) - note that I had the 100% problem, but it appeared to go away with the .10 release itself.General InformationRSS Bandit 1.5.0.10OS Version: Microsoft Windows NT 5.1.2600.0OS-Culture: en-USFramework Version: .NET CLR v1.1.4322Thread-Culture: en-GBUI-Culture: en-USAdditonal Info:ExceptionManager.MachineName: <<deleted>>ExceptionManager.TimeStamp: 08/03/2007 14:51:08ExceptionManager.FullName: Microsoft.ApplicationBlocks.ExceptionManagement, Version=1.0.1521.25102, Culture=neutral, PublicKeyToken=nullExceptionManager.AppDomainName: RSSBandit.exeExceptionManager.ThreadIdentity: ExceptionManager.WindowsIdentity: <<deleted>>Exception InformationRssBandit.BanditApplicationException: Unexpected InvalidOperationException on SaveApplicationState() ---> System.InvalidOperationException: Index is closed at NewsComponents.Search.LuceneIndexModifier.AssureOpen() at NewsComponents.Search.LuceneIndexModifier.Flush() at NewsComponents.Search.LuceneSearch.PerformPendingIndexOperations() at RssBandit.RssBanditApplication.SaveApplicationState() --- End of inner exception stack trace ---================= End Entry =================

    Anonymous — März 8, 2007 9:56
  • TorstenR avatar

    yakpas (and unknown with the exception report): can you please have a look for similar problem reports at http://dev.rssbandit.org (Bugs) and attach the new information(s) or open a new issue, please? Thanks!

    TorstenR — März 8, 2007 10:49
  • mariani_andrea@despammed.com (Andreas) avatar

    Now it's working smoothly. I installed RSSBandit today for the first time and I thought that it was an excellent program before getting into this cpu trouble, then I found this feed and I immediatly followed the instructions and the Bandit now is simply great. Great aggregator, wonderful team! Thanks, you made my life easier ;)

    mariani_andrea@despammed.com (Andreas) — März 14, 2007 1:43
  • yakpas avatar

    Hi Torsten,How I can send you my opml file ?I can't use my favourite rss program.... I'm very sad... and my thread is without answer...Yakpas :-)

    yakpas — März 26, 2007 2:55
  • TorstenR avatar

    Yakpas: open a new issue or select the appropriate an attach the opml (zipped) at http://dev.rssbandit.org (sourceforge), please.

    TorstenR — März 27, 2007 3:01
  • yakpas avatar

    Ok done ![ 1689841 ] 100% CPU usage, too more feeds ?

    yakpas — März 28, 2007 10:10
  • Dwayne Melancon avatar

    I was noticing max CPU on every startup, and this new lucene seems to have corrected that.Thanks.

    Dwayne Melancon — April 11, 2007 10:37
  • Otty avatar

    Thanks for information end very interesting Website. Bye.

    Otty — April 12, 2007 5:26
  • yakpas avatar

    Hello TorstenR,Have you reproduced my problem ?I've added the file that you've asked, but it is always not assigned.[ 1689841 ] 100% CPU usage, too more feeds ? Sorry, Bandit miss me. Now, I can't use it.

    yakpas — April 12, 2007 8:03
  • TorstenR avatar

    yakpas: sorry, but I was out of office (and home) over easter and had no time yet to look into the issue. But I will do so hopefully next week.

    TorstenR — April 12, 2007 11:54
  • yakpas avatar

    sorry, sorry....you have time before you.... it will be my turn to be on vacation in 8 days ;-)

    yakpas — April 13, 2007 7:42
  • Luis Soares avatar

    I am a Brazilian user. Just replaced the required DLL today and the problem is gone. Thanks a lot.

    Luis Soares — April 20, 2007 10:59
  • anonymous avatar

    TEST

    anonymous — Mai 18, 2007 11:55
  • 结婚礼物 avatar

    thanks!

    结婚礼物 — Juni 14, 2007 11:19
  • ChrisTorng avatar

    Traditional Chinese, it works great! Thank you.

    ChrisTorng — August 20, 2007 10:06
  • runescape avatar

    very good,thanks for your article

    runescape — September 30, 2007 6:22
  • Comments are closed