gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Blank screen on opening

Open TaliskerMan opened this issue 1 year ago • 6 comments

Not sure of the issue here, just started using GitButler, but this is not what I expect to see when opening the app. wut Not sure what causes this? Tried both AppImage and DEB file - same results.

TaliskerMan avatar Sep 05 '24 00:09 TaliskerMan

Thanks for reporting!

It's not the first time I see this, but it would be important to know which versions of the app you have been using exactly, both for the AppImage and the DEB file.

Further, #3793 seems to be about the same phenomenon, even though it only mentions the FlatPack version - this issue is also reporting this for the DEB distribution.

#4789 may affect this issue as versions of dependencies will change.

Byron avatar Sep 05 '24 06:09 Byron

Hi Byron,

The versions is use are 0.12.23 which is the latest downloadable version of the AppImage and the DEB file. It is rather odd to me, as I was enjoying the app previously and was rebuilding my desktop PC to take advantage of some newer hardware. When I installed the AppImage, the first occurrence happened with that version. I removed the AppImage and chose the DEB version, same thing. I had seen it previously work without issue. First time this happened not sure how to debug appropriately when launched to provide logs. Is there a way to do that so that I can add meaningful input to help determine the issue?

Sincerely, Chuck

TaliskerMan avatar Sep 05 '24 11:09 TaliskerMan

I think this is related to, but perhaps not caused by: #4833

mtsgrd avatar Sep 05 '24 11:09 mtsgrd

Thanks for sharing, @TaliskerMan, and for offering to dig deeper.

With #4833 merged, you can try the latest nightly. If the issue persists, there could be something interesting in the logs that you might be able to share here.

Thanks again.

Byron avatar Sep 05 '24 20:09 Byron

I tried 0.12.24, same result sadly. However, I do have the logs, but not sure what to make of this as it is rather small and sparse in terms of output:

2024-09-06T10:56:28.851706Z  INFO crates/gitbutler-tauri/src/main.rs:65: system git executable for fetch/push: "git"
2024-09-06T10:56:28.853667Z  INFO crates/gitbutler-tauri/src/main.rs:102: starting app version=0.12.24 name=GitButler
2024-09-06T10:56:29.478179Z  INFO list_projects: crates/gitbutler-tauri/src/projects.rs:46: new
2024-09-06T10:56:29.478879Z  INFO list_projects: crates/gitbutler-tauri/src/projects.rs:46: close time.busy=671µs time.idle=32.8µs
2024-09-06T10:56:29.480066Z  INFO get_user: crates/gitbutler-tauri/src/users.rs:10: new
2024-09-06T10:56:29.480081Z  INFO get_user: crates/gitbutler-tauri/src/users.rs:10: close time.busy=7.96µs time.idle=7.33µs
2024-09-06T10:56:53.782123Z  INFO get_user: crates/gitbutler-tauri/src/users.rs:10: new
2024-09-06T10:56:53.782141Z  INFO get_user: crates/gitbutler-tauri/src/users.rs:10: close time.busy=4.76µs time.idle=16.3µs
2024-09-06T11:00:31.625601Z  INFO crates/gitbutler-tauri/src/main.rs:65: system git executable for fetch/push: "git"
2024-09-06T11:00:31.627521Z  INFO crates/gitbutler-tauri/src/main.rs:102: starting app version=0.12.24 name=GitButler
2024-09-06T11:00:32.239974Z  INFO list_projects: crates/gitbutler-tauri/src/projects.rs:46: new
2024-09-06T11:00:32.240739Z  INFO list_projects: crates/gitbutler-tauri/src/projects.rs:46: close time.busy=751µs time.idle=16.7µs
2024-09-06T11:00:32.249213Z  INFO get_user: crates/gitbutler-tauri/src/users.rs:10: new
2024-09-06T11:00:32.249236Z  INFO get_user: crates/gitbutler-tauri/src/users.rs:10: close time.busy=13.8µs time.idle=9.38µs

Oddly enough, there is an octet.stream (binary) file that is named: .window-state in the directory above the logs of 56 bytes. The ui-log.log has zero bytes in the log directory. Not sure what that hidden window-state file is doing there - maybe normal?

Chuck

TaliskerMan avatar Sep 06 '24 11:09 TaliskerMan

Thanks a lot!

I tried 0.12.24, same result sadly.

It must be a nightly though, 0.12.24 doesn't contain #4833: https://app.gitbutler.com/downloads

Oddly enough, there is an octet.stream (binary) file that is named: .window-state in the directory above the logs of 56 bytes.

When the nightly still doesn't fix it, deleting this file might help, but probably won't. It will just be recreated after and is non-essential. Maybe you could delete it even before trying the nightly build, just to see if it is the cause of the issue.

The logs don't seem to contain any issue, so nothing to go by there.

Thanks again for trying.

Byron avatar Sep 06 '24 14:09 Byron

I believe this was due to an upgrade in libwebkit2gtk that happened in our GHA build environment.

Anyway, we've recently upgraded to Tauri v2 and thsi should be fixed. Can you give the latest nightly a shot and let us know if this issue is resolved for yuo? Should be 0.5.849 at the time of writing - app.gitbutler.com/downloads

ndom91 avatar Oct 30 '24 15:10 ndom91

I'm going to close this as this issue has been pinned down to that previous version of libwebkit2gtk which we've fixed even before upgrading to v2.

Of course if anyone runs into this issue again, please feel free to open a new issue!

ndom91 avatar Oct 31 '24 12:10 ndom91

Hi Nico, the nightly doesn't run correctly (either the appimage or the deb) as when I attempt to start it - nothing happens. The current (non-nightly) version works on my laptop, just not my desktop. Same distro, same packages. Don't git it (pun intended here). However GitKraken works fine. I'll stick with that for now, as there is no reason or apparent way to debug this to understand the why of it all. Wanted to use it, but it appears the tried and true is working, so that settles the issue.

Sorry, was trying to make it work and hoping for the best.

On Wed, Oct 30, 2024 at 10:11 AM Nico Domino @.***> wrote:

I believe this was due to an upgrade in libwebkit2gtk that happened in our GHA build environment.

Anyway, we've recently upgraded to Tauri v2 and thsi should be fixed. Can you give the latest nightly a shot and let us know if this issue is resolved for yuo? Should be 0.5.849 at the time of writing - app.gitbutler.com/downloads

— Reply to this email directly, view it on GitHub https://github.com/gitbutlerapp/gitbutler/issues/4830#issuecomment-2447474892, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJELR4VKBMSX3XHHHXC7X4DZ6DZJLAVCNFSM6AAAAABNVMLMNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBXGQ3TIOBZGI . You are receiving this because you were mentioned.Message ID: @.***>

TaliskerMan avatar Nov 01 '24 01:11 TaliskerMan

That is very strange indeed! I heard flatpacks are supposed to be better, but have a feeling that unless that image contains all dependencies, there will always be issues of sorts. GitKraken works because it's electron based, shipping a whole Chrome in the process. It even comes with Git bundled so it won't have to rely on what's installed on the system for maximal compatibility.

Byron avatar Nov 01 '24 06:11 Byron

Hi Nico, the nightly doesn't run correctly (either the appimage or the deb) as when I attempt to start it - nothing happens. The current (non-nightly) version works on my laptop, just not my desktop. Same distro, same packages. Don't git it (pun intended here). However GitKraken works fine. I'll stick with that for now, as there is no reason or apparent way to debug this to understand the why of it all. Wanted to use it, but it appears the tried and true is working, so that settles the issue.

Sorry, was trying to make it work and hoping for the best.

On Wed, Oct 30, 2024 at 10:11 AM Nico Domino @.***> wrote:

I believe this was due to an upgrade in libwebkit2gtk that happened in our GHA build environment.

Anyway, we've recently upgraded to Tauri v2 and thsi should be fixed. Can you give the latest nightly a shot and let us know if this issue is resolved for yuo? Should be 0.5.849 at the time of writing - app.gitbutler.com/downloads

— Reply to this email directly, view it on GitHub https://github.com/gitbutlerapp/gitbutler/issues/4830#issuecomment-2447474892, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJELR4VKBMSX3XHHHXC7X4DZ6DZJLAVCNFSM6AAAAABNVMLMNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBXGQ3TIOBZGI . You are receiving this because you were mentioned.Message ID: @.***>

Hey thanks for reporting this.

Can you try to start then via the terminal? There should be at least some output there that can help us figure out what's going on on your system. Thanks!

ndom91 avatar Nov 01 '24 18:11 ndom91

Hi Nico,

When running from the command line this is the output provided:

***@***.***:$git-butler
src/nv_gbm.c:288: GBM-DRV error (nv_gbm_create_device_native):
nv_common_gbm_create_device failed (ret=-1)


** (git-butler:28442): WARNING **: 14:51:40.214:
webkit_settings_set_enable_offline_web_application_cache is deprecated and
does nothing.
2024-11-03T20:51:40.305637Z  INFO crates/gitbutler-tauri/src/main.rs:64:
system git executable for fetch/push: "git"
2024-11-03T20:51:40.305680Z  INFO crates/gitbutler-tauri/src/main.rs:101:
starting app version=0.13.8 name=GitButler
src/nv_gbm.c:288: GBM-DRV error (nv_gbm_create_device_native):
nv_common_gbm_create_device failed (ret=-1)

KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 1160x691: Permission denied
2024-11-03T20:51:40.618821Z  INFO list_projects: crates/gitbutler-tauri/src/
projects.rs:68: close time.busy=26.1µs time.idle=21.8µs
2024-11-03T20:51:40.624047Z  INFO get_user: crates/gitbutler-tauri/src/
users.rs:10: close time.busy=12.3µs - [ ] time.idle=11.4µs

Not sure where the GBM-DRV error is coming from - but that is the first error thrown if it helps.

Neofetch:
             /////////////                ***@***.***
         /////////////////////            -------------------
      ///////*767////////////////         OS: Pop!_OS 22.04 LTS x86_64
    //////7676767676*//////////////       Host: MS-7D91 2.0
   /////76767//7676767//////////////      Kernel: 6.9.3-76060903-generic
  /////767676///*76767///////////////     Uptime: 6 mins
 ///////767676///76767.///7676*///////    Packages: 3590 (dpkg), 36
(flatpak)
/////////767676//76767///767676////////   Shell: bash 5.1.16
//////////76767676767////76767/////////   Resolution: 1920x1080
///////////76767676//////7676//////////   DE: GNOME 42.9
////////////,7676,///////767///////////   WM: Mutter
/////////////*7676///////76////////////   WM Theme: Pop-dark
///////////////7676////////////////////   Theme: Pop-dark [GTK2/3]
 ///////////////7676///767////////////    Icons: kora [GTK2/3]
  //////////////////////'////////////     Terminal: gnome-terminal
   //////.7676767676767676767,//////      CPU: 12th Gen Intel i9-12900K
(24) @ 5.100GHz
    /////767676767676767676767/////       GPU: NVIDIA 08:00.0 NVIDIA
Corporation Device 2882
      ///////////////////////////         GPU: Intel AlderLake-S GT1
         /////////////////////            Memory: 6036MiB / 64067MiB
             /////////////

TaliskerMan avatar Nov 03 '24 20:11 TaliskerMan

Thanks for the additional details. Can you do me a favor and try to run the it with the following env var?

WEBKIT_DISABLE_COMPOSITING_MODE=1

This should start it in x11 mode. According to some research it sounds like it might be a wayland <-> libwebkit2gtk issue.

Additionally, can you check which version of mesa you have installed? Is there an update available for that?

ndom91 avatar Nov 04 '24 06:11 ndom91

Hi Nico,

A rather interesting development: MY_ENV_VAR=WEBKIT_DISABLE_COMPOSITING_MODE=1 git-butler src/nv_gbm.c:288: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)

** (git-butler:4140201): WARNING **: 11:01:15.677: webkit_settings_set_enable_offline_web_application_cache is deprecated and does nothing. 2024-11-04T17:01:15.725145Z INFO crates/gitbutler-tauri/src/main.rs:64: system git executable for fetch/push: "git" 2024-11-04T17:01:15.725187Z INFO crates/gitbutler-tauri/src/main.rs:101: starting app version=0.13.8 name=GitButler src/nv_gbm.c:288: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)

KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied Failed to create GBM buffer of size 1160x691: Permission denied 2024-11-04T17:01:16.038292Z INFO list_projects: crates/gitbutler-tauri/src/ projects.rs:68: close time.busy=11.6µs time.idle=16.8µs 2024-11-04T17:01:16.042879Z INFO get_user: crates/gitbutler-tauri/src/ users.rs:10: close time.busy=7.07µs time.idle=9.00µs

On Mon, Nov 4, 2024 at 12:40 AM Nico Domino @.***> wrote:

Thanks for the additional details. Can you do me a favor and try to run the it with the following env var?

WEBKIT_DISABLE_COMPOSITING_MODE=1

This should start it in x11 mode. According to some research it sounds like it might be a wayland <-> libwebkit2gtk issue.

Additionally, can you check which version of mesa you have installed? Is there an update available for that?

— Reply to this email directly, view it on GitHub https://github.com/gitbutlerapp/gitbutler/issues/4830#issuecomment-2453922294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJELR4QKR7DDOAN5PADS27LZ64JFPAVCNFSM6AAAAABNVMLMNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJTHEZDEMRZGQ . You are receiving this because you were mentioned.Message ID: @.***>

TaliskerMan avatar Nov 04 '24 17:11 TaliskerMan

Is that how you executed it? With the MY_ENV_VAR part? That won't work unfortunately.

It should be like:

WEBKIT_DISABLE_COMPOSITING_MODE=1 git-butler 

ndom91 avatar Nov 04 '24 19:11 ndom91

Well, that enables the GUI to function at last. Interesting that it requires that to function. Wonder what the issue is there versus my laptop which both use the same X11 and both have Nvidia graphics selected. Weird.

On Mon, Nov 4, 2024 at 1:18 PM Nico Domino @.***> wrote:

Is that how you executed it? With the MY_ENV_VAR part? That won't work unfortunately.

It should be like:

WEBKIT_DISABLE_COMPOSITING_MODE=1 git-butler

— Reply to this email directly, view it on GitHub https://github.com/gitbutlerapp/gitbutler/issues/4830#issuecomment-2455511082, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJELR4TUAXTD2PMEBQRQUY3Z67B7BAVCNFSM6AAAAABNVMLMNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJVGUYTCMBYGI . You are receiving this because you were mentioned.Message ID: @.***>

TaliskerMan avatar Nov 04 '24 19:11 TaliskerMan

That env var forces it to run in x11 mode (xwayland). Normally it would run as a native wayland window.

You can make that change permanent by prefixing the environment var aslo to the Exec key in your Gitbutler.desktop file. I don't use gnome much, but normally they're somewhere like /usr/share/applications.

ndom91 avatar Nov 05 '24 08:11 ndom91

That env var forces it to run in x11 mode (xwayland). Normally it would run as a native wayland window.

You can make that change permanent by prefixing the environment var aslo to the Exec key in your Gitbutler.desktop file. I don't use gnome much, but normally they're somewhere like /usr/share/applications.

I just ran in to this issue and adding the evar fixed it. I'm running on x11. Would this mean that gitbutler is targetting wayland specifically now and I'm the one who is on a legacy/unsupported system?

EricTheMagician avatar Jan 15 '25 14:01 EricTheMagician