Comments (6)
A couple more observations:
- When I disable “Check for card duplicates”, the issue happens less often
- My current theory is that the API calls to AnkiConnect are hanging, and leaving Kiwi Browser kills the API calls, making Yomichan “complete” the requests
from ankiconnectandroid.
If I click to create a card and that hangs, leaving Kiwi also makes it go through.
from ankiconnectandroid.
Seems that enabling the “Allow background activity” setting for Kiwi, AnkiConnect, and AnkiDroid might have solved things. It’s a per-app setting within the Battery menu. I need to do some more testing with it but I will report back in a day or two.
from ankiconnectandroid.
I've had messages numerous people use Ankiconnect Android and the effect of doing things like disabling battery optimizations seems to vary dramatically. Some people need to enable options like these to have it work at all, for some people it works no matter what and for others it just extends usage time so this isn't 100% surprising to me.
I'm not sure why the requests would "hang" (I know what you mean though) when duplicates are being checked. These queries would definitely take a little longer (since they have to go through the Ankidroid API) but it shouldn't be bad enough to cause hanging.
Most users seem fine but I've had one other person describe it hanging (and I experienced this once). This only seems to happen when you mine almost every single word you see and in an hour or so you'd have massive slowdowns (which go away after restarting). Overall a bug like this which 99.99% of people never experience is probably not worth extensive testing imo (although I do want to look into my Forvo api's effect on this, I have a feeling that when the word doesn't exist it might hang).
I am though interested in your experience so I'll leave this open for a bit more in-case you want to update me on what you think causes the hanging or anything else :)
from ankiconnectandroid.
Thanks for your detailed response :)
After enabling "Allow background activity" and reading for more than an hour, I didn't face the issue anymore.
I did have an idea of something that could be potentially useful in the future in case someone runs into a similar situation. Perhaps if AnkiConnect had some sort of "debug" mode that could be turned on to log incoming requests and their responses, and perhaps even display notifications for these. Then it would be easier to tell where the delay is coming from. This is probably low priority though cause as you said, it's not a common issue (I can create one though if you'd like).
I'll put up a PR to update the README with what I did to solve my issue in case anyone runs into it, that should be enough for now.
from ankiconnectandroid.
If you're able you can install Android Studio and clone this project
You can insert some logs to the terminal and see how far they get before they're terminated or whatever (when allow run in background is off)
Pretty sure though that it's fine as is
When Android stops background activity the requests just won't even reach though as far as I know (should take around a few mins before it stops working, so then you wouldn't have anything logged)
from ankiconnectandroid.
Related Issues (9)
- online dictionary helper extension support HOT 6
- Can't create an Anki card HOT 1
- Duplicates are not checked across different model/note types HOT 2
- Card tags don't appear to be working HOT 2
- Crashing on Android 6.0 HOT 2
- Very limited with instructions HOT 2
- Duplicates are not working for me HOT 4
- Card creation errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ankiconnectandroid.