Welcome! Log In Create A New Profile

Advanced

Uncaught Exception : class std::runtime_error

Posted by Anonymous User 
Anonymous User
Uncaught Exception : class std::runtime_error
August 31, 2013 11:52AM
I recently got this Error message when starting the blocking engine.

Build Number : 41010100484
File: .\logproc.cpp
Line 1289
Type: class std::runtime_error
Message: bad locale name

I tried many ways to fix it, but nothing helps.
I even tried the solutions in the sticky topics.

Please somebody help me

Greetings BlackOne
fxm
Re: Uncaught Exception : class std::runtime_error
August 31, 2013 12:11PM
BlackOne Wrote:
-------------------------------------------------------

> Build Number : 41010100484

That is an old version of PeerBlock.
You may want to start by getting the current version.

> File: .\logproc.cpp
> Line 1289
> Type: class std::runtime_error
> Message: bad locale name

> I even tried the solutions in the sticky topics.

This combination of Type:+Message: has never been reported here before.
I don't know how helpful/effective the generic sticky for class std::runtime_error would be.
Anonymous User
Re: Uncaught Exception : class std::runtime_error
August 31, 2013 01:30PM
I am currently using the beta version. But the Error still occurs.
Re: Uncaught Exception : class std::runtime_error
August 31, 2013 02:18PM
avatar
attach your PB dmp and conf files and they may be able to spot the problem.




Life is like a box of chocolates................................umm chocolate, yummy grinning smiley
Anonymous User
Re: Uncaught Exception : class std::runtime_error
August 31, 2013 02:37PM
Here you have the conf and the log file, since i don't know where the dmp files are usually located.
I hope it helps to find a solution.

Thank you for the help.
Attachments:
open | download - peerblock.conf (6.1 KB)
open | download - peerblock.log (155.4 KB)
fxm
Re: Uncaught Exception : class std::runtime_error
August 31, 2013 06:45PM
BlackOne Wrote:
-------------------------------------------------------

> I am currently using the beta version.

I know.
The latest stable release (version 1.1.0.517/518) is newer.

And if I'm interpreting your .log file correctly, PB thinks you have downgraded to 484 from 517/518 or a later version.



Edited 1 time(s). Last edit at 08/31/2013 07:03PM by fxm.
Anonymous User
Re: Uncaught Exception : class std::runtime_error
August 31, 2013 07:21PM
I previously used version 518 which can be downloaded everywhere on the net.
Is the beta version usually updatable ? My currently installed version says, that there is no update available.
fxm
Re: Uncaught Exception : class std::runtime_error
August 31, 2013 08:05PM
BlackOne Wrote:
-------------------------------------------------------

> Is the beta version usually updatable ? My
> currently installed version says, that there is no
> update available.

The author made the odd choice to restrict beta installations to beta auto-updates only.
The 484 [beta] auto-update function can't "see" 517/518 [because it is non-beta].

> I previously used version 518

I would return to that if I were you.
If the "locale" error doesn't go away in the process, we can work on that with the knowledge that you have the latest PB.



Edited 1 time(s). Last edit at 09/29/2013 12:49PM by fxm.
Anonymous User
Re: Uncaught Exception : class std::runtime_error
August 31, 2013 08:52PM
Now I made a complete fresh installation of the version 518.
Nothing changes - the Error is still there.
fxm
Re: Uncaught Exception : class std::runtime_error
August 31, 2013 09:02PM
BlackOne Wrote:
-------------------------------------------------------

> Error is still there.

Please run systeminfo at the cmd line.
What locale does it report?



Edited 1 time(s). Last edit at 09/01/2013 05:47AM by fxm.
Anonymous User
Re: Uncaught Exception : class std::runtime_error
August 31, 2013 09:31PM
I'm not sure what you mean, because my OS is in german.
Maybe you mean this
System locale and input locale

It both says :
de;Deutsch (Deutschland)
Anonymous User
Re: Uncaught Exception : class std::runtime_error
August 31, 2013 09:46PM
Thank you for your help, but at my place it is already near midnight.
I will read your message tomorrow.

Greetings BlackOne
fxm
Re: Uncaught Exception : class std::runtime_error
September 01, 2013 06:54AM
BlackOne Wrote:
-------------------------------------------------------

> Maybe you mean this
> System locale

> de;Deutsch (Deutschland)

Looking at the PB GUI, does the large number in the first box have commas [xxx,xxx,xxx] or periods [xxx.xxx.xxx] ?



Edited 1 time(s). Last edit at 09/01/2013 11:39AM by fxm.
Anonymous User
Re: Uncaught Exception : class std::runtime_error
September 01, 2013 12:27PM
It shows nothing of both :
Blocking 1000000 IPs
fxm
Re: Uncaught Exception : class std::runtime_error
September 01, 2013 03:11PM
I have an idea of what is happening but, unfortunately, I'm not able to help you fix it.

I suspect that an exception occurs as PB is formatting the "Blocking ###" message [and probably other numbers]. If it weren't for that, you would probably be seeing ###.###.### IPs [where I see ###,###,## IPs],

The system locale you report [de;Deutsch (Deutschland) ] is not quite in the format that I would expect for a German language system, but I don't have one to compare. It looks close enough, however, so that I would expect a properly written program to canonicalize it correctly and isolate the primary language [de in this case]. Perhaps another user with a German Win7 system can comment.

To confirm my theory as to what is happening at line 1289 I would need the source code. It is freely available but I have never downloaded it. Even if I had it, however, it is not obvious that I could debug/correct it; PB intentionally uses vintage 2008 Visual C++ and related libraries. Perhaps someone familiar with the program internals [if any of them are still here] can investigate what there is about your locale that causes the "bad locale name" to be thrown.
Anonymous User
Re: Uncaught Exception : class std::runtime_error
September 01, 2013 06:16PM
I tried using AppLocale to change the locale manually to English, but the Error still ocurrs.
When I have time, I will download the source code via svn and catch the Exception as long there is no one who is able to solve this problem.

Thank you for your help

Greetings BlackOne
fxm
Re: Uncaught Exception : class std::runtime_error
September 01, 2013 10:46PM
BlackOne Wrote:
-------------------------------------------------------

> change the locale
> manually to English, but the Error still ocurrs.

Assuming that the change took effect [and you rebooted, if necessary] this is quite puzzling.

There would appear to be only two other likely cases: either
1. the set of valid locale names used by PB is broken
or
2. the "bad" locale is not the system locale [if that is the case I can't immediately suggest where it might be; I looked for a locale in the .conf file but did not see one, and it isn't easy to imagine what other file(s) would contain locale codes that PB parses on startup]
fxm
Re: Uncaught Exception : class std::runtime_error
September 02, 2013 11:05AM
fxm Wrote:

> 2. the "bad" locale is not the system locale

It appears that there is another player in the game: User Locale.
On your system I would expect that to be "de-DE" [or equivalent]; if it isn't, that may be the problem.
fxm
Re: Uncaught Exception : class std::runtime_error
September 02, 2013 12:22PM
BlackOne Wrote:
-------------------------------------------------------
> Now I made a complete fresh installation of the
> version 518.
> Nothing changes - the Error is still there.

Please post the message.
The Line number [needed for debugging] may be different in the current version.
Anonymous User
Re: Uncaught Exception : class std::runtime_error
September 06, 2013 07:43PM
I looked up in my Registry : HKEY_CURRENT_USER\Control Panel\International
And, I fixed it!
LocaleName : de
Changed LocaleName to de-DE

Thank you for your help.
fxm
Re: Uncaught Exception : class std::runtime_error
September 06, 2013 10:03PM
BlackOne Wrote:
-------------------------------------------------------

> I looked up in my Registry :
> HKEY_CURRENT_USER\Control Panel\International
> And, I fixed it!
> LocaleName : de
> Changed LocaleName to de-DE

Awesome.
By the way, what was the Line number reported by 517/518?
Anonymous User
Re: Uncaught Exception : class std::runtime_error
September 09, 2013 07:03PM
It was the same as the one I posted before.
fxm
Re: Uncaught Exception : class std::runtime_error
September 09, 2013 08:46PM
Interesting...

Thank you for clarifying that point.



Edited 1 time(s). Last edit at 09/09/2013 08:47PM by fxm.
Sorry, only registered users may post in this forum.

Click here to login