Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offscreen can't send message to the paint worker #329

Open
totaam opened this issue Nov 12, 2024 · 0 comments
Open

offscreen can't send message to the paint worker #329

totaam opened this issue Nov 12, 2024 · 0 comments
Assignees

Comments

@totaam
Copy link
Collaborator

totaam commented Nov 12, 2024

There were some bugs that prevented the offscreen paint code from actually being used: e740303, 988b150
Now that these are fixed, I can enable it from the advanced options on the connect page, but the result is a blank window!

I have added some debug logging and the message seems to be getting lost between:

paint_worker.postMessage(

And
onmessage = function (e) {

I thought that perhaps the problem was from the refactoring that added:

importScripts("./Constants.js");

So I commented that out and replaced with const DEFAULT_BOX_COLORS = {}; for simplicity.
I also tried removing most attributes in the postMessage call.
Nothing helps!
The javascript console shows this debug message I have added:

sending draw bitmap:rgb24 to paint worker: Worker {onmessage: null, onerror: null}

The onmessage: null is suspicious. But I'm pretty sure that I somehow managed to get some messages across and it was still showing null.

@TijZwa TijZwa self-assigned this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants