Create a "Submit Score" Button

Case number:671071-993811
Topic:Game: Other
Opened by:Jean-Bob
Status:Open
Type:Bug
Opened on:Friday, October 26, 2012 - 16:45
Last modified:Wednesday, March 19, 2014 - 18:30

hi, not sure if i must place this under suggestion or bug but here goes.
i have been pretty annoyed by a recent story of bad luck: the MDF in my town is saturated, so my connection is unreliable and i am frequently and randomly disconnected. the button to reconnect to chat is cool (for some at least), but scores are not submitted. i've been ranked 78 on puzzle 642 with a score of 10,672 when in fact my score was 10,913 like 4 hours before the closing of the puzzle. what that score tells me is that my score hasn't been updated once in at least 24 hours though the notification icon was green and the game thought i was (re)connected to the chats. i'm not sure of what i precisely want, either or all:
* when we reconnect to the chats, scores are force submitted
* when we have a new best score, send score and change notification icon to red if impossible (i don't understand why it stayed green)
* have a submit score button
thanks for giving a thought to that case

(Fri, 10/26/2012 - 16:45  |  20 comments)


beta_helix's picture
User offline. Last seen 6 days 10 hours ago. Offline
Joined: 05/09/2008
Groups: None

assigning...

Joined: 05/19/2009
Groups: Contenders

I can confirm that in the current devprev 2012-10-03-51502M-win_x86-devprev this problem indeed still exists.

Joined: 05/19/2009
Groups: Contenders
Type: Suggestion » Bug

I have had TWO clients die on me because the light shines nicely green, no scores are updated, clicking the light kills the client. changing this to a BUG.

tamirh's picture
User offline. Last seen 6 years 17 weeks ago. Offline
Joined: 05/11/2012

looking into this. were there any particular circumstances you've noticed for when it crashes when you try to reconnect?

Joined: 05/19/2009
Groups: Contenders

Nothing in particular, no.

Some of the errors found in the log:

Warning: Unable to locate database file scoring/score_functions/SecondaryStructurePotential/phi.theta.36.HS.resmooth
Error: ERROR: Database file open failed for:
Warning: Unable to locate database file scoring/score_functions/SecondaryStructurePotential/phi.theta.36.SS.resmooth
Error: ERROR: Database file open failed for:

and

SRVR_THRD error: Error: database returned invalid result at time 1351728177 (..\..\..\rosetta_source\src\game\application\novice\boinc\Boinc.cc:445)

and

SRVR_THRD error: Bad bool format for Online: ''. (..\..\..\rosetta_source\src\interactive\util\Dictionary.cc:247)

and

SRVR_THRD error: Transferred a partial file: Error contacting server. (..\..\..\rosetta_source\src\game\application\novice\boinc\Boinc.cc:86)

and

SRVR_THRD error: failed to open/read local data from file/application: Error contacting server. (..\..\..\rosetta_source\src\game\application\novice\boinc\Boinc.cc:86)

and

SRVR_THRD error: Error: database returned invalid result at time 1351728139 (..\..\..\rosetta_source\src\game\application\novice\boinc\Boinc.cc:445)

Joined: 08/24/2011

as i'm using a peculiar configuration i'm not sure i can be of any help (devprev windows version running on ubuntu through wine). if the game thinks i'm connected while i'm not and i ask for some connection needing feat like opening the solutions window or changing puzzle, it hangs.

Joined: 08/24/2011

argh, no edit button. don't know if this still happens on new devprev. passive connection needing feats (well i guess they are) like new high score, game rankings didn't make the game hanging/crashing. i've not tried all active ones but i suspect they're all crashing sources

Joined: 08/24/2011

Bump. Now I'm with the latest devprev and the bug still happens: if the game thinks I'm connected while I'm not it crashes whatever I ask it to do (open shared solutions window, click on the notifications green lamp...).

This bug could be a duplicate of: https://fold.it/portal/node/993031 .
May be related: https://fold.it/portal/node/993708 .

I hadn't the courage to look for older feedbacks.

Hanto's picture
User offline. Last seen 5 days 15 hours ago. Offline
Joined: 05/10/2008
Groups: None

In my case the client doesn't crash,it stalls instead, forcing me to load up another client which generally takes care of the issue, at least for a while. Also assuming the new client loads up properly my scores are updated very rapidly and I do use the minBW option.
It seems that 3 buttons ( reconnect/disconnect/send-score )are being asked for. I guess on non-active clients a send-score button would be okay for those who worry about such things. However for the sake of active internal IRC clients, I would rather see the reconnect/disconnect buttons, as they should cycle the connection if suspicion exists about said connection and in my case at least if the connection is re-established, updated scores soon follow...

Joined: 05/19/2009
Groups: Contenders

No buttons should be necessary if the principle was implemented properly. I believe I have advocated the 'heartbeat' principle several times already. That would take care of everything. Make sure the clients can independently and unattended detect disconnect and automatically reconnect.

Joined: 08/24/2011

I second that.

tamirh's picture
User offline. Last seen 6 years 17 weeks ago. Offline
Joined: 05/11/2012

This is what's implemented right now. When the client pings the server and it doesn't receive an answer it will show as disconnected. It will periodically attempt to reconnect. For sending solutions, there is no persistent connection, there are only connections made when the client tries to send solution data.

The problem is with some computers it seems like either the heartbeat or some other code is causing clients to crash when it gets disconnected. I haven't been able to reproduce the issue with any of the machines I have available to me here which is why the bug has been there for so long.

Joined: 08/24/2011

"It will periodically attempt to reconnect." This is the problem: it will, but only a few times. It will stop trying after these few times and that's when the game will think it's connected while it's not. I'll have a guess here from what I've observed, either:
* the volume of data exchanged within the server handshake is far too big;
* the number of tries is far too low.

While the FoldIt client gets disconnected, my own IRC connection to the FoldIt server stays alive most of the time. My FoldIt client gets disconnected in an "ever" way even when I get disconnected from IRC only once, and I know IRC uses a mere ping.

Joined: 11/05/2010
Groups: None

So you are implementing a change in DNS providers, at least that seems to be a viable attempt to rectify the issue and I for one prays that it works as I believe it may well do some good at a minimum.

Joined: 05/19/2009
Groups: Contenders

You might consider checking whether all connections to the server in the client are either by IP or by dns. You may not experience local DNS issues. We occasionally will.

harp's picture
User offline. Last seen 4 years 29 weeks ago. Offline
Joined: 10/20/2011

Today I was doing the Turkey Egg Lysozyme, on a second client. I finished the puzzle with an R71, but on my website is is recorded at R 231. This has never happened to me before. Recently switched over to Devprev, but am going to switch back to main.

Joined: 08/24/2011

That time was weird. Scores were not updated but I could see people talking in the chats from the client. Here's the logfile after I clicked on the green lamp

Error: Could not parse path/filename from: "puzzle_994167_time_1355821139.ir_solution"
Error creating temporary file  falling back to unsafe direct write of save data
No object matching key 0. (~500 times)
Autosaved puzzles/0000994167/0000261344/default/autosave.ir_solution.
Autosaved puzzles/0000994167/0000261344/default/autosave-best.ir_solution.
Autosaved puzzles/0000994167/0000261344/default/autosave-recentbest.ir_solution.
Autosaved puzzles/0000994167/0000261344/default/autosave-creditbest.ir_solution.
Joined: 11/05/2010
Groups: None

Maybe I'm talking apples and oranges, in my case I can't get the clients to crash using Jean-Bob's technique. DNS change seems to have made no improvement, and my clients still stall when trying to refresh scores, forcing me to load a new client in which scores can be refreshed and closing out the old, stalled client which also often takes some work on my part. I can't say for certain that a recycle of the connection on the client would do any good, but I am certain that the stalled client is disconnected during the stalled event. Once the stalling occurs generally ( but not always ) when trying to update scores to ' shares ', the client becomes useless which might be considered a crash by some. To me it's just an event that the client isn't programmed to recover from properly, most likely due to the disconnection/stall.
Whether BP's heartbeat principle or my recycle connection button would do any good, I don't know, but I think I would try both just to be on the safe side with the hope that the heartbeat principle made the recycle connection button redundant. It seems to me at least, that we need some redundancy in the client.

Joined: 08/24/2011

My bad, it never crashes, it freezes ("No matching key 0" repeats ad lib, until I kill the process). I'll try and see if the error message in the log changes with different connection feats (which I doubt).

Joined: 08/24/2011

bumpy bump

Sitemap

Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, RosettaCommons