Update to i18n beta causes fold.it crash.

Started by Simek

SataMaxx Lv 1

I tried today to switch to beta on linux 64 bits to test my French translation but it crashes on puzzle loading, reporting a segfault.
Running as root doesn't help either, and throws the backtrace given as attachment.

SataMaxx Lv 1

Oops, I tried to attach error.log and posted the message before seeing that only png and txt files are accepted.
Here's the backtrace in a txt file.
Sorry for the double post…

marie_s Lv 1

Beta version dont works for me on windows XP
I re install foldit

translation works only on beta ? it is not written in the new intrustions.
I supose also that setting the usual variables in windows is a subsitute to LANGUAGE environment variable ?

End of log

Initting the list…
Got the puzzles…
SRVR_THRD checking…
Finished show_puzzle_screen…
has key .pdb
has key .pdb
core.conformation.Conformation: [ WARNING ] missing heavyatom: OXT on residue GLU_p:CtermProteinFull 85
core.pack.task: Packer task: initialize from command line()

ERROR: dof_tether_setup.distance_tether_scale > ZERO_EPSILON
ERROR:: Exit from: ....\src\interactive\util\DofTetherSetup.cc line: 262

ilya.makedon Lv 1

SataMaxx, Marie. Are you still having problems like this? If so, can you describe in more detail how you get them. Thanks.

marie_s Lv 1

no and I dont understand some things
When I install foldit, it sometimes make a new ressources folder without locale and russian version and sometimes it put the russian version in my old ressources folder

Sometimes, the russian version works on the first tutorial puzzle but not on other puzzles
but I never achieve to make the french version to work.
phireg have seen the first screens in french.

Sometimes it just crashed just after unload. Log in this case :

args passed:
'C:\Program Files\foldit\foldit.exe'
'-dynamic'
core.init: command: C:\Program Files\foldit\foldit.exe -database cmp-database-307d41cd20e292f4c5d928df7ed9e08b/minirosetta_database -resources cmp-resources-08b61e3ce2917f96faa5ebed945b5c91/resources -interactive_game novice -boinc_url https://fold.it/
core.init: NOTICE: rng device failure, using time as seed
core.init: 'Time' seed mode, seed=1288347330 seed_offset=0 real_seed=-142858800
core.init.random: RandomGenerator:init: Normal mode, seed=-142858800 RG_type=mt19937
Language Settings:
locale=cmp-resources-08b61e3ce2917f96faa5ebed945b5c91\resources\/locale
lang=NULL
textdomain=foldit
bind_textdomain=cmp-resources-08b61e3ce2917f96faa5ebed945b5c91\resources\/locale
is this in the right language=starting the init thread!..
constructor run
starting the init thread!..
checking updates…

UNHANDLED EXCEPTION
1: FTBuffer::Size +478 bytes (no line)
2: FTFont::FTFont +2577 bytes (no line)
3: no symbol (no line)
4: no symbol (no line)
5: no symbol (no line)
6: no symbol (no line)
7: no symbol (no line)
8: no symbol (no line)
9: no symbol (no line)
10: no symbol (no line)
11: no symbol (no line)
12: no symbol (no line)
13: no symbol (no line)
14: no symbol (no line)

ilya.makedon Lv 1

Wow, Marie, you're an awesome beta tester because you can crash Foldit in the most unlikely ways:) Though, I suspect it's because you are hacking around with the resources directories from multiple installations. That's not exactly intended way to play the game. Lets try running a clean install. I'd like you to follow these steps.

  1. Delete or rename this directory (it's called data dir): C:\Documents and Settings\All Users\Application Data\Foldit\
  2. Download the installer from this website.
  3. Run the installation. After that the data dir is restored. Inside it, there is a directory named cmp-resources-00000000000000000000000000000000. This contains the initial resources for the "main" version.
  4. Run Foldit. Play a puzzle and quit. Notice that the data dir now has another directory named something like cmp-resources-fb3d393df71926d8fe3d9d9b7cf35e8d. These are the current resources for the "main" version that were downloaded when you started the game. This directory does not have the locale subdirectory because the i18n stuff is only in "beta" version right now. There is also now the options.txt file.
  5. Change the update group to "beta" in the options.txt
  6. Run Foldit. Observe that after it updates and restarts, the hex number at the end or resources directory name has changed. It now holds the resources for the "beta" version of Foldit. There is a locale folder inside it.
  7. Quit Foldit. Set your LANGUAGE environment variable to "ru_RU.UTF-8" and start Foldit. Observe it in Russian.
  8. Quit Folit. Put your foldit.mo that contains the compiled French translation into this dir C:\Documents and Settings\All Users\Application Data\foldit\cmp-resources-[whatever]\resources\locale\fr\LC_MESSAGES
  9. Set your LANGUAGE environment variable to "fr_FR.UTF-8" and start Foldit. Observe it in French. </ol> Let me know if you still have these problems after you perform these steps.

ilya.makedon Lv 1

Dayack, we resolved this problem with missing ftgl.dll a long time ago. You're the only one that's still having it that I know of. Maybe for whatever reason your faulty resources directory doesn't get deleted when you reinstall. Would you try the following the steps 1-7 in my comment #15. Save a copy of the log file after step 4. Then, if you're still having problems, I'd like you to post both the log file from step 4 and the list of files/directories in your data dir just before the crash. Спасибо.

Dyack Lv 1

I know you resolved that problem. My problem is different. I didn't miss that file, it just doesn't want to work. Ok, I will try again and let you know later. Thank you.

ilya.makedon Lv 1

I made a mistake in my comment #15. I provided wrong location in step 8. The .mo files should go in directory named LC_MESSAGES (it was MESSAGES). So to summarize, this is where your foldit.mo (it MUST be named exactly like this) file should go:

[foldit_data_dir]/cmp-resources-[bunch of hex digits]/resources/locale/[2 letter language code]/LC_MESSAGES

The 2 letter language codes:
fr = French
ru = Russian
de = German