gitbutlerapp / gitbutler

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

"Failed load remote branches" on Windows Stable + Nightly #3647

Open DrBarnabus opened 4 months ago

DrBarnabus commented 4 months ago

image

Seem to have recently started getting error messages regarding loading remote branches on Windows (haven't tested Linux/MacOS). It seems to happen somewhat randomly and on refreshing the application or interacting with the application seems to kick it back into gear.

Depending on when it happens it sometimes throws you back to the something went wrong page and sometimes it doesn't and you just get the toast message.

Tested with Stable 0.11.5 and also present in latest nightly 0.5.444. I hadn't used GB for a week or two so apologies but I can't pinpoint when the issue was introduced.

Any further details required please let me know!

Relevant Logs

Instance of the error that occurred earlier today:

2024-04-30T07:55:04.153786Z ERROR get_base_branch_data: crates\gitbutler-tauri\src\virtual_branches.rs:104: error=Error(EOF while parsing a value at line 1 column 0

Caused by:
    EOF while parsing a value at line 1 column 0) project_id=5d4130f2-636a-451b-9795-5fc9f4f20c16

Recreation on Nightly Build:

2024-04-30T20:28:35.143815Z  INFO get_base_branch_data: crates\gitbutler-tauri\src\virtual_branches.rs:104: new project_id=7f0bb1db-f10e-4505-a165-21a575981ccb
2024-04-30T20:28:35.144091Z  INFO get_base_branch_data: crates\gitbutler-tauri\src\virtual_branches.rs:104: new project_id=7f0bb1db-f10e-4505-a165-21a575981ccb
2024-04-30T20:28:35.144362Z ERROR get_base_branch_data: crates\gitbutler-tauri\src\virtual_branches.rs:104: error=Error(EOF while parsing a value at line 1 column 0

Caused by:
    EOF while parsing a value at line 1 column 0) project_id=7f0bb1db-f10e-4505-a165-21a575981ccb
2024-04-30T20:28:35.144373Z  INFO get_base_branch_data: crates\gitbutler-tauri\src\virtual_branches.rs:104: close time.busy=270µs time.idle=12.3µs project_id=7f0bb1db-f10e-4505-a165-21a575981ccb
2024-04-30T20:28:35.148978Z  INFO get_base_branch_data: crates\gitbutler-tauri\src\virtual_branches.rs:104: close time.busy=5.15ms time.idle=15.5µs project_id=7f0bb1db-f10e-4505-a165-21a575981ccb

Interestingly from above it seems like two get_base_branch_data calls may be potentially interfering with each other?

Qix- commented 4 months ago

@krlvi this was related to #3620 right?