Page MenuHomePhabricator

Huge memory leak (version 2.1.20)
Closed, ResolvedPublic

Description

Author: Mike.Rosoft

Description:
Huggle configuration

When I run Huggle, its memory usage quickly (sometimes immediately, in other cases after a couple of minutes of) increases in an extreme manner: first to about 800 MB, then to the rest of available memory (over 1.5 GB), causing the system to hang. (I tried deleting the en.wikipedia whitelist, but this only fixed the bug for a while if at all.)


Version: 2.1.19
Severity: normal

Attached:

Details

Reference
bz49054

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:42 AM
bzimport added a project: Huggle.
bzimport set Reference to bz49054.

Mike.Rosoft wrote:

I have attempted to run Huggle on my other computer (the previous report occurred on my notebook). This time, Huggle didn't cause the whole system to hang, but the application itself did hang; after a few seconds it crashed with OutOfMemoryException.

OutOfMemoryException: Byla vyvolána výjimka typu System.OutOfMemoryException.

v System.String.InternalSubString(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
v System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
v Huggle.Misc.HtmlToWikiText(String Text)
v Huggle.Processing.ProcessDiff(Edit Edit, String DiffText, BrowserTab Tab)
v Huggle.Requests.DiffRequest.Done()
v Huggle.Requests.Request.ThreadDone()
v Huggle.Misc.CallbackInvoke(Object TargetObject)

Should be fixed in this revision https://github.com/huggle/huggle/commit/8e32c339a64b389696852f3ab46cfc7063ecb0ad

Not sure if this is the best fix but It will do to allow people to actually use huggle.

I will make a new release soon!