Comments (12)
I imagine this is Skia's fault, not skia-python
's; I'll try to narrow down the issue and if I can confirm that the issue is in Skia, I'll file a bug there.
from skia-python.
This has already been reported
I think: #214 - likely an upstream error - or lack of update of mac os x GL stack.
from skia-python.
It is probably not even skia's fault, but Apple's.
from skia-python.
Mac os x's GL stack is significantly behind others.
from skia-python.
I can't reproduce your shader problem on Linux. Not quite the same as #214 , as I see these errors instead:
$ python3 lab13.py http://browser.engineering/
OpenGL initialized: vendor=b'AMD',renderer=b'AMD Radeon R5 Graphics (radeonsi, stoney, LLVM 17.0.6, DRM 3.57, 6.8.4-200.fc39.x86_64)'
Script http://browser.engineering/feedback.js crashed SyntaxError: parse error (line 39)
at [anon] (eval:39) internal
at [anon] (duk_js_compiler.c:3797) internal
Script http://browser.engineering/book.js crashed SyntaxError: parse error (line 4)
at [anon] (eval:4) internal
at [anon] (duk_js_compiler.c:511) internal
BTW, your script relies on a specific way of installing dukpy - getting it from the Linux distribution (Redhat Fedora in my case), it is installed without any of the *.py scripts . Just dukpy.cpython-312-x86_64-linux-gnu.so
. It looks like you need __init__.py
, which loads from .evaljs import evaljs, JSInterpreter
. I was seeing AttributeError: module 'dukpy' has no attribute 'JSInterpreter'
error when I had it installed via the first method; and had to do pip install --user dukpy
to get around it.
This may be a packaging bug on Redhat's part, in which case you (or I) should file at https://bugzilla.redhat.com/
from skia-python.
Let me know to retry if you can fix the crashed SyntaxError: parse error
.
from skia-python.
Ah, heh, the syntax error is unfortunately expected behavior! This is the browser running a website that uses JS syntax not supported by DukPy. Will look into RedHat
from skia-python.
I just get a window of your web site, and those messages. So i assume that's correct behavior? In that case this is mac os x specific and same as #214 .
As for the packaging issue, the file listing of the package is https://koji.fedoraproject.org/koji/rpminfo?rpmID=35288394 - missing all the *.py files. I am not familiar with it, and how it should be.
from skia-python.
Btw, the lab13 script also seems to be doing a busy wait and tie up one of my cpu's while it runs. (Just looking at my system load monitor).
from skia-python.
I’ll look, may be an issue
from skia-python.
Argh, the busy wait loop is the while True:
on line 1491 in mainloop. Polling for events isn't ideal - there has got to be a way of registering event handler, for better efficiency.
from skia-python.
Closed as duplicate
from skia-python.
Related Issues (20)
- Raspberry Pi 4 Support (linux 32-bit arm) HOT 8
- Newer system gets an extra skip on exit in testing HOT 2
- AttributeError: 'skia.Paint' object has no attribute 'setTextScaleX' HOT 1
- How to underline and strikethrough fonts? HOT 4
- Binding the skparagraph module
- Mac font is thicker than Linux font HOT 3
- Missing `skia.TableColorFilter.MakeARGB` equivalent in latest builds HOT 9
- deprecation of `distutils`upstream for python >= 3.12 HOT 8
- m122: SkFontMgr::RefDefault() has been deleted HOT 5
- Is there a way to use skia.Surface to export high quality images? HOT 5
- Missing `getBlendMode` on `skia.Paint` objects HOT 7
- "instance = class() ; instance.initGL()" vs "instance = class.MakeGL()
- rgb r and b are working in reverse fashion... HOT 1
- rgb r and b are working in reverse fashion... HOT 1
- Improve SamplingOptions, and adding test cases HOT 7
- Identify what breaks in m122 for font(typeface("")) on mac os HOT 7
- Support for Python 3.12 HOT 2
- Build for python3.21 HOT 1
- python3.7 could not pip install skia-python HOT 4
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 skia-python.