Showing posts with label memory leak. Show all posts
Showing posts with label memory leak. Show all posts

Aug 11, 2017

The memoQ Web Search memory leak fix! (updated again)

A big thank you to Italian veterinary surgeon and translating colleague Claudio Porcellana, who solved the mystery of the memory leak which has plagued users of memoQ's Web Search for years now. While Kilgray developers busily work on alternative engines for fixing future versions, Dr. Porcellana used his head - as impatient Southern Europeans are wont to do.

The problem it seems is with troublesome Java applets on sites like Linguee. So he simply turned them off. And plugged the leak.

Kilgray currently uses an Internet Explorer component for memoQ Web Search, so here's the fix:
  1. Start Internet Explorer and open Internet options in the Settings:


     
  2. Go to the Security tab and click the Custom level button:


     
  3. Then find the Scripting section and disable the Java applets:


Leave Active scripting (= JavaScript, etc.) enabled or you will mess up the search for some sites like LEO.

After I made this change, I tested memoQ Web Search. Instead of the usual steady increase in memory consumption I used to observe due to the infamous leak, everything remained rock stable, and all my site searches that I typically use for legal and scientific translation worked just fine.

This fix ought to work with all versions of memoQ since the introduction of the web search feature (in memoQ 2013 R2 I think it was). So thank you, Dr. Porcellana, for making our working lives a little less crash-prone!

UPDATE: Further testing has revealed (as noted in some comments below) that there is more to the story. I was puzzled that some people continued to experience the memory leak unless "active scripting" was active, and at Varga's request I tested again on my system (I was sure up until then that his troubles might be tied to a Hungarian system, but it turns out that is in fact not the case). To9 my astonishment, the problem re-appeared after it had been eliminated before after disabling the Java applet scripting alone. I had to turn off "active scripting" too to achieve stability. And then suddenly the problem went away again.

Puzzling, right? And annoying of course. And then an idea occurred to me, and I dug up my Linguee user account password and logged in to Linguee under my user name. I contribute a lot of terms when I search in other browsers so I have a lot of credit, and this credit is applied as searches without ads.

It's the advertising. Some ads seem to involve Java applets. Other ads do buggy things with scripts that do not use applets. And some ads do neither of these two things and cause no trouble.

Maybe an ad blocker applied to Internet Explorer will fix the problem for memoQ Web search until the changeover to Chromium occurs in the next version. [No, it does not, alas.] In the meantime, I will achieve stability for today's big job by staying logged in to my Linguee account!

YET ANOTHER UPDATE: As advertisements and the like have been identified as the real source of trouble, one user suggested substituting the Windows hosts file. This approach has a number of advantages apparently; it presumably de-craps your Internet connection by blocking sites that send troublesome content, communicate with spyware, etc. A better hosts file with instructions for where to put it is found at: http://someonewhocares.org/hosts/

Substituted hosts file on my Windows 10 system; the old file was backed up by re-naming it.

May 23, 2017

Your working software tools as Xbox "games" in Windows 10!

For the last few days I have been away from the office, working from home on a relatively new laptop which doesn't have a lot of the software installed that I use on my main machine. Then today when I needed to make a screen recording to document a memory leak in one of my software tools, I was annoyed to realize that Camtasia wasn't installed on the laptop and I had to find some other means of video capture.

That was when I found out about the nice little video recording tool included in a somewhat obscure way with the Windows 10 operating system. When invoked for the first time in an application, such as memoQ, the Windows Task Manager or anything else, you'll be asked if the program you are running is a game. Lie and click Yes, this is a game.



The recording bar invoked with the Windows-G key looks like this:


Continuous recordings can be made for long periods of time, but the really cool feature of this recorder is that it can be set up to maintain a history of a defined period just passed and save this history as an MP4 video file.


The default is 30 seconds; in the screenshot above, the backward recording buffer is set to three minutes.

What good is this? Well, one thing you can do is record a retroactive video after the program you use crashes. This can then be submitted to support experts to help them figure out what went wrong, or you can review the recording yourself to see what was done.

The videos are stored in the default path for Videos in a folder named Captures:


A very boring example of this is shown below; it shows the activity in the Windows Task Manager as I launch various applications. The results showed me the steady increase in memory consumption by the memoQ Web Search feature (amounting to over several gigabites after perhaps 20 minutes, leading to crashes and/or other problems) versus exactly the same search in 5 tabs of Internet Explorer using IntelliWebSearch. The latter is rock stable in its memory use, causing no problems at all and offering much greater flexibility, which is why I strongly recommend this search productivity tool, which can be accessed from any Windows application.