facebook / flipper

A desktop debugging platform for mobile developers.
https://fbflipper.com/
MIT License
13.31k stars 954 forks source link

Flipper doesn't open on Kubuntu 22.04 #3721

Open Nantris opened 2 years ago

Nantris commented 2 years ago

🐛 Bug Report

After upgrading to 22.04, Flipper will no longer load. I tried downloading it anew and rebooting, but there's no change. The Flipper processes run in the background, but no window ever opens for the GUI.

There's no hints to what might be going wrong in the system logs.

To Reproduce

Upgrade Kubuntu from 21.10 to 22.04.

Environment

Flipper: 0.145.0 Kubuntu: 22.04 VMWare machine (issue exists with both X11 and Wayland)

(Worked fine on 21.10)

passy commented 2 years ago

The only thing I could imagine causing problems here is Electron. Sadly, we've been blocked from updating it for a while.

As an annoying work-around while we figure this out, if you clone the repo and run yarn && yarn flipper-server, you can use the browser-based version of Flipper instead.

Nantris commented 2 years ago

Thanks for the reply @passy.

Sadly, we've been blocked from updating it for a while.

Why's that? What version is the latest version of Flipper built on?

Nantris commented 2 years ago

@passy - speaking of Electron versions, 0.148.0 spazzes out on my ancient macOS machine. Is there any way to force disable GPU acceleration or something else I might be able to try?

I'd like to test on Kubuntu also, but that will have to wait a bit as I rolled back the virtual machine.

Nantris commented 2 years ago

If anyone is running Ubuntu 22.04 or later, try running with the flag --disable-gpu and please let me know if it works! I scrapped the virtual machine I'd upgraded so I can't readily test it myself, but it fixes the macOS issues for me.

Unfortunately I'm not aware of any way to append the flag automatically in macOS like you could on Linux/Windows.

Nantris commented 2 years ago

--disable-gpu seems to work great except that it fills the logs with infinite spam messages, hundreds per second:

Screenshot_20220715_190316

It's created over 75000 entries in the time it took me to write up this very short comment. Then they stopped displaying. I hit the garbage icon and they started flooding in anew. Another 18000 messages within a few seconds.

Nantris commented 2 years ago

@passy @mweststrate @jknoxville @nikoant do you have any advice for resolving this or could it be added to the pending tasks for Flipper development? This is a pretty major issue for us, especially since Kubuntu 22.04 is the LTS version we'd been waiting for.

Here's a random sample of the messages:

19:06:26.788
6379
chromium
[ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
19:06:26.793
6379
chromium
[ERROR:shared_context_state.cc(348)] OOP raster support disabled: GrContext creation failed.
19:06:26.793
6379
chromium
[ERROR:gpu_channel_manager.cc(810)] ContextResult::kFatalFailure: Failed to InitializeGrContext for SharedContextState
19:06:26.794
6379
chromium
[ERROR:shared_image_stub.cc(460)] SharedImageStub: unable to create context
19:06:26.794
6379
chromium
[ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
19:06:26.799
6379
chromium
[ERROR:shared_context_state.cc(348)] OOP raster support disabled: GrContext creation failed.
19:06:26.800
6379
chromium
[ERROR:gpu_channel_manager.cc(810)] ContextResult::kFatalFailure: Failed to InitializeGrContext for SharedContextState
19:06:26.801
6379
chromium
[ERROR:shared_image_stub.cc(460)] SharedImageStub: unable to create context
19:06:26.801
6379
chromium
[ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
19:06:26.807
6379
chromium
[ERROR:shared_context_state.cc(348)] OOP raster support disabled: GrContext creation failed.
19:06:26.807
6379
chromium
[ERROR:gpu_channel_manager.cc(810)] ContextResult::kFatalFailure: Failed to InitializeGrContext for SharedContextState
19:06:26.807
6379
chromium
[ERROR:shared_image_stub.cc(460)] SharedImageStub: unable to create context
19:06:26.808
6379
chromium
[ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
19:06:26.812
6379
chromium
[ERROR:shared_context_state.cc(348)] OOP raster support disabled: GrContext creation failed.
19:06:26.813
6379
chromium
[ERROR:gpu_channel_manager.cc(810)] ContextResult::kFatalFailure: Failed to InitializeGrContext for SharedContextState
19:06:26.813
6379
chromium
[ERROR:shared_image_stub.cc(460)] SharedImageStub: unable to create context
19:06:26.814
6379
chromium
[ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
19:06:26.818
6379
chromium
[ERROR:shared_context_state.cc(348)] OOP raster support disabled: GrContext creation failed.
Nantris commented 2 years ago

Currently trying --use-vulkan --enable-features=Vulkan, which may work? But maybe I've just not hit any GPU issues yet.

https://peter.sh/experiments/chromium-command-line-switches/#use-vulkan

Xmaxer commented 1 year ago

Maybe not really related but thought I'd leave this here:

Using Vulkan like @Slapbox said fixed graphical issues on Ubuntu 22.04 for Flipper. I used to have odd things like flickering, icons disappearing etc. So just wanted to say thank you :)