Comments (4)
#!/usr/bin/env python
import webview
import threading
t = threading.Thread(target=webview.create_window, args=("Test",))
t.start()
webview.load_url("https://www.google.com/")
(Notice the lack of default URL)
Produces:
/home/astronouth7303/.local/lib/python3.5/site-packages/webview/gtk.py:15: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk as gtk
/home/astronouth7303/.local/lib/python3.5/site-packages/webview/gtk.py:18: PyGIWarning: WebKit was imported without specifying a version first. Use gi.require_version('WebKit', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import WebKit as webkit
INFO:webview:Using GTK
1 0x7f2108b6bbc7 /usr/lib/libjavascriptcoregtk-3.0.so.0(WTFCrash+0x17) [0x7f2108b6bbc7]
2 0x7f2108a207dd /usr/lib/libjavascriptcoregtk-3.0.so.0(_ZN3JSC8evaluateEPNS_9ExecStateERKNS_10SourceCodeENS_7JSValueEPS5_+0x2cd) [0x7f2108a207dd]
3 0x7f21094d4b66 /usr/lib/libwebkitgtk-3.0.so.0(+0x627b66) [0x7f21094d4b66]
4 0x7f21094d4e5b /usr/lib/libwebkitgtk-3.0.so.0(+0x627e5b) [0x7f21094d4e5b]
5 0x7f210969ba7b /usr/lib/libwebkitgtk-3.0.so.0(+0x7eea7b) [0x7f210969ba7b]
6 0x7f210969bf9a /usr/lib/libwebkitgtk-3.0.so.0(+0x7eef9a) [0x7f210969bf9a]
7 0x7f210986ad65 /usr/lib/libwebkitgtk-3.0.so.0(+0x9bdd65) [0x7f210986ad65]
8 0x7f210986b6a0 /usr/lib/libwebkitgtk-3.0.so.0(+0x9be6a0) [0x7f210986b6a0]
9 0x7f2109854902 /usr/lib/libwebkitgtk-3.0.so.0(+0x9a7902) [0x7f2109854902]
10 0x7f21098549c8 /usr/lib/libwebkitgtk-3.0.so.0(+0x9a79c8) [0x7f21098549c8]
11 0x7f21098565a6 /usr/lib/libwebkitgtk-3.0.so.0(+0x9a95a6) [0x7f21098565a6]
12 0x7f2109856f12 /usr/lib/libwebkitgtk-3.0.so.0(+0x9a9f12) [0x7f2109856f12]
13 0x7f21096245b3 /usr/lib/libwebkitgtk-3.0.so.0(+0x7775b3) [0x7f21096245b3]
14 0x7f21099b036a /usr/lib/libwebkitgtk-3.0.so.0(+0xb0336a) [0x7f21099b036a]
15 0x7f21092f527e /usr/lib/libwebkitgtk-3.0.so.0(+0x44827e) [0x7f21092f527e]
16 0x7f21099aeaa6 /usr/lib/libwebkitgtk-3.0.so.0(+0xb01aa6) [0x7f21099aeaa6]
17 0x7f210999464f /usr/lib/libwebkitgtk-3.0.so.0(+0xae764f) [0x7f210999464f]
18 0x7f2109994841 /usr/lib/libwebkitgtk-3.0.so.0(+0xae7841) [0x7f2109994841]
19 0x7f2109a038bd /usr/lib/libwebkitgtk-3.0.so.0(+0xb568bd) [0x7f2109a038bd]
20 0x7f2109a03a79 /usr/lib/libwebkitgtk-3.0.so.0(+0xb56a79) [0x7f2109a03a79]
21 0x7f21099f8cc0 /usr/lib/libwebkitgtk-3.0.so.0(+0xb4bcc0) [0x7f21099f8cc0]
22 0x7f210a206303 /usr/lib/libwebkitgtk-3.0.so.0(+0x1359303) [0x7f210a206303]
23 0x7f2117aca8ca /usr/lib/libgio-2.0.so.0(+0x628ca) [0x7f2117aca8ca]
24 0x7f2117af2323 /usr/lib/libgio-2.0.so.0(+0x8a323) [0x7f2117af2323]
25 0x7f2117af2359 /usr/lib/libgio-2.0.so.0(+0x8a359) [0x7f2117af2359]
26 0x7f211c36043a /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x15a) [0x7f211c36043a]
27 0x7f211c3607f0 /usr/lib/libglib-2.0.so.0(+0x4a7f0) [0x7f211c3607f0]
28 0x7f211c360b12 /usr/lib/libglib-2.0.so.0(g_main_loop_run+0xc2) [0x7f211c360b12]
29 0x7f210ecbc775 /usr/lib/libgtk-3.so.0(gtk_main+0x85) [0x7f210ecbc775]
30 0x7f211c1131c8 /usr/lib/libffi.so.6(ffi_call_unix64+0x4c) [0x7f211c1131c8]
31 0x7f211c112c2a /usr/lib/libffi.so.6(ffi_call+0x32a) [0x7f211c112c2a]
Segmentation fault (core dumped)
from pywebview.
load_html()
seems to be ok, though.
from pywebview.
There was a threading permission violation. The fix is in master now. If it solved your problem, please close this issue.
from pywebview.
Ok, yup. Thank you. Looking forward to the release.
from pywebview.
Related Issues (20)
- Issue with pywebview Version Upgrade from 4.4.1 to 5.0.5 HOT 2
- Whether to support webgal HOT 4
- how to build android apk HOT 7
- webview tag in pywebview HOT 6
- Support transparency with blurred background. HOT 1
- Drag Area cannot be initialized by a script after page loads. HOT 3
- RangeError: Maximum call stack size exceeded. HOT 7
- Frameless window can not be minimized by clicking its taskbar button HOT 4
- Use window inside of tkinter HOT 4
- iframe cannot call Python HOT 1
- Nuitka support HOT 7
- [WIN] Folder Dialog - New folder is renamed with a delay.
- [Maybe bug] The todos app crashed immediately after I run "buildozer -v android debug deploy run" HOT 13
- google account logout after close the pywebview window HOT 4
- any way to edit the response headers (or somehow disable X-Frame-Options)? HOT 7
- How do I unround the corners of a borderless window?
- [QUESTION] Can pywebview be embedded anywhere? HOT 2
- How can we lift the CORS restrictions in pywebview? HOT 3
- javascript print() not working with pywebview HOT 1
- There's a problem here HOT 2
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 pywebview.