gitbutlerapp / gitbutler

The GitButler version control client, backed by Git, powered by Tauri/Rust/Svelte
https://gitbutler.com
Other
12.62k stars 500 forks source link

There is a branch that loads slowly and cannot be deleted #4417

Open hanchao0606 opened 2 months ago

hanchao0606 commented 2 months ago

Version

0.12.11

Operating System

Windows

Distribution Method

msi (Windows)

Describe the issue

when "Delete" branche nothing happens reopen the app and it's still there e54fbb6b597b56ec91e5797a02fed3b

Every time I open the app, this branch takes a long time to load. 1720749095776 1721112919218

How to reproduce

No response

Expected behavior

No response

Relevant log output

2024-07-16T06:46:11.890087Z  INFO crates\gitbutler-tauri\src/main.rs:88: starting app version=0.12.11 name=GitButler
2024-07-16T06:46:12.312236Z  INFO list_projects: crates\gitbutler-tauri\src\projects.rs:44: new
2024-07-16T06:46:12.312603Z  INFO list_projects: crates\gitbutler-tauri\src\projects.rs:44: close time.busy=302µs time.idle=69.6µs
2024-07-16T06:46:12.322040Z  INFO get_user: crates\gitbutler-tauri\src\users.rs:10: new
2024-07-16T06:46:12.322178Z  INFO get_user: crates\gitbutler-tauri\src\users.rs:10: close time.busy=93.7µs time.idle=48.2µs
2024-07-16T06:46:12.620445Z  INFO get_project: crates\gitbutler-tauri\src\projects.rs:35: new id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.620905Z  INFO get_project: crates\gitbutler-tauri\src\projects.rs:35: close time.busy=403µs time.idle=60.1µs id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.631572Z  INFO set_project_active: crates\gitbutler-tauri\src\projects.rs:65: new id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.631880Z  INFO set_project_active:set_project_to_window: crates\gitbutler-tauri\src\window.rs:132: new id=3af1728c-185f-4e58-9451-f0e48ac679ba window="main"
2024-07-16T06:46:12.638987Z  INFO set_project_active:set_project_to_window:file monitor: crates\gitbutler-watcher\src\file_monitor.rs:117: new id=3af1728c-185f-4e58-9451-f0e48ac679ba window="main" project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.642937Z  INFO git_head: crates\gitbutler-tauri\src\commands.rs:70: new project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.644841Z  INFO get_base_branch_data: crates\gitbutler-tauri\src\virtual_branches.rs:101: new project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.649583Z  INFO fetch_from_remotes: crates\gitbutler-tauri\src\virtual_branches.rs:443: new project_id=3af1728c-185f-4e58-9451-f0e48ac679ba action=Some("auto")
2024-07-16T06:46:12.655299Z  WARN fetch_from_remotes: crates\gitbutler-command-context\src\repository.rs:28: failed to get gitbutler.didSetPrune for repository at D:\project\aaaaa\aaaaa-mapp; cannot disable gc: config value 'gitbutler.didSetPrune' was not found; class=Config (7); code=NotFound (-3) project_id=3af1728c-185f-4e58-9451-f0e48ac679ba action=Some("auto")
2024-07-16T06:46:12.655439Z  WARN git_head: crates\gitbutler-command-context\src\repository.rs:28: failed to get gitbutler.didSetPrune for repository at D:\project\aaaaa\aaaaa-mapp; cannot disable gc: config value 'gitbutler.didSetPrune' was not found; class=Config (7); code=NotFound (-3) project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.656043Z  INFO git_head: crates\gitbutler-tauri\src\commands.rs:70: close time.busy=13.1ms time.idle=50.0µs project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.656470Z  WARN get_base_branch_data: crates\gitbutler-command-context\src\repository.rs:28: failed to get gitbutler.didSetPrune for repository at D:\project\aaaaa\aaaaa-mapp; cannot disable gc: config value 'gitbutler.didSetPrune' was not found; class=Config (7); code=NotFound (-3) project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.661614Z  INFO get_base_branch_data: crates\gitbutler-tauri\src\virtual_branches.rs:101: close time.busy=16.7ms time.idle=50.1µs project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.685947Z  INFO list_virtual_branches: crates\gitbutler-tauri\src\virtual_branches.rs:39: new project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.686139Z  INFO list_remote_branches: crates\gitbutler-tauri\src\virtual_branches.rs:399: new project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.688546Z  WARN list_remote_branches: crates\gitbutler-command-context\src\repository.rs:28: failed to get gitbutler.didSetPrune for repository at D:\project\aaaaa\aaaaa-mapp; cannot disable gc: config value 'gitbutler.didSetPrune' was not found; class=Config (7); code=NotFound (-3) project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.689605Z  WARN list_virtual_branches: crates\gitbutler-command-context\src\repository.rs:28: failed to get gitbutler.didSetPrune for repository at D:\project\aaaaa\aaaaa-mapp; cannot disable gc: config value 'gitbutler.didSetPrune' was not found; class=Config (7); code=NotFound (-3) project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:12.695584Z  INFO list_remote_branches: crates\gitbutler-tauri\src\virtual_branches.rs:399: close time.busy=9.41ms time.idle=39.2µs project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:13.449734Z  INFO list_virtual_branches:workdir: crates\gitbutler-branch\src\diff.rs:150: new project_id=3af1728c-185f-4e58-9451-f0e48ac679ba commit_oid=99cc175e8269c55f9bfa0720b9749a34cd797572
2024-07-16T06:46:14.132378Z  INFO list_virtual_branches:workdir: crates\gitbutler-branch\src\diff.rs:150: close time.busy=683ms time.idle=106µs project_id=3af1728c-185f-4e58-9451-f0e48ac679ba commit_oid=99cc175e8269c55f9bfa0720b9749a34cd797572
2024-07-16T06:46:15.286839Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates\gitbutler-watcher\src\file_monitor.rs:121: new id=3af1728c-185f-4e58-9451-f0e48ac679ba window="main" project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:15.287530Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates\gitbutler-watcher\src\file_monitor.rs:121: close time.busy=610µs time.idle=83.6µs id=3af1728c-185f-4e58-9451-f0e48ac679ba window="main" project_id=3af1728c-185f-4e58-9451-f0e48ac679ba fs_events=152 fs_events=152 ignored=0 ignored=0 git_noop=151 git_noop=151 git=1 git=1 project=0 project=0 git_dedup=1 git_dedup=1
2024-07-16T06:46:15.298441Z  INFO handle: crates\gitbutler-watcher\src\handler.rs:58: new event=GitFileChange(3af1728c-185f-4e58-9451-f0e48ac679ba, FETCH_HEAD)
2024-07-16T06:46:15.298923Z  INFO handle: crates\gitbutler-watcher\src\handler.rs:58: close time.busy=443µs time.idle=40.9µs event=GitFileChange(3af1728c-185f-4e58-9451-f0e48ac679ba, FETCH_HEAD)
2024-07-16T06:46:17.932664Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates\gitbutler-watcher\src\file_monitor.rs:121: new id=3af1728c-185f-4e58-9451-f0e48ac679ba window="main" project_id=3af1728c-185f-4e58-9451-f0e48ac679ba
2024-07-16T06:46:17.932788Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates\gitbutler-watcher\src\file_monitor.rs:121: close time.busy=63.5µs time.idle=63.4µs id=3af1728c-185f-4e58-9451-f0e48ac679ba window="main" project_id=3af1728c-185f-4e58-9451-f0e48ac679ba fs_events=1 fs_events=1 ignored=0 ignored=0 git_noop=0 git_noop=0 git=1 git=1 project=0 project=0 git_dedup=1 git_dedup=1
2024-07-16T06:46:17.945391Z  INFO handle: crates\gitbutler-watcher\src\handler.rs:58: new event=GitFileChange(3af1728c-185f-4e58-9451-f0e48ac679ba, FETCH_HEAD)
2024-07-16T06:46:17.945919Z  INFO handle: crates\gitbutler-watcher\src\handler.rs:58: close time.busy=488µs time.idle=43.1µs event=GitFileChange(3af1728c-185f-4e58-9451-f0e48ac679ba, FETCH_HEAD)
2024-07-16T06:46:17.982256Z  WARN fetch_from_remotes: crates\gitbutler-command-context\src\repository.rs:28: failed to get gitbutler.didSetPrune for repository at D:\project\aaaaa\aaaaa-mapp; cannot disable gc: config value 'gitbutler.didSetPrune' was not found; class=Config (7); code=NotFound (-3) project_id=3af1728c-185f-4e58-9451-f0e48ac679ba action=Some("auto")
2024-07-16T06:46:17.984624Z  INFO fetch_from_remotes: crates\gitbutler-tauri\src\virtual_branches.rs:443: close time.busy=5.33s time.idle=59.1µs project_id=3af1728c-185f-4e58-9451-f0e48ac679ba action=Some("auto")
mtsgrd commented 2 months ago

Hi @hanchao0606, thanks for reporting this issue. This error likely occurs because of a bug in our locking algorithm, something that we are actively working on fixing (mitigation al.

Given the "Error applying hunk #1" error message I wouldn't expect the branches to load at all. Could you confirm if it loads slowly, or if you end up with a "something went wrong" error message?

hanchao0606 commented 2 months ago

Hi @mtsgrd very thanks I remember the previous version showed 'something went wrong', but with the current version, it just loads very slowly,.