Page 1 of 1
[Solved] ITT: 11.90.0215 sometimes hanging with 90+% CPU
Posted: 19 Jan 2013 22:09
by Borut
Hmmm... Sorry. Do not shoot the messenger...
I open ITT with my target language. I write something into filter. Filter does the job as expected. Then I click on one of the filtered strings...
That results in a hang with 90+% CPU, without requested string ever being positioned in the editing area. I have to kill the process.
I am appending the current .lng (here named XXX.lng) for debugging purposes. Also, my entry into the ITT filter is ime i dim which brings up two strings.
Hope this helps and is reproducible - it is definitely reproducible at my place.
Re: ITT: 11.90.0215 sometimes hanging with 90+% CPU
Posted: 20 Jan 2013 10:19
by admin
Got it.
The cause was the last line in your LNG file. It is empty for some reason:
It should look like this:
Code: Select all
ms.2424=00|zoomed to <$dimensions>|--|zoomed to <$dimensions>
Whatever, the crash won't come anymore even if a line is empty.
Re: ITT: 11.90.0215 sometimes hanging with 90+% CPU
Posted: 20 Jan 2013 11:19
by Borut
Thank you!
I have done some forensics

- here are the facts:
I have no idea how this empty last line was brought to existence.
I now noticed that even in my last "official" version the last line apparently contains:

Seems a bit illegal to me.
A recent event "25" with French translation comes to ones mind!
I have not been using 3rd party tools with .lng for weeks (since my switch to UTF-8) - I have been using ITT exclusively. (Now I used an editor to bring the last line to what it should be.)
In my ITT work flow it happened a few times that I was typing in thinking I am typing in filter, but I was typing in the translation edit field - and vice versa. I also noted that there are situations when the translation edit field still has content, while no visible string is focused in the list (depending on filter inputs, display selections, ...). Maybe this is suboptimal when one is not concentrated or is tired.
I'll keep eyes wide open and inform you if anything like this happens again (=illegal last line produced).
Re: ITT: 11.90.0215 sometimes hanging with 90+% CPU
Posted: 20 Jan 2013 14:30
by Borut
It is absolutely crazy what is happening with the last line...
Open .lng in a third party editor, which is able to note the outside change of a file being edited. Position it to the end of .lng file.
In ITT click on the first string in the list (Language); in the edit field delete the last character of the language name; press ENTER; click on Save.
Go to your editor. Reload. What do you see? I see one character less at the end of the last line.
But, it can get even more interesting... If you now add the missing character of the language name in the ITT (the one you explicitly deleted before) and repeat, the missing character in the last line will reappear in the .lng file again too.
Good luck with this one Don!
Re: ITT: 11.90.0215 sometimes hanging with 90+% CPU
Posted: 20 Jan 2013 14:51
by admin
Confirmed. Crazy. Working on it.
Re: ITT: 11.90.0215 sometimes hanging with 90+% CPU
Posted: 20 Jan 2013 15:25
by admin
Got it!

Another very good bug, thanks! (Only could happen when writing data to UTF-8 files.)
Re: ITT: 11.90.0215 sometimes hanging with 90+% CPU
Posted: 20 Jan 2013 15:57
by Borut
admin wrote:(Only could happen when writing data to UTF-8 files.)
Oh, and I was myself thinking that it could do something with UTF-8, but forgot to mention the idea. Hopefully you did not forget that I am probably the only @%$!?& using UTF-8 for .lng, more or less just for fun.
Am really sorry to have spoiled your whole weekend. Thank you once more.
Re: ITT: 11.90.0215 sometimes hanging with 90+% CPU
Posted: 20 Jan 2013 17:18
by admin
spoiled? Bug squashing is my favorite pasttime -- it is totally relaxing!