RosettaTechnologies / AnkiBrain

147 stars 20 forks source link

White screen on login #5

Open wh1ter0z3 opened 6 months ago

wh1ter0z3 commented 6 months ago

I'm using debian 12, Anki Version ⁨23.12.1 (1a1d4d54)⁩ Python 3.9.15 Qt 5.15.2 PyQt 5.15.5. Ankibrain version 0.7.2 Beta installed with code in anki add-on. And using regular mode. Whenever i click login button, it only shows white screen and when i try to reload by clicking right button. It gets stuck on ankibrain is loading screen. I have deleted and installed but the problem still persists. Any solution

eshahrabani commented 6 months ago

Hello, we are aware of a similar (but I think separate) issue on MacOS. This is the first report of a white screen on a linux system. The white screen is indicative of a javascript error during runtime.

I have been looking into it but unable to locate the bug. It's possible that it is related to Anki's Qt5 version instead of Qt6. If you have access to another system or a virtual machine, can you try using Anki 23.12.1 Qt6?

Also, can you try launching Anki with the terminal and showing the error logs? (If you do this, please check for personal information prior to posting it here)

wh1ter0z3 commented 6 months ago

So i've launched anki through terminal and seems like i've got few errors regarding Qt. The only other addon i use is heatmap review besides ankibrain. I've not tried ankibrain yet in anki qt6, i'll do that later.

db14@debian:~$ anki Anki starting... Initial setup... Preparing to run... Qt info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. Qt info: Sandboxing disabled by user. Starting main loop... Booting AnkiBrain... Loading AnkiBrain in Regular (Server) Mode... Webview is not loaded yet, sleeping async... 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() Webview is not loaded yet, sleeping async... Webview is not loaded yet, sleeping async... Webview is not loaded yet, sleeping async... Webview is not loaded yet, sleeping async... Qt critical: Uncaught ReferenceError: qt is not defined 'file:///home/db14/.local/share/Anki2/addons21/1915225457/webview/build/index.html:451,' Webview is not loaded yet, sleeping async... Webview is not loaded yet, sleeping async... Webview is not loaded yet, sleeping async... Webview is not loaded yet, sleeping async... Webview finished loading. (ReactBridge) Sending cmd to react app: {"cmd": "SET_WEBAPP_LOADING_TEXT", "data": {"text": "Loading your settings..."}, "commandId": null} Sending DID_LOAD_USER_FILES (ReactBridge) Sending cmd to react app: {"cmd": "DID_LOAD_SETTINGS", "data": {"aiLanguage": "English", "automaticallyAddCards": true, "colorMode": "dark", "currentVersion": "0.7.2", "customPromptChat": "", "customPromptMakeCards": "", "customPromptTopicExplanation": "", "deleteCardsAfterAdding": true, "devMode": false, "documents_saved": [], "lifetime_total_cost": 0, "llmModel": "gpt-3.5-turbo", "showBootReminderDialog": true, "showCardBottomHint": true, "showSidePanel": true, "tempCards": [], "temperature": 0, "user": null, "user_mode": "SERVER"}, "commandId": null} (ReactBridge) Sending cmd to react app: {"cmd": "DID_FINISH_STARTUP", "data": {}, "commandId": null}

Received cmd {"cmd": "EDIT_SETTING", "commandId": 1, "key": "user", "value": null} (ReactBridge) Sending cmd to react app: {"cmd": "DID_EDIT_SETTING", "data": {}, "commandId": 1} Received cmd {"cmd": "EDIT_SETTING", "commandId": 2, "key": "showBootReminderDialog", "value": false} (ReactBridge) Sending cmd to react app: {"cmd": "DID_EDIT_SETTING", "data": {}, "commandId": 2} Qt critical: ReferenceError: WeakRef is not defined 'file:///home/db14/.local/share/Anki2/addons21/1915225457/webview/build/index.html:2,' Qt critical: Uncaught ReferenceError: WeakRef is not defined 'file:///home/db14/.local/share/Anki2/addons21/1915225457/webview/build/index.html:2,' Qt critical: Uncaught ReferenceError: qt is not defined 'file:///home/db14/.local/share/Anki2/addons21/1915225457/webview/build/index.html:451,' Webview finished loading. Qt warning: QMainWindow::saveState(): 'objectName' not set for QDockWidget 0x562f005c7480 'AnkiBrain;
eshahrabani commented 5 months ago

Possibly fixed by #6, can you update and confirm?

wh1ter0z3 commented 5 months ago

Still its the same and even i tried on ubuntu this time.

user1@it:~$ anki Anki starting... Initial setup... Preparing to run... Qt info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. Qt info: Sandboxing disabled by user. Starting main loop... mpv not found, reverting to mplayer Booting AnkiBrain... Loading AnkiBrain in Regular (Server) Mode... Webview is not loaded yet, sleeping async... Webview is not loaded yet, sleeping async... Webview is not loaded yet, sleeping async... Webview is not loaded yet, sleeping async... Webview is not loaded yet, sleeping async... Qt critical: Uncaught ReferenceError: qt is not defined 'file:///home/user1/.local/share/Anki2/addons21/1915225457/webview/build/index.html:451,' Webview finished loading. (ReactBridge) Sending cmd to react app: {"cmd": "SET_WEBAPP_LOADING_TEXT", "data": {"text": "Loading your settings..."}, "commandId": null} Sending DID_LOAD_USER_FILES (ReactBridge) Sending cmd to react app: {"cmd": "DID_LOAD_SETTINGS", "data": {"aiLanguage": "English", "automaticallyAddCards": true, "colorMode": "dark", "currentVersion": "0.7.3", "customPromptChat": "", "customPromptMakeCards": "", "customPromptTopicExplanation": "", "deleteCardsAfterAdding": true, "devMode": false, "documents_saved": [], "lifetime_total_cost": 0, "llmModel": "gpt-3.5-turbo", "showBootReminderDialog": true, "showCardBottomHint": true, "showSidePanel": true, "tempCards": [], "temperature": 0, "user": null, "user_mode": "SERVER"}, "commandId": null} (ReactBridge) Sending cmd to react app: {"cmd": "DID_FINISH_STARTUP", "data": {}, "commandId": null}

Received cmd {"cmd": "EDIT_SETTING", "commandId": 1, "key": "user", "value": null} (ReactBridge) Sending cmd to react app: {"cmd": "DID_EDIT_SETTING", "data": {}, "commandId": 1} Qt critical: ReferenceError: WeakRef is not defined 'file:///home/user1/.local/share/Anki2/addons21/1915225457/webview/build/index.html:2,' Qt critical: Uncaught ReferenceError: WeakRef is not defined 'file:///home/user1/.local/share/Anki2/addons21/1915225457/webview/build/index.html:2,' Qt warning: QMainWindow::saveState(): 'objectName' not set for QDockWidget 0x651c8928fba0 'AnkiBrain;