-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[BUG]: Random mistaken "Failed to load xxx.bin" toast messages when using JS API #16510
Comments
@silidev Could you provide a sample deck?
For diagnostics:
|
Yes, I will build one and put it here. Thanks for looking into this. 🙂
David Allison ***@***.***> schrieb am So., 2. Juni 2024,
22:14:
… @silidev <https://github.com/silidev> Could you provide a sample deck?
—
Reply to this email directly, view it on GitHub
<#16510 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD2V77XC73VELBPW5EJ5W2LZFN4IRAVCNFSM6AAAAABIRTBDI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBUGAYDONJRGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi David! Unfortunately, I cannot reproduce it in my sample deck. My production collection is not suitable for testing by others. I hope I find time to build my own AnkiDroid from source. Then I will try to fix it myself and test it in my production collection. I guess you best close this issue for now. Thanks again for having a look at this. |
I can get a slight reproduction with a Let's leave this open, I know where it needs to be fixed, but I don't know why @silidev Can you use logcat? I could add some diagnostic logs instead, which can be used to resolve this |
@david-allison I never used logcat, but I have used the adb command line before and guess that it won't be that difficult, will it? |
@david-allison By the way: Kind of the deeper reason, why this is a problem at all, is this: the toast message with the error is very low on the screen, hiding the answer buttons. If it would be positioned higher on the screen everything would be just fine. Other toast messages are also a somewhat annoying, like "1 card rescheduled". In the current position the toast message is hiding the answer buttons. If it would be a little bit higher, higher than the answer buttons, it would be no problem it all. I understand that you are interested what is causing the error, but repositioning the toast message display to a higher Y-position would improve the user experience for all types of toast messages. |
Checked for duplicates?
Does it also happen in the desktop version?
What are the steps to reproduce this bug?
Use the JS API a lot. It only happens randomly. Maybe it is possible to reproduce it reliably by calling some harmless API method in a loop.
Expected behaviour
No error message should be displayed.
Actual behaviour
Sometimes (no discernible pattern) AnkiDroid will throw a "Card Content Error: Failed to load 'xxx.bin'" warning, despite everything working fine. xxx being a name referring to an element of the JS API, e.g . "cardDue.bin", "cardMod.bin", "ttsSetLanguage". Maybe all strings from the jsApiList in AnkiDroid/src/main/assets/scripts/js-api.js are possible.
Debug info
(Optional) Anything else you want to share?
I am pretty sure this began with JS-API 0.2 or 0.3.
This is the string: Card Content Error: Failed to load ‘%s’
This issue is related: #10033
Research
The text was updated successfully, but these errors were encountered: