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

Blank pop-up on massa wallet - Ubuntu #1280

Open
SlnPons opened this issue Dec 1, 2023 · 7 comments
Open

Blank pop-up on massa wallet - Ubuntu #1280

SlnPons opened this issue Dec 1, 2023 · 7 comments
Labels
issue:bug Something isn't working

Comments

@SlnPons
Copy link
Contributor

SlnPons commented Dec 1, 2023

The problem(s)
The pop-up is rendering blank.

To Reproduce
https://discord.com/channels/828270821042159636/1177269236628992102/1177269236628992102

Expected behavior(s)

Screenshots

MassaStation version
0.4.0
more info: https://discord.com/channels/828270821042159636/1178393948054618132/1178393948054618132

Desktop (please complete the following information):

  • OS: Ubuntu
@SlnPons SlnPons added the issue:bug Something isn't working label Dec 1, 2023
@SlnPons SlnPons added this to the Addressing user pains milestone Dec 1, 2023
@Thykof
Copy link
Contributor

Thykof commented Dec 1, 2023

The pop up is a wails embedded browser kit (https://wails.io). The blank page may be caused by an error in the routing.

To debug, we can try to print the event that is sent to wails and see why the switch statement for the routing doesn't redirect to the expected page.

@Uldosphere
Copy link

@Thykof how can I dump wails log after launching massastation in terminal ?

@Thykof
Copy link
Contributor

Thykof commented Dec 7, 2023

@Thykof how can I dump wails log after launching massastation in terminal ?

If I would do it, I would modify the code to add some LogPrint (https://wails.io/docs/reference/runtime/log/#logprint).

@Chewbaccoin
Copy link

Still buggy after upgrading to station v0.6.1 after mainnet launch

@thomas-senechal
Copy link
Member

From Wails FAQ:

My application has started to just show a blank window on Linux. What's going on?

It seems that there might be some issues with certain graphics card drivers that is causing this. One propsed workaround is to set an environment variable before launching: WEBKIT_DISABLE_DMABUF_RENDERER=1

@thomas-senechal
Copy link
Member

From Wails FAQ:

My application has started to just show a blank window on Linux. What's going on?

It seems that there might be some issues with certain graphics card drivers that is causing this. One propsed workaround is to set an environment variable before launching: WEBKIT_DISABLE_DMABUF_RENDERER=1

While this might work, it might cause issues with other Webkit apps if set system wide since it will be applied to any Wekbit app.

A solution to this might be to create our own env variable such as STATION_WEBKIT_DISABLE_DMABUF_RENDERER. At wallet start up, before starting Wails, we check if this variable exists and is set to 1. If so, we then inject WEBKIT_DISABLE_DMABUF_RENDERER=1 into the running wallet env.

That way, we could ask users with this issue to set STATION_WEBKIT_DISABLE_DMABUF_RENDERER globally and other Webkit apps shouldn't have any issue due to WEBKIT_DISABLE_DMABUF_RENDERER

@Chewbaccoin
Copy link

From Wails FAQ:

My application has started to just show a blank window on Linux. What's going on?

It seems that there might be some issues with certain graphics card drivers that is causing this. One propsed workaround is to set an environment variable before launching: WEBKIT_DISABLE_DMABUF_RENDERER=1

Man ! You're a lifesaver! That just worked fine!

I opened a terminal, ran "export WEBKIT_DISABLE_DMABUF_RENDERER=1" then ran massastation and... tada ! everything is fixed !
Thumbs up !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants