polydock icon indicating copy to clipboard operation
polydock copied to clipboard

Error trying to run polydock

Open clemencyworld1 opened this issue 2 years ago • 7 comments

I couldn't detect the required dependencies, so i installed everything containing the mentioned dependencies in their name. However when i try to run polydock i get the following error:

$ ./bin/polydock

(gjs:18188): Gjs-CRITICAL **: 11:54:23.095: JS ERROR: Error: Constructor called as normal method. Use 'new SomeObject()' not 'SomeObject()' class_1@./bin/polydock:899:46 imports.gi.versions.GdkPixbuf<@./bin/polydock:951:15 @./bin/polydock:955:2

(gjs:18188): Gjs-CRITICAL **: 11:54:23.095: Script ./bin/polydock threw an exception

How do i get past this. Really want to try it. I am running Antix linux with debian sid sources

clemencyworld1 avatar Apr 18 '22 10:04 clemencyworld1

I'm having the Same issue. Only started having this issue after updating. I would guess that GJS or some other dependency updated which caused braking changes. I'm guessing a PR is going to be required.

I'm considering opening and maintaining a fork of this project, since I do like it. It just seems to be unmaintained at the time.

dmaahs2017 avatar Apr 19 '22 21:04 dmaahs2017

same issue

MintArchit avatar Nov 19 '22 15:11 MintArchit

Gutentag @MintArchit, I never got around to building a working fork. And I haven't found a replacement dock that I love. Though I'd have more motivation to do it on the side if I knew someone else wanted to use it too.

dmaahs2017 avatar Dec 07 '22 04:12 dmaahs2017

Hey @dmaahs2017, up to now I have not found an alternative either. I would definitely prefer a fixed Polydock. Last Time I wrote, all versions did not work for me.

Exception Ver 1.4.0
Gjs-Message: 01:12:49.090: JS WARNING: [polydock-bin-1.4.0/bin/polydock 890]: Requiring GdkX11 but it has 2 versions available; use imports.gi.versions to pick one

(gjs:60174): Gjs-CRITICAL **: 01:12:49.090: JS ERROR: Error: Requiring GdkX11, version none: Requiring namespace 'Gdk' version '4.0', but '3.0' is already loaded
@polydock-bin-1.4.0/bin/polydock:890:1


(gjs:60174): Gjs-CRITICAL **: 01:12:49.090: Script polydock-bin-1.4.0/bin/polydock threw an exception
Exception Ver 2.0.2
(gjs:61844): Gjs-CRITICAL **: 01:20:47.079: JS ERROR: Error: Constructor called as normal method. Use 'new SomeObject()' not 'SomeObject()'
[email protected]/bin/polydock:884:46
imports.gi.versions.GdkPixbuf<@polydock-bin-2.0.2/bin/polydock:936:15
@polydock-bin-2.0.2/bin/polydock:940:2


(gjs:61844): Gjs-CRITICAL **: 01:20:47.079: Script polydock-bin-2.0.2/bin/polydock threw an exception
Exception Ver 2.0.3
(gjs:62159): Gjs-CRITICAL **: 01:22:12.689: JS ERROR: Error: Constructor called as normal method. Use 'new SomeObject()' not 'SomeObject()'
[email protected]/bin/polydock:897:46
imports.gi.versions.GdkPixbuf<@polydock-bin-2.0.3/bin/polydock:949:15
@polydock-bin-2.0.3/bin/polydock:953:2


(gjs:62159): Gjs-CRITICAL **: 01:22:12.689: Script polydock-bin-2.0.3/bin/polydock threw an exception
Exception Ver 2.1.0
(gjs:62269): Gjs-CRITICAL **: 01:22:43.812: JS ERROR: Error: Constructor called as normal method. Use 'new SomeObject()' not 'SomeObject()'
[email protected]/bin/polydock:899:46
imports.gi.versions.GdkPixbuf<@polydock-bin-2.1.0/bin/polydock:951:15
@polydock-bin-2.1.0/bin/polydock:955:2


(gjs:62269): Gjs-CRITICAL **: 01:22:43.812: Script polydock-bin-2.1.0/bin/polydock threw an exception

Just out of curiosity i tested them again and Ver. 2.0.0 and 2.0.1 are running !!!

Preview Ver 2.0.1 with default settings

pd_2 0 1

Tomorrow, I'll delve deeper into this.

P.s. current setup ubuntu22lts + i3 + polybar

MintArchit avatar Dec 08 '22 00:12 MintArchit

Well that's really cool to hear! Those working versions might be a good starting point for a fork. I'm running arch + bspwm + polybar

dmaahs2017 avatar Dec 08 '22 01:12 dmaahs2017

Same issue is happening with me :( 2.0.1 threw some promising code at me, but it didn't launch because

(polydock:18496): Gjs-CRITICAL **: 15:36:39.283: JS ERROR: Error: Function Gdk.property_get() cannot be called: argument 'actual_property_type' with type interface is not introspectable because it has a type not supported for (out caller-allocates)

quiltedstars avatar Apr 05 '23 18:04 quiltedstars

Was able to fix this issue with https://github.com/folke/polydock/pull/55

AndrewSwerlick avatar Apr 28 '23 03:04 AndrewSwerlick