# Webviews blank on Linux

**URL:** <https://forums.ankiweb.net/t/webviews-blank-on-linux/1433>\
**Category:** Beta Testing\
**Created:** [July 26, 2020, 7:54pm UTC](https://forums.ankiweb.net/t/webviews-blank-on-linux/1433 "2020-07-26T19:54:54Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![zjosua](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/zjosua/32/784_2.png) [@zjosua](https://forums.ankiweb.net/u/zjosua)\
**Post date:** [August 28, 2020, 5:27am UTC](https://forums.ankiweb.net/t/webviews-blank-on-linux/1433/6 "2020-08-28T05:27:19Z")

</div>

Yes I just did that now. They need to be set as an environment variable though (like `env QTWEBENGINE_CHROMIUM_FLAGS="--disable-seccomp-filter-sandbox" ./run`) because if I just append them to `./run`, bash thinks they are a file to be opened with `./run`.

All the suggested flags (`--disable-seccomp-filter-sandbox`, `--no-sandbox` and `--single-process`) allow me to open Anki without the `failure in syscall` error, and the WebViews actually display what they are supposed to.  
However the following error appears every time a WebView closes:

```auto
Caught exception:
Traceback (most recent call last):
  File "/home/zjosua/sw_dev/anki/qt/aqt/webview.py", line 37, in cmd
    return json.dumps(self.onCmd(str))
  File "/home/zjosua/sw_dev/anki/qt/aqt/webview.py", line 123, in _onCmd
    return self._onBridgeCmd(str)
  File "/home/zjosua/sw_dev/anki/qt/aqt/webview.py", line 529, in _onBridgeCmd
    if self._shouldIgnoreWebEvent():
  File "/home/zjosua/sw_dev/anki/qt/aqt/webview.py", line 522, in _shouldIgnoreWebEvent
    if sip.isdeleted(self):
TypeError: isdeleted() argument 1 must be sip.simplewrapper, not AnkiWebView

```

These didn’t show up when I didn’t pass any arguments (and got just blank WebViews), but I was able to provoke something similar when I started navigating with shortcuts:

```auto
Caught exception:
Traceback (most recent call last):
  File "/home/zjosua/sw_dev/anki/qt/aqt/main.py", line 997, in onStudyKey
    self.moveToState("review")
  File "/home/zjosua/sw_dev/anki/qt/aqt/main.py", line 658, in moveToState
    self.clearStateShortcuts()
  File "/home/zjosua/sw_dev/anki/qt/aqt/main.py", line 991, in clearStateShortcuts
    sip.delete(qs)
TypeError: delete() argument 1 must be sip.simplewrapper, not QShortcut

```

---

_[View the full topic](https://forums.ankiweb.net/t/webviews-blank-on-linux/1433)._
