Gittyup icon indicating copy to clipboard operation
Gittyup copied to clipboard

SEGV crash on refresh of remote accounts

Open 0verEngineer opened this issue 3 years ago • 4 comments

Distribution: Flatpak Version: 1.2.0

I tried to refresh my remote account (private hosted gitlab) and gittyup crashed with a segmentation violation without any log message printed. It happened multiple times until i removed and readded the account. The animation that is shown on the remote account refresh has not started the times it crashed.

0verEngineer avatar Jan 09 '23 22:01 0verEngineer

Sorry for that, @Murmele My name starts with a Zero :D

It is repruducable with my private gitlab account and my public github account every time i try, after i remove and readd the account i can refresh but after a restart of gittyup the crash is back.

0verEngineer avatar Jan 10 '23 11:01 0verEngineer

overengineer sorry for disturbance. I will delete your comments so hopefully you don't get any notification anymore (I let the @ away to test if it is working) ^^

Murmele avatar Jan 10 '23 17:01 Murmele

@Murmele Hey,

I fixed the crash by moving the clearRepos() call here https://github.com/Murmele/Gittyup/compare/master...0verEngineer:Gittyup:acc_refresh_crash

however there are still some problems:

  • GitLab::host() method always returns "gitlab.com" but we are able to configure self hosted gitlab
  • Account::password() does not get my password even if i pass the correct host url to the CredentialHelper, i did not check the CredentialHelper yet so i don't know how it works i have seen the libsecret type has been used in my case.

Am i missing some relevant infos here?

0verEngineer avatar Aug 11 '23 22:08 0verEngineer

Hi @0verEngineer I hope to get to it next days then I can debug it and seing were the problem raises

Murmele avatar Aug 15 '23 05:08 Murmele