Giter VIP home page Giter VIP logo

Comments (15)

bigbn avatar bigbn commented on June 3, 2024 2

Also getting this

vfunc_paint extension.js:158:39
JS ERROR: TypeError: Object 0x2c2197673df0 is not a subclass of GObject_Object, it's a GFundamental_Object
                                              [email protected]:158:39

looking for a solution

from drop-down-terminal-x.

romgrk avatar romgrk commented on June 3, 2024 2

Here is the root cause: https://gitlab.gnome.org/GNOME/gjs/-/issues/353

So the SouthBorderEffect is probably not going to work until a fix is released upstream. I'd disable it until further notice.

from drop-down-terminal-x.

Mathok avatar Mathok commented on June 3, 2024

#82 fixes the problem for me

from drop-down-terminal-x.

Kerrung avatar Kerrung commented on June 3, 2024

#82 fixes the problem for me

But not fixes the problem for me on 3.38. The immediately extension hangs when opened by hotkey. Then only reboot or relog helps...

from drop-down-terminal-x.

romgrk avatar romgrk commented on June 3, 2024

Here is journalctl -a | grep 'terminal-x\|JS-ERROR' output on Archlinux with #82 applied: https://pastebin.com/GJJCF1eP

Steps:

  • Hotkey to activate extension

Notes:
The terminal is present but is not rendered. Its presence is noticeable because the space occupied by it captures mouse events to windows below it. It seems to work as expected (verified by running commands), it's just completely transparent.

The two locations mentionned in the log (lines 120:39 and 733:9) are reproduced below.

 115   │   vfunc_paint: function (paintContext) {
 116   │     const actor = this.get_actor();
 117   │ 
 118   │     if (paintContext.get_framebuffer) {
 119   │       const framebuffer = paintContext.get_framebuffer();
·120   │       const coglContext = framebuffer.get_context();
 121   │       const alloc = actor.get_allocation_box();
 122   │       actor.continue_paint(paintContext);
 123   │       let pipeline = new Cogl.Pipeline(coglContext);
 124   │       pipeline.set_color(this._color);
 125   │       framebuffer.draw_rectangle(pipeline, 0, alloc.get_height(), alloc.get_width(), alloc.get_height() - this._width);
 126   │     } else {
 127   │       const geom = actor.get_allocation_geometry();
 128   │       actor.continue_paint();
 129   │       Cogl.set_source_color(this._color);
 130   │       Cogl.rectangle(0, geom.height, geom.width, geom.height - this._width);
 131   │     }
 132   │   }
·733 ~ │         moveActor(this._windowActor, {
 734   │           y: this._windowY,
 735   │           x: this._windowX,
 736   │           onUpdate: Lang.bind(this, this._updateClip),
 737   │           scale_y: 1.0,
 738 ~ │           duration: this._openingAnimationTimeMillis / 1000.0,
 739   │           transition: 'easeOutExpo',
 740   │           onComplete: completeOpening
 741   │         });

from drop-down-terminal-x.

Mathok avatar Mathok commented on June 3, 2024

You are using wayland or x-session?

you could try this solution

zzrough@b048aef

from drop-down-terminal-x.

Kerrung avatar Kerrung commented on June 3, 2024

You are using wayland or x-session?

Tried both, both don't work.

you could try this solution

zzrough@b048aef

Maybe later...

from drop-down-terminal-x.

romgrk avatar romgrk commented on June 3, 2024

Can make the extension work by applying the Tweener => Clutter changes plus removing the SouthBorderEffect that is causing those warnings.

patch.txt

(I'd also take a moment to mention that I hate each year more and more Gnome developers for being incompetent asshats at maintaining a semblance of backwards compatibility or of care about anyone but themselves)

from drop-down-terminal-x.

bigbn avatar bigbn commented on June 3, 2024

fixed in d6d1a1b, but I need to test it in previous gnome versions before I can publish it.

from drop-down-terminal-x.

bigbn avatar bigbn commented on June 3, 2024

Published

from drop-down-terminal-x.

romgrk avatar romgrk commented on June 3, 2024

Thanks. Note that GJS fixed the bug in version 1.67.1, so I think only version 1.66.1 is affected. You could re-implement skipping that version for the border. But IMHO I don't see any difference without the border, and less code is better :)

from drop-down-terminal-x.

Kerrung avatar Kerrung commented on June 3, 2024

@bigbn Thanks, but your extension works on GNOME 3.38 only if manually installed from your repo, but I can't install it from extension's web page.

Screenshot from 2020-10-19 14-41-34

from drop-down-terminal-x.

bigbn avatar bigbn commented on June 3, 2024

@bigbn Thanks, but your extension works on GNOME 3.38 only if manually installed from your repo, but I can't install it from extension's web page.

Screenshot from 2020-10-19 14-41-34

journalctl -a | grep 'terminal-x|JS-ERROR'

from drop-down-terminal-x.

jonasbb avatar jonasbb commented on June 3, 2024

The extension does not work for me on Fedora 33 with wayland.

The log output shows:

Okt 30 10:55:08 work-hp gnome-shell[2196]: JS WARNING: [/home/jbushart/.local/share/gnome-shell/extensions/[email protected]/extension.js 1027]: Requiring Vte but it has 2 versions available; use imports.gi.versions to pick one
Okt 30 10:55:08 work-hp gnome-shell[2196]: JS ERROR: Extension [email protected]: TypeError: gdkDisplay is null
                                           _updateCurrentMonitor@/home/jbushart/.local/share/gnome-shell/extensions/[email protected]/extension.js:546:37
                                           enable@/home/jbushart/.local/share/gnome-shell/extensions/[email protected]/extension.js:271:10
                                           _updateWindowGeometry@/home/jbushart/.local/share/gnome-shell/extensions/[email protected]/extension.js:585:22
                                           throttle/func._throttlingId<@/home/jbushart/.local/share/gnome-shell/extensions/[email protected]/convenience.js:72:10

from drop-down-terminal-x.

brknkfr avatar brknkfr commented on June 3, 2024
Okt 30 10:55:08 work-hp gnome-shell[2196]: JS WARNING: [/home/jbushart/.local/share/gnome-shell/extensions/[email protected]/extension.js 1027]: Requiring Vte but it has 2 versions available; use imports.gi.versions to pick one
Okt 30 10:55:08 work-hp gnome-shell[2196]: JS ERROR: Extension [email protected]: TypeError: gdkDisplay is null
                                           _updateCurrentMonitor@/home/jbushart/.local/share/gnome-shell/extensions/[email protected]/extension.js:546:37
                                           enable@/home/jbushart/.local/share/gnome-shell/extensions/[email protected]/extension.js:271:10
                                           _updateWindowGeometry@/home/jbushart/.local/share/gnome-shell/extensions/[email protected]/extension.js:585:22
                                           throttle/func._throttlingId<@/home/jbushart/.local/share/gnome-shell/extensions/[email protected]/convenience.js:72:10

I got the same problem on a Gentoo system (gnome-shell 3.36.5 on wayland).

Nasty workaround: Delete the extension under https://extensions.gnome.org and reinstall it there (after the gnome-shell wayland-session is started).

Maybe we have to open a new issue?

from drop-down-terminal-x.

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.