Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Encoding problem in 1.42.0.12
Yaro77
#1 Posted : Thursday, November 1, 2012 10:55:36 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/1/2012(UTC)
Posts: 6
Location: Russia

Hi, NCrunch is great, but... I have troubles with error messages in russian system.
It looks like Screenshot
SetUp : System.ArgumentNullException : Значение не может быть неопределенным.
Имя параметра: loggerFactory
в Sunflower.Ant.Model.Loader.ModelLoader..ctor(ModelLoaderSettings settings, ILoggerFactory loggerFactory) â C:\src\sun-flower\Ant\Src\Sunflower.Ant.Common\Model\Loader\ModelLoader.cs:ñòðîêà 32#0
в XmlPersistence.DataDescriptorCacheTests.TestInitialize() â C:\src\sun-flower\Ant\Src\Tests\UnitTests\XmlPersistence\DataDescriptorCacheTests.cs:ñòðîêà 27#1


russian text in stack trace is in wrong encoding
AND "SetUp : System.ArgumentNullException" string has another encoding (differ from callstack I guess, and seems to be utf-8) which displays wrong too.


My system: Windows7 Professional Russian 6.1.7601 Service Pack 1

Microsoft Visual Studio 2010 10.0.30319.1 Russian

Microsoft .NET Framework 4.0.30319 + Russian Lang pack

Test environment is NUnit 2.6.2.12296

Regards
Remco
#2 Posted : Thursday, November 1, 2012 9:36:10 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi,

Thanks for reporting this problem. The issue itself appears to be some kind of rendering problem inside the Richedit control used by NCrunch to display the test output. Although the data being stored in the control is correct, certain characters can cause it to show in a corrupted form.

As the problem is deeply lodged inside the control itself, I can as-yet find no feasible way to solve it without replacing the control entirely (which is a significant piece of work).

I'll continue to investigate, although I think a fix for this is quite a way out. You may be able to work around the problem using the following methods:
- Analyse stack traces using NCrunch's inline exception data
- Examine error details from failed tests using the processing queue (clumsy, but the text output here should not be impacted by this issue)
- Copy/paste the corrupted output from the tests window into another text editor (i.e. notepad), where the rendering issue won't exist and the text should be legible

Sorry that I can't provide a better fix at the moment.


Cheers,

Remco
Yaro77
#3 Posted : Tuesday, November 6, 2012 7:21:12 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/1/2012(UTC)
Posts: 6
Location: Russia

Thanx for reply.

Hope you will replace richedit in version 2
Yaro77
#4 Posted : Sunday, January 6, 2013 11:32:43 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/1/2012(UTC)
Posts: 6
Location: Russia

Strange behavior in version 1.43:
The problem of this topic remains, BUT in some cases exception message looks as it should be: http://goo.gl/4SWHu
Remco
#5 Posted : Sunday, January 6, 2013 9:21:19 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
I believe the problem is related to the characters being displayed. Certain localised characters (such as those used in a stack trace) cause the control to start behaving erratically. Interestingly, I haven't been able to reproduce the problem on Windows 8 - so I'm wondering if it might be platform specific. Which operating system are you running on?
Yaro77
#6 Posted : Wednesday, January 16, 2013 12:56:25 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/1/2012(UTC)
Posts: 6
Location: Russia

Remco;3496 wrote:
Which operating system are you running on?


My system: Windows7 Professional Russian 6.1.7601 Service Pack 1

Remco
#7 Posted : Wednesday, January 16, 2013 9:43:15 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Thanks. I'm wondering if this issue may be specific to Windows 7. I'll take another look to see if I can reproduce it there.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.051 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download