11-17-2020 09:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-17-2020 09:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
I get the below error when trying to use a localization file as a store for a large number of key-value pairs.
I was trying to do this primarily to limit the amount of data that is sent back and forth between the watch and companion app. The data in the localization file is in the below format and consists of a bunch of UK station codes and station names. There are roughly 2600 such key value pairs that I want to store in the file.
Any idea what could be causing this and how it can be resolved?
msgid "ABW"
msgstr "AbbeyWood"
msgid "ABE"
msgstr "Aber"
msgid "ACY"
msgstr "Abercynon"
msgid "ABA"
msgstr "Aberdare"
msgid "ABD"
msgstr "Aberdeen"
msgid "AUR"
msgstr "Aberdour"

11-17-2020 11:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-17-2020 11:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
It seems like the hash function is somehow generating the same value for 2 of your keys. Can you try changing one of those keys?

11-17-2020 12:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-17-2020 12:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I did try that earlier but it then gave me an error for another set of keys. I tried it again just now and continued changing values until I had gone through 12-15 of them. There seem to be too many collisions for this to be a hashing related issue, perhaps it's something else?

11-18-2020 04:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-18-2020 04:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I think the hash is too weak. If you could send me the entire original file, I'll get it logged as a firmware issue. Please email devrelations at fitbit dot com

11-18-2020 08:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-18-2020 08:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks Jon, I've sent the file over now.

