piazzatron / anki-smart-notes

Superchange your anki flashcards with ✨AI✨
GNU General Public License v3.0
19 stars 4 forks source link

[Bug Report] Causing a annoying "Processing..." when launch Anki and open a Deck On Mac m1 #31

Closed LionChenA closed 1 month ago

LionChenA commented 1 month ago

Test with and without the latest Smark-Notes and Anki. The annoying "Processing..." continues few minutes with Smark-Notes on while immediately into a Deck without it. In addition, opening settings of Anki and quitting seems to lead the same problem.

piazzatron commented 1 month ago

Hey @LionChenA, sorry you're facing this, that's super annoying & I'll get this fixed ASAP for you.

To help me figure out what's going on:

Please turn on debug mode in advanced, and then paste smart-notes.log into this thread.

If you're on Mac, that's in: ~/Library/Application Support/Anki2/Addons21/1531888719/
On windows: %APPDATA%/Anki2/Addons21/1531888719/
More info here if you're having trouble finding it: https://docs.ankiweb.net/files.html#file-locations

LionChenA commented 1 month ago

Hi, @piazzatron, I encounter problems with the open debug mode, so I run Anki in my terminal. The output is shown below. It looks like there's a connection issue with the new features in the latest version of Smart Notes.

Anki starting...
Initial setup...
Preparing to run...
2024-09-19 18:38:54,109:INFO:aqt.mediasrv: Serving on http://127.0.0.1:64868
todo: windows paths in import screen
Cleaning up config
[]
[]
[]
Starting main loop...
conf key heatmap should be fetched with col.get_config(), and saved with col.set_config()
conf key heatmap should be fetched with col.get_config(), and saved with col.set_config()
conf key heatmap should be fetched with col.get_config(), and saved with col.set_config()
JS error :1 Uncaught ReferenceError: get_controller_info is not defined
2024-09-19 18:38:55.391 Anki[80498:1463930] +[IMKClient subclass]: chose IMKClient_Legacy
2024-09-19 18:38:55.391 Anki[80498:1463930] +[IMKInputSession subclass]: chose IMKInputSession_Legacy
Qt warning: skipping QEventPoint(id=1 ts=0 pos=0,0 scn=841.734,786.633 gbl=841.734,786.633 Released ellipse=(1x1 ∡ 0) vel=0,0 press=-841.734,-786.633 last=-841.734,-786.633 Δ 841.734,786.633) : no target window
smart_notes/sentry.py: [ERROR] Error pinging server: Cannot connect to host anki-smart-notes-server-production.up.railway.app:443 ssl:default [Connect call failed ('35.213.168.149', 443)]
2024-09-19 18:40:11,273:ERROR:smart_notes: Error pinging server: Cannot connect to host anki-smart-notes-server-production.up.railway.app:443 ssl:default [Connect call failed ('35.213.168.149', 443)]

Bu the way, I'm in China and usually surfing internet with a VPN. It works in other places.

LionChenA commented 1 month ago

I open the debug mode of smart notes. The log shows the same thing. smart-notes.log

piazzatron commented 1 month ago

This was really helpful, thanks. Looks like a couple things are going on:

Fixes:

Check out v2.1.5 when you have a chance and let me know if your situation is improved!

LionChenA commented 1 month ago

I'm really glad to hear there's an update! I upgraded it, and it definitely fixed my issue. Thanks for all your hard work—this plugin has saved me so much time!

piazzatron commented 1 month ago

Excellent, glad this solved the problem! If you're finding Smart Notes useful consider upgrading to a paid version some day ;)