I compile and run the desktop version of Anki on MacOS, after open it, when I click Browser, it crashes.
Here is the log copied from my terminal:
./run
Starting local Bazel server and connecting to it...
INFO: Analyzed target //qt:runanki (720 packages loaded, 31054 targets configured).
INFO: Found 1 target...
Target //qt:runanki up-to-date:
.bazel/bin/qt/runanki
INFO: Elapsed time: 51.631s, Critical Path: 3.53s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run...
Qt info:
GL Type: core_profile
Surface Type: OpenGL
Surface Profile: CoreProfile
Surface Version: 4.1
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: no
Using Multithreaded OpenGL: yes
Init Parameters:
* application-name Anki
* browser-subprocess-path /private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/external/pyqt6/PyQt6/Qt6/lib/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess
* disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture
* disable-speech-api
* enable-features NetworkServiceInProcess,TracingServiceInProcess
* enable-threaded-compositing
* in-process-gpu
* use-gl core_profile
Starting main loop...
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
Jul 25 13:22:55.913 DEBG begin change check, db_mod: 1658755187, folder_mod: 1658755187
Jul 25 13:22:55.913 DEBG skip check
Jul 25 13:22:55.913 DEBG fetching meta...
Jul 25 13:22:55.913 DEBG begin media sync
Jul 25 13:22:55.962 DEBG remote SyncMeta { modified: TimestampMillis(1658755241163), schema: TimestampMillis(1658714463679), usn: Usn(14409), current_time: TimestampSecs(1658755375), server_message: "", should_continue: true, host_number: 0, empty: false }
Jul 25 13:22:55.962 DEBG local SyncMeta { modified: TimestampMillis(1658755298534), schema: TimestampMillis(1658714463679), usn: Usn(14409), current_time: TimestampSecs(1658755375), server_message: "", should_continue: true, host_number: 0, empty: false }
Jul 25 13:22:55.962 DEBG fetched, state: SyncState { required: NormalSyncRequired, local_is_newer: true, usn_at_last_sync: Usn(14409), latest_usn: Usn(14409), pending_usn: Usn(-1), new_usn: Some(Usn(14409)), server_message: "", host_number: 0 }
Jul 25 13:22:55.963 DEBG start
Jul 25 13:22:55.969 DEBG server usn was 12306
Jul 25 13:22:55.969 DEBG media sync complete
Jul 25 13:22:55.969 DEBG removed on remote, decks: 0, notes: 0, cards: 0
Jul 25 13:22:55.970 DEBG locally removed , decks: 0, notes: 0, cards: 0
Jul 25 13:22:55.970 DEBG applied server graves
Jul 25 13:22:55.970 DEBG unchunked changes
Jul 25 13:22:55.970 DEBG gathering local changes
Jul 25 13:22:55.971 DEBG sending, tags: 0, deck config: 0, decks: 2, notetypes: 0
Jul 25 13:22:55.992 DEBG received, tags: 0, deck config: 0, decks: 0, notetypes: 0
Jul 25 13:22:55.993 DEBG begin stream from server
Jul 25 13:22:56.005 DEBG received, revlog: 0, notes: 0, cards: 0, done: true
Jul 25 13:22:56.005 DEBG begin stream to server
Jul 25 13:22:56.007 DEBG sending, revlog: 5, notes: 0, cards: 5, done: true
Jul 25 13:22:56.018 DEBG sanity check
Jul 25 13:22:56.076 DEBG gathered local counts; waiting for server reply
Jul 25 13:22:56.163 DEBG got server reply
Jul 25 13:22:56.163 DEBG finalize
JS error :1 Uncaught TypeError: Cannot read properties of null (reading 'classList')
JS error :1 Uncaught ReferenceError: updateSyncColor is not defined
JS error :1 Uncaught TypeError: Cannot read properties of null (reading 'classList')
JS error :1 Uncaught TypeError: Cannot read properties of null (reading 'classList')
JS error :1 Uncaught TypeError: Cannot read properties of null (reading 'classList')
JS error :1 Uncaught ReferenceError: updateSyncColor is not defined
JS error :1 Uncaught ReferenceError: updateSyncColor is not defined
thread '<unnamed>' panicked at 'attempt to add with overflow', /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/ops/arith.rs:108:1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/browser/table/model.py", line 103, in _fetch_row_from_backend
row = CellRow(*self.col.browser_row_for_id(item))
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/collection.py", line 834, in browser_row_for_id
row = self._backend.browser_row_for_id(id_)
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/_backend/generated.py", line 1532, in browser_row_for_id
raw_bytes = self._run_command(9, 7, message.SerializeToString())
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/_backend/__init__.py", line 140, in _run_command
return self._backend.command(service, method, input)
pyo3_runtime.PanicException: attempt to add with overflow
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', rslib/src/backend/mod.rs:181:18
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', rslib/src/backend/mod.rs:181:18
Caught exception:
Traceback (most recent call last):
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/progress.py", line 118, in handler
func()
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/utils.py", line 1018, in <lambda>
self.editor.call_after_note_saved(lambda: func(self, *args, **kwargs))
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/browser/browser.py", line 467, in on_all_or_selected_rows_changed
self.card = self.table.get_single_selected_card()
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/browser/table/table.py", line 105, in get_single_selected_card
return self._model.get_card(self._selected()[0])
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/browser/table/model.py", line 222, in get_card
card = self._state.get_card(self.get_item(index))
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/browser/table/state.py", line 195, in get_card
if cards := self.get_note(item).cards():
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/browser/table/state.py", line 200, in get_note
return self.col.get_note(NoteId(item))
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/collection.py", line 478, in get_note
return Note(self, id=id)
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/notes.py", line 49, in __init__
self.load()
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/notes.py", line 55, in load
note = self.col._backend.get_note(self.id)
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/_backend/generated.py", line 619, in get_note
raw_bytes = self._run_command(2, 5, message.SerializeToString())
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/_backend/__init__.py", line 140, in _run_command
return self._backend.command(service, method, input)
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: PoisonError { .. }
Caught exception:
Traceback (most recent call last):
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/taskman.py", line 122, in _on_closures_pending
closure()
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/taskman.py", line 71, in <lambda>
lambda future: self.run_on_main(lambda: on_done(future))
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/operations/__init__.py", line 255, in wrapped_done
future.result()
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/external/python/lib/python3.9/concurrent/futures/_base.py", line 438, in result
return self.__get_result()
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/external/python/lib/python3.9/concurrent/futures/_base.py", line 390, in __get_result
raise self._exception
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/external/python/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/operations/__init__.py", line 239, in wrapped_op
return self._op(mw.col)
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/browser/sidebar/tree.py", line 198, in <lambda>
parent=self.browser, op=lambda _: self._root_tree(), success=on_done
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/browser/sidebar/tree.py", line 501, in _root_tree
self._build_stage(root, stage)
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/browser/sidebar/tree.py", line 507, in _build_stage
self._saved_searches_tree(root)
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/browser/sidebar/tree.py", line 556, in _saved_searches_tree
saved = self._get_saved_searches()
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/browser/sidebar/tree.py", line 1142, in _get_saved_searches
return self.col.get_config(self._saved_searches_key, {})
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/collection.py", line 871, in get_config
return self.conf.get_immutable(key)
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/config.py", line 43, in get_immutable
return from_json_bytes(self.col._backend.get_config_json(key))
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/_backend/generated.py", line 1004, in get_config_json
raw_bytes = self._run_command(5, 0, message.SerializeToString())
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/_backend/__init__.py", line 140, in _run_command
return self._backend.command(service, method, input)
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: PoisonError { .. }
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', rslib/src/backend/mod.rs:181:18
Traceback (most recent call last):
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/qt/aqt/browser/table/model.py", line 103, in _fetch_row_from_backend
row = CellRow(*self.col.browser_row_for_id(item))
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/collection.py", line 834, in browser_row_for_id
row = self._backend.browser_row_for_id(id_)
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/_backend/generated.py", line 1532, in browser_row_for_id
raw_bytes = self._run_command(9, 7, message.SerializeToString())
File "/private/var/tmp/_bazel_zqk/edd43f1caa7df830521e876a1dc536fa/execroot/ankidesktop/bazel-out/darwin-fastbuild/bin/qt/runanki.runfiles/ankidesktop/pylib/anki/_backend/__init__.py", line 140, in _run_command
return self._backend.command(service, method, input)
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: PoisonError { .. }
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', rslib/src/backend/mod.rs:181:18