Load User Dict Error

I tried loading in @alex_hk90's
from his github page

Initially browsing the dictionary makes it look like the entries came through (individual rows loaded) but that they did not fully populate with text:
IMG_3808.PNG


clicking through on a single entry:
IMG_3809.PNG


it looks totally empty.

======

Now I'm not sure what fixed it - but I killed the app and reopened it multiple times but I also loaded Alex's:
Afterwards the text for the original entries populated. Again, not really sure what happened either way. But then the entires on the numeric.pqb where, again, apparently empty.
 

mikelove

皇帝
Staff member
Thanks - we've seen a few issues with field presence indexes failing to generate correctly (which would cause a disappearing entry bug like this) but are still trying to figure out the root cause as it's annoyingly intermittent.
 

allanahk

Member
Hi Mike, I wonder if you’ve found any fix for this? I’ve been exploring user dictionaries (very cool feature btw) but have run into this bug multiple times. At first restarting the app fixed the issue but it’s being more persistent now. Some info:

I have a few user dictionaries that I’m testing with, occasionally when adding a new entry from within Pleco or importing a file (tried .txt, .plecoflash, or .pqb for a whole dictionary) the entries within the dictionary will disappear. I know they’re still technically there because exporting the dictionary shows the entries, but they just don’t appear in search or list view within Pleco. Sometimes when adding an entry to one dictionary it causes a different dictionary to disappear (??)

Things I’ve tried when this bug appears:
- restarting Pleco, used to work but now doesn’t
- restarting device, doesn’t work
- creating a new dictionary and either importing from file or a manual entry, doesn’t work
- rebuilding the indexes from the settings/data and backup, doesn’t work
- locking the dictionaries so they can’t be edited, doesn’t work
- testing importing on both iPhone and iPad, it seems genuinely random whether the empty entry bug will happen or not, importing the same file into iPhone Pleco may work when it doesn’t on iPad or vice versa, so it doesn’t seem to be an issue with the files themselves

Please let me know if you’ve found any solution (or need more info from me)
 

allanahk

Member
Hi again, after a bit more testing It seems like an issue with the number of user dictionaries loaded (but interestingly not the size/number of entries in the dictionaries themselves)

Adding a 6th user dictionary (even a newly created empty dictionary) either makes the 6th dictionary bugged, or a different dictionary bugged.
Removing a dictionary (down to 5) and restarting Pleco makes all work.
5 seems to be the limit regardless of dictionary size?

Tested with single and multi entry dictionaries:
  • Adding up to 4 user dictionaries, no issues
  • On the 5th dictionary, the bug SOMETIMES appears when adding the first card (if manual entry) or cards (if importing via file) - all entries disappear BUT reappear after restarting Pleco and the bug is fixed.
  • Adding a 6th dictionary, it’s bugged and restarting Pleco doesn’t fix it (or it makes another dictionary bugged instead and can’t be fixed)
Removing any dictionary so there’s less than 6 then restarting Pleco fixes everything. How strange! But hopefully useful info for the developer (and other users who might search within the forums for an answer to an unusual bug like I did)
 

mikelove

皇帝
Staff member
To be honest we've made a *lot* of internal changes since the last beta, and while I'm not aware of any fix for this issue specifically, I would not be surprised if one of the changes we made to fix another bug had fixed it, and I can't seem to reproduce it at the moment. Anyway, please let me know if you still see this problem after that next beta is out and we'll investigate further.
 
Top