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

doesn't work on Bromite browser anymore #171

Closed
open-contracts opened this issue Apr 28, 2022 · 16 comments
Closed

doesn't work on Bromite browser anymore #171

open-contracts opened this issue Apr 28, 2022 · 16 comments

Comments

@open-contracts
Copy link
Contributor

Since I updated to recent versions of the html5 client, the xpra window stays blue on mobile. I can replicate this on desktop chrome, using the mobile layout option. Looking at the chrome developer console, I get this error:

image

Everything works just fine on desktop otherwise, and the error above does not appear either.

@totaam
Copy link
Collaborator

totaam commented Apr 28, 2022

Caused by #20 / #122

We've had problems with mobile before: abfccbd

@open-contracts
Copy link
Contributor Author

open-contracts commented Apr 28, 2022

thank you! forcing const DECODE_WORKER = true; fixed it for me again. What was the problem with decode worker on mobile? Do you think it would be a problem on lower end phones? or older browsers?

@totaam
Copy link
Collaborator

totaam commented Apr 30, 2022

@open-contracts the commit above should fix the error you reported: we don't try to use the offscreen API when DECODE_WORKER = false.
But it seems like you are saying that decode worker does work on mobile?

Which specific version / mobile are you using?
Perhaps we need a better check than just isMobile(). @basilgello which devices / browsers were causing problems for you?

@basilgello
Copy link
Contributor

@totaam it was Bromite (https://github.com/bromite/bromite) on LineageOS. No picture displayed and no packets flowing thru communication websocket. What's interesting, Chrome and Firefox do display the picture, yet without offscreen API.

I must reevaluate bromite bugs anyway, because all the bugs we had with html5 client in 2021 are still present on newer Bromites and otherwise it is the best browser on Android for me.

@totaam
Copy link
Collaborator

totaam commented Apr 30, 2022

@basilgello understood, but if Bromite is the only browser hitting this issue, we should not be penalising every mobile browser.

@basilgello
Copy link
Contributor

@totaam I need to do testing just like I did for audio codecs :) Let me build master trunk on Debian and make some tests tomorrow. You know I was a bit limited in my capabilities but now I settled everything a bit!

@basilgello
Copy link
Contributor

@totaam I tested the latest trunk of Xpra + Xpra-HTML5 on the following Android browsers:

  • Google Chrome 101.0.4951.41
  • Chromium 100.0.4896.135 (built by Bromite author)
  • Firefox 100.1.1
  • Firefox Focus 8.16.0

and they all work with DECODE_WORKER = true.

Bromite, on the other side, now fails even to connect to websocket :(
I guess I will build debug Bromite and try debugging it myself.

Can you please make DECODE_WORKER configurable via default-settings and let it on by default so older browser users can turn it off if shit happens?

totaam added a commit that referenced this issue May 1, 2022
@totaam
Copy link
Collaborator

totaam commented May 1, 2022

Can you please make DECODE_WORKER configurable via default-settings and let it on by default so older browser users can turn it off if shit happens?

OK. I'll see if I can find the time.

@basilgello
Copy link
Contributor

OK. I'll see if I can find the time.

If I dont make it first. Maybe leave it to me then, I will do Bromite debugging anyway

@basilgello
Copy link
Contributor

And Bromite 101.0.4951.53 works now too, except no floating menu bar is rendered. Menu items are rendered as text. Will investigate!

@totaam
Copy link
Collaborator

totaam commented May 4, 2022

So, for months I ended up penalizing all mobile users for a bug that just was not in xpra at all!

@totaam totaam closed this as completed May 4, 2022
@totaam totaam changed the title doesn't work on mobile browsers anymore doesn't work on Bromite browser anymore May 4, 2022
@basilgello
Copy link
Contributor

So, for months I ended up penalizing all mobile users for a bug that just was not in xpra at all!

No, I did the tests on Chromiums too.

@totaam
Copy link
Collaborator

totaam commented May 5, 2022

No, I did the tests on Chromiums too.

So there are versions of Chromium that have this problem.
But we don't know what the problem is so we can't test for it..

@basilgello
Copy link
Contributor

First problem I see manifests on Python 3.9 but 3.10 is fine. Second one targeted Chromiums from 80 to 100 (roughly). Yeah we need some tests on older series.

@totaam
Copy link
Collaborator

totaam commented May 5, 2022

First problem I see manifests on Python 3.9 but 3.10 is fine.

There are no incompatibilities with either of these versions.
Are you sure this isn't caused by an incomplete build / wrong binary version? Something like #3536, #3531

Second one targeted Chromiums from 80 to 100 (roughly).

If we had a Javascript console backtrace, we could add a sanity check before enabling the decoder worker.

@basilgello
Copy link
Contributor

Yeah we need some tests on older series.

I can arrange it but it needs either time or access to device testing farm :)

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

3 participants