Frewacom / pywalfox

Dynamic theming of Firefox (and Thunderbird) using your Pywal colors
https://addons.mozilla.org/en-US/firefox/addon/pywalfox/
Mozilla Public License 2.0
583 stars 12 forks source link

Disconnected from native messaging host. Exceeding message byte limit. #65

Closed dyce closed 1 year ago

dyce commented 3 years ago

First of all, thanks for this super cool project! Unfortunately at some point it just stopped working for me.

Pywalfox version: 2.7.2

Addon debugging in FF shows me this error in the console: Disconnected from native messaging host: Error: Native application tried to send a message of 1734439797 bytes, which exceeds the limit of 1048576 bytes. 2021-05-31-164250_1277x358_scrot

The debugging section on the addon page shows the following: 2021-05-31-204709_379x197_scrot

pywal start -p --verbose gives:

pywalfox start -p --verbose
[05-31-2021 09:12:28] DEBUG:Using python 3.8.5
[05-31-2021 09:12:28] DEBUG:Firefox profile path is relative
[05-31-2021 09:12:28] DEBUG:Found chrome directory at path: /home/abc/.mozilla/firefox/vfo7c3jl.default-release/chrome
[05-31-2021 09:12:28] DEBUG:Setup socket server using AF_UNIX (linux/darwin)
[05-31-2021 09:12:28] DEBUG:Successfully bound socket to: /tmp/pywalfox_socket 

Clicking the Fetch Pywal Colors button seems to do nothing anymore.

I tried and check all of the suggestions in the troubleshooting section, and also reinstalled firefox and wiped the userprofiles but nothing seems to work. Any idea what could cause this?

Best regards!

Frewacom commented 3 years ago

Sorry for the late response.

Honestly, I am not really sure why this happens. I recall someone having a similar issue about a year ago and eventually it boiled down to the python version (2.7). In this case, I am currently using an even newer python version with no issues whatsoever, so I would assume that this is not the cause of the issue.

Do you know if this started happening after you updated the messaging host? I see that you are using 2.7.2, which was released quite recently.

dyce commented 3 years ago

Don't worry about response time!

I read through that issue from the other user and wiping Firefox seemed to help there, but that didn't fix it for me. I also tried to install another version of Firefox (like developer or nightly) with a new profile but it was the same problem there.

Unfortunately i don't really remember when it stopped working, but it has to be a some weeks ago at least.

Frewacom commented 3 years ago

Perhaps you could try to install a previous version of the messaging host, e.g. 2.7.1 or 2.7.0, just to make sure? If you do, make sure to also run pywalfox uninstall and pywalfox install after installing the new version.

dyce commented 3 years ago

Good idea! So last working version for me that i can install with pip is 2.6

Frewacom commented 3 years ago

Any update on this?

dyce commented 3 years ago

2.6 is working for me, if i switch to 2.7.0 the error occurs again.

Frewacom commented 3 years ago

Okay, good to know. Thanks!

I will look at this later today 👍🏼