-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Freeze when adding repository #54
Comments
I won't be able to diagnose this without more information. Can you try and narrow things down? |
Hello Phillipus, I think i can reproduce the issue, what can i do to help you to debug ? Maybe there is a log file ? |
Need to know:
|
Archi version 4.2.0 The steps are simple, with fresh install I just used the green button "Import remote model to workspace" , and fill the form with server, user password. and finaly fhe "Progress" windows stop on fetching and archi is completely freezed. |
Which version of the the Model Repo Plugin? |
Why is "Windows Host" Subprocess running under Archi? I dont's understand what all the Bash and other stuff has to do with this. Is this problem only on this machine with all this stuff? You have to narrow down the problem, because I can't diagnose it. |
I think the probem is after this Maybe the subprocess is invoke in the jgit lib . Unfortunately, I'm not skilled enough to debug deeper or to propose a patch. Bye and thanx a lot for the plugin |
OK, I found out that JGit sometimes invokes bash to find global git settings: https://www.eclipse.org/forums/index.php/t/1031740/ Perhaps it is getting stuck here. Need to investigate why. |
Looking at that JGit code... If JGit can't find a native git executable in system PATH it then looks for "bash" in the system PATH. If it finds "bash" it will try to invoke it with "bash --login -c which git" command in order to find git. This seems a dumb thing to do. Workaround would be to install git somewhere and make sure it's on the PATH, or remove "Bash" from PATH.
|
I've filed a bug report for JGit: |
@slopez31 You could workaround this by:
|
@Phillipus Thanks for the tip. |
Or install git and ensure it's on the PATH. The ideal solution is the JGit guys remove the dumb "search for bash" thing. |
Yes i think i'm going to install git. |
The code in JGit to determine whether git is installed is simply to try and find the global git config file (if it exists). Searching for any "bash.exe" on the PATH is dangerous:
They should remove the part where they even say "This isn't likely to work"! |
And I can't even inject my own FS_Win32 class to override this because of their hard-coded FS factory:
|
Seems like this is a known issue for some time with JGit: https://bugs.eclipse.org/bugs/show_bug.cgi?id=515354 As is usual with Eclipse frameworks, it doesn't look like they'll fix it any time soon. |
Setting the property "-Djgit.gitprefix=<location of git.exe>" location in the Archi.ini file might be a workaround. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=515354#c24 |
Hi everybody,
I have à little issue when i'm a trying to add a collaboration workspace (actually it's not on every computer 2/3). (with last beta version 3.2).
Archi freezes during "Fetching..." message
![image](https://user-images.githubusercontent.com/29406931/37589663-3c8a757a-2b66-11e8-8a66-934ce8f8a8db.png)
Killing "Windows Host" Subprocess unblock and download the map.
After this and until now everything seems to be fine.
My git server is a gitlab on premise server.
Thanks and good work to all.
The text was updated successfully, but these errors were encountered: