-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing dictionaries stuck on validation step #1765
Comments
@Nyuutrino We've had some reports of this but so far none of the devs have been able to replicate it, so it's hard for us to fix. Would you happen to have programming background? If you could go to |
I'm having the same problem. I'm running on Arch Linux with the same browser and Yomitan versions as Nyuutrino. I've tried the "Inspect" on the extension and workers, and it doesn't throw any errors on their "Console" tabs when it stalls. Is there anywhere else I should be looking? I can confirm that it is intermittent, and gets stuck at different points, though it does seem to be somewhat consistent about which points. I believe I've had it stick at 17% as well, and frequently 37%. While writing this I did some further attempts, the next was successful, so I deleted it to try again and ran a bunch more attempts that stopped as follows: 37%, 37%, success, 56%, 56%, 56%, 54%, 37%, 52%, 92%, 92%, 50%, 37%, success. Each time it got stuck, I would stop it by disabling Yomitan in the Add-ons Manager, which would give me a warning pop-up about leaving the page, and then turn it back on and make another attempt. It is a particularly large dictionary (84MB zip), which I was having the most trouble with. I did have one of the smaller ones I installed earlier stall as well, though, so I don't think it's specifically size related, but huge dictionaries might be the way to reproduce it. I also added a 64G swap file, in addition to 32G of ram thinking it might be memory related, but that didn't seem to make a difference. EDIT: Upgraded the firefox package to 134.0.1 Stalled at 19%, Guessing something's busted between firefox 133.0.3, and 134.0.1 I noticed a possibly tangentially related bug on Firefox's tracker, which was someone getting a bunch of junk at the end of their JSON data, which jives pretty well with the one "unterminated string" error I got. That issue looks like it's in limbo, but my bet is that firefox has broken something in their JSON parsing, but I'm guessing the Yomitan devs here might be able to pass a more useful bug report up than what I could come up with if they can give it a go in firefox 134 and reproduce it. -Nick |
Same problem for me too. First time installing the extension. I was able to download all recommended dictionaries but for Jitendex it always gets stuck at random number. Upon running the inspection, I was able to obtain following errors Extension has encountered a problem. Issues can be reported at https://github.com/yomidevs/yomitan/issues 7 log.js:138:35 |
@djahandarie Yes, I do have a background in programming, including JS.
I tried this on Arch with the same dictionary (BCCWJ) and the same thing happened (completed when pausing & stepping through the process). However, it froze up when importing another dictionary which I had from a zip file. Note that the same error occurred when I opened up Firefox and checked the console (backend port is not registered). |
I did see the "backend port is not registered" as well, at some point, but I think it's probably not at the core of this issue. I'm pretty sure it's a firefox bug in JSON handling. I don't know enough how to actually characterize it, but the fact that it consistently worked on 133.0.3 and consistently broke after upgrading only firefox to 134.0.1, and finally getting a related error message the one time makes me fairly confident they're mangling json on the way into the browser. I also remembered that I got an odd JSON error after installing ankiconnect, and browsing to localhost:8765. "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data" If I can figure out how to connect and see the raw response, I'll see if it's mangled, and likely that's where our problem is. Ehh, I guess I need to see it from firefox's view point, since the actual data being imported is fine, and it's getting broken on the way in when firefox parses it. I might have to learn to use a debugger. EDIT: I think I might have incorrectly correlated those two error messages. Browsing to ankiconnect on firefox 133 still gives the error. I did test some more, though, and after downgrading to 133.0.2, the dictionaries will import. They do seem to randomly stop for a long time, but unlike in 134.0.1, they do eventually continue, and I've had a 100% success rate importing the same dictionary in 133.0.2. I ran it sucessfully 4 more times in a row on 133.0.2, and then upgraded to 134.0.1 again, and stalled at 58% on the first attempt. |
I had the same issue in Firefox 134 on Fedora. |
It seems like Firefox came out with a new patch (134.0.2), which fixes this bug:
I traced some processes with the debugger and it seemed that the process of sending data between threads just randomly stopped, so I wouldn't be surprised if this was the problem and is now fixed. I was able to import the dictionary that wasn't importing before now. Does anyone else have any luck with the new patch? |
Yes, seems to work again for me as well. 134.0 works, 134.0.1 broken, 134.0.2 works. |
Description
When importing/downloading dictionaries, they will get stuck on the validation step, stopping at a random progress point (sometimes 0%, sometimes 17%, etc). This happens on both my Windows & Arch Linux installations, which are both on the same computer.
Browser version
Firefox (134.0.1 (64-bit)
Yomitan version
25.1.5.0
The text was updated successfully, but these errors were encountered: