GithubHelp home page GithubHelp logo

Comments (12)

pavpanchekha avatar pavpanchekha commented on June 23, 2024

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.

HinTak avatar HinTak commented on June 23, 2024

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.

HinTak avatar HinTak commented on June 23, 2024

It is probably not even skia's fault, but Apple's.

from skia-python.

HinTak avatar HinTak commented on June 23, 2024

Mac os x's GL stack is significantly behind others.

from skia-python.

HinTak avatar HinTak commented on June 23, 2024

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.

HinTak avatar HinTak commented on June 23, 2024

Let me know to retry if you can fix the crashed SyntaxError: parse error .

from skia-python.

pavpanchekha avatar pavpanchekha commented on June 23, 2024

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.

HinTak avatar HinTak commented on June 23, 2024

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.

HinTak avatar HinTak commented on June 23, 2024

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.

pavpanchekha avatar pavpanchekha commented on June 23, 2024

I’ll look, may be an issue

from skia-python.

HinTak avatar HinTak commented on June 23, 2024

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.

pavpanchekha avatar pavpanchekha commented on June 23, 2024

Closed as duplicate

from skia-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.