Severe windows 10 problems. What to do?

Discussion of chess software programming and technical issues.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Joost Buijs
Posts: 1092
Joined: Thu Jul 16, 2009 8:47 am
Location: Almere, The Netherlands

Re: Severe windows 10 problems. What to do?

Post by Joost Buijs » Sat Jul 20, 2019 2:31 pm

Henk wrote:
Sat Jul 13, 2019 3:00 pm
I think i will never buy anything again from "Media Markt".
Bought a new computer but I see I paid 99 euro for
"Power Service Altijd aan".
I did not ask for that.
Yes it was included in the package.

Being so foolish to buy that.

Looks like each encounter with a salesman in a computer shop cost you many euros.
All thieves.

Only buy stuff when in economic recession otherwise you pay too much.


Might be person in other computer shop did nothing but only cashed 50 euro.

Maybe better buy online if you can get online but I only had a dumb Phone. Who invented the word smart Phone ?? Many application don't work on smart Phone and sometimes they assume you have fingers as big as a needle. Not to talk about annoying advertisements.
So you bought a new computer.

Only when I'm in a very big hurry I buy sometimes from 'Media Markt'. Media Markt 'Ik ben toch niet gek', last week I needed a 3 meter cat6 patch cable they asked over 20 Euro's for it. At 'allekabels.nl' it costs just 3.99 Euro. You must be mad indeed when you buy something from 'Media Markt'.

Usually I built my PC's from parts, and I look at 'tweakers.net' to find the cheapest seller. It really makes a difference of hundreds of Euros for a standard PC, another advantage it that for each part you can choose the brand that you really like.

I hope Skipper will be back up and running soon.

Programming a chess engine from scratch is not so easy, a few weeks ago I decided to replace my Windows threads/synchronization with C++ threads/synchronization (because I also want to run on Linux), and now I'm experiencing random crashes, I can play like 20 games, no problem and at game 21 it will crash. I've been looking at it for 2 weeks, but I can't find the problem. Maybe I should switch to lazy SMP like many others do, it is not so easy to get YBW working without any data races. Of course you can lock everything, but that hampers performance.
Will be continued.

Henk
Posts: 6426
Joined: Mon May 27, 2013 8:31 am

Re: Severe windows 10 problems. What to do?

Post by Henk » Sat Jul 20, 2019 4:01 pm

Maybe best is to go back to a stable state.

Better a worse engine that does not crash and from there try to improve.

Don't know yet how much it cost to get Skipper back and whether I can afford it in my situation.
Maybe better use computer less otherwise it may get broke earlier and I get same horror again.
For I don't trust my backups.

I currently did not manage to get my 'sent mail' back from date less than week ago in microsoft mail. Inbox working normal as it used to.
So that problem has highest priority. So probably settings of outgoing mail in my mail account are not correctly set.

Joost Buijs
Posts: 1092
Joined: Thu Jul 16, 2009 8:47 am
Location: Almere, The Netherlands

Re: Severe windows 10 problems. What to do?

Post by Joost Buijs » Sun Jul 21, 2019 4:42 am

I just found out at 6.00 AM that I have a sporadic error in my hash key, this has never been before, but it explains a lot.
MS IntelliSense (or whatever they call it) sometimes removes parts of your code when typing, when you don't notice this you are in trouble.
Now I have to search for the error, this can't be too difficult.

Joost Buijs
Posts: 1092
Joined: Thu Jul 16, 2009 8:47 am
Location: Almere, The Netherlands

Re: Severe windows 10 problems. What to do?

Post by Joost Buijs » Sun Jul 21, 2019 6:57 am

I just found the error, somehow a statement in the hash update disappeared like I expected.
I also added one extra lock in the YBW routine, up until now it seems to be running stable (like it used to be), fingers crossed.

Sven
Posts: 3868
Joined: Thu May 15, 2008 7:57 pm
Location: Berlin, Germany
Full name: Sven Schüle
Contact:

Re: Severe windows 10 problems. What to do?

Post by Sven » Sun Jul 21, 2019 10:14 am

Joost Buijs wrote:
Sun Jul 21, 2019 6:57 am
I just found the error, somehow a statement in the hash update disappeared like I expected.
Aren't you using a version control system, e.g. Git? It would be a trivial task to review all changes when using Git.
Sven Schüle (engine author: Jumbo, KnockOut, Surprise)

Henk
Posts: 6426
Joined: Mon May 27, 2013 8:31 am

Re: Severe windows 10 problems. What to do?

Post by Henk » Sun Jul 21, 2019 11:23 am

Last half year I was using GIT too.

That's why i don't trust my backups for I don't know yet how to get back a solution from a repository GIT backup or what is its name.

Wait already found something. Had to go to View -> TeamExplorer in visual studio 2019 community edition.

Henk
Posts: 6426
Joined: Mon May 27, 2013 8:31 am

Re: Severe windows 10 problems. What to do?

Post by Henk » Sun Jul 21, 2019 12:05 pm

Ok looks like Skipper alias SchaakMachine working again on my computer.


Joost Buijs
Posts: 1092
Joined: Thu Jul 16, 2009 8:47 am
Location: Almere, The Netherlands

Re: Severe windows 10 problems. What to do?

Post by Joost Buijs » Sun Jul 21, 2019 2:05 pm

Sven wrote:
Sun Jul 21, 2019 10:14 am
Joost Buijs wrote:
Sun Jul 21, 2019 6:57 am
I just found the error, somehow a statement in the hash update disappeared like I expected.
Aren't you using a version control system, e.g. Git? It would be a trivial task to review all changes when using Git.
No, I never did. I stem from an age that all these things didn't exist. I make automated backups on a daily basis though, so I can always fall back to an earlier version.

The stupid thing is that sometimes when you type a space in the middle of a statement the Visual Studio editor removes the whole statement (I think it is a bug), usually I notice this, but I missed it on a few occasions. It has something to do with IntelliSense, the automatic statement completion can be switched off somewhere in the editor settings, recently I switched to VS2019 and now it seems to happen again.

I was really fighting with C++ threads and synchronization objects. my engine was perfectly stable with Windows threads, SRW locks and condition variables, after I switched to C++ threads, mutexes/lock_guards and condition variables I experienced random crashes, sometimes just 1 in 40 games and not reproducible. I got the impression that a thread somehow tried to lock a mutex twice without releasing it, and that this generated an exeption. After adding an extra lock at a location where it doesn't seem necessary my engine looks stable again, but I still don't understand it.

Henk
Posts: 6426
Joined: Mon May 27, 2013 8:31 am

Re: Severe windows 10 problems. What to do?

Post by Henk » Sun Jul 21, 2019 2:35 pm

I hate code I don't understand. So probably I would even go back to a worse previous version with code I do understand.

Joost Buijs
Posts: 1092
Joined: Thu Jul 16, 2009 8:47 am
Location: Almere, The Netherlands

Re: Severe windows 10 problems. What to do?

Post by Joost Buijs » Sun Jul 21, 2019 2:54 pm

I hate it too, I understand what the code does because I wrote it myself, but I don't understand why the extra lock is necessary. Maybe there is still a very subtle bug in Microsofts threading library, it would not be the first, the last year they removed several bugs in this subsystem. Pretty soon I will have a Linux system up and running and I just want to see if it also crashes when I compile my engine with GCC.

I assume there will be an HGM tourney next weekend, and I hope you are completely back up and running with Skipper by that time.

Post Reply