hbons / SparkleShare

Share and collaborate by syncing with any Git repository instantly. Linux, macOS, and Windows.
https://sparkleshare.org
Other
4.88k stars 577 forks source link

SparkleShare crashes suddenly #1921

Open kill0rz opened 4 years ago

kill0rz commented 4 years ago

What happened:

SparkleShare crashes suddenly and stops running.

What I expected to happen:

no crash

This happens when:

no specific action, but maybe logs can give some information

22:03:15 Cmd | chmod 700 /root/SparkleShare/myhost/myproject/.git/hooks/pre-push
22:03:15 Cmd | myproject | git push --all --progress origin
22:03:16 Git | hint: The '.git/hooks/pre-push' hook was ignored because it's not set as executable.
22:03:16 Git | hint: You can disable this warning with `git config advice.ignoredHook false`.
22:03:16 Git | To ssh://myhost:22/home/storage/myproject
22:03:16 Git |  ! [rejected]        master -> master (non-fast-forward)
22:03:16 Git | error: failed to push some refs to 'ssh://storage@myhost:22/home/storage/myproject'
22:03:16 Git | hint: Updates were rejected because the tip of your current branch is behind
22:03:16 Git | hint: its remote counterpart. Integrate the remote changes (e.g.
22:03:16 Git | hint: 'git pull ...') before pushing again.
22:03:16 Git | hint: See the 'Note about fast-forwards' in 'git push --help' for details.
22:03:16 SyncUp | myproject | Error
22:03:16 SyncDown | myproject | Initiated
22:03:16 Cmd | myproject | git rev-parse HEAD
22:03:16 Cmd | myproject | git fetch --progress origin master
22:03:18 Git | From ssh://myhost:22/home/storage/myproject
22:03:18 Git |  * branch            master     -> FETCH_HEAD
22:03:18 Git |    5302118..b370f00  master     -> origin/master
22:03:18 Cmd | myproject | git status --porcelain
22:03:18 Cmd | myproject | git config core.ignorecase true
22:03:18 Cmd | myproject | git merge FETCH_HEAD
Auto-merging myfile.txt
CONFLICT (content): Merge conflict in myfile.txt
Automatic merge failed; fix conflicts and then commit the result.
22:03:18 Git | warning: Cannot merge binary files: myfile.txt (HEAD vs. b370f0000462c5923e53d506fad388c453054dcf)
22:03:18 Git | myproject | Conflict detected, trying to get out...
22:03:18 Cmd | myproject | git status --porcelain
22:03:18 Cmd | myproject | git status --porcelain
22:03:18 Git | myproject | Conflict type: UU myfile.txt
22:03:18 Git | myproject | Resolving: myfile.txt
22:03:18 Cmd | myproject | git log -n 1 FETCH_HEAD --pretty=format:%an myfile.txt
22:03:18 Cmd | myproject | git checkout --ours "myfile.txt"
22:03:18 Cmd | myproject | git checkout --theirs "myfile.txt"
22:03:18 Cmd | myproject | git checkout ORIG_HEAD^ "myfile.txt"
22:03:18 Cmd | myproject | git add --all
22:03:18 Cmd | myproject | git commit --message="Conflict resolution" --author="SparkleShare <info@sparkleshare.org>"
[master be6c6b0] Conflict resolution
 Author: SparkleShare <info@sparkleshare.org>
22:03:18 Git | myproject | Conflict resolved
22:03:18 Cmd | myproject | git config core.ignorecase false
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.TypeInitializationException: The type initializer for 'Notifications.Notification' threw an exception. ---> System.TypeInitializationException: The type initializer for 'DBus.Bus' threw an exception. ---> System.Exception: Error 2: No such file or directory
  at DBus.Unix.UnixSocket.Connect (System.Byte[] remote_end) [0x00032] in <7db412060f2b4417b62ffce88508d71a>:0 
  at DBus.Transports.UnixNativeTransport.OpenUnix (System.String path) [0x0000e] in <7db412060f2b4417b62ffce88508d71a>:0 
  at DBus.Transports.UnixNativeTransport.Open (System.String path, System.Boolean abstract) [0x0002f] in <7db412060f2b4417b62ffce88508d71a>:0 
  at DBus.Transports.UnixTransport.Open (DBus.AddressEntry entry) [0x00048] in <7db412060f2b4417b62ffce88508d71a>:0 
  at DBus.Transports.Transport.Create (DBus.AddressEntry entry) [0x0006a] in <7db412060f2b4417b62ffce88508d71a>:0 
  at DBus.Connection.OpenPrivate (System.String address) [0x00049] in <7db412060f2b4417b62ffce88508d71a>:0 
   --- End of inner exception stack trace ---
  at DBus.BusG.Init () [0x00010] in <1da5a598695b4687915f7f5a891d274e>:0 
  at Notifications.Notification..cctor () [0x00000] in <e6024757ffdb46b0b3dd4dff14a57a38>:0 
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr)
  at SparkleShare.Bubbles+<ShowBubbleEvent>c__AnonStorey0.<>m__0 (System.Object , System.EventArgs ) [0x00001] in <cc5d93e6b2c7414faa51c74d720c34aa>:0 
  at Gtk.Application+InvokeCB.Invoke () [0x00000] in <ab3825aa736a42a5a70c42e4d085cf34>:0 
  at GLib.Timeout+TimeoutProxy.Handler () [0x0000c] in <a258e64b0da5425ba1c90fbd8340c552>:0 
  at GLib.ExceptionManager.RaiseUnhandledException (System.Exception e, System.Boolean is_terminal) [0x00000] in <a258e64b0da5425ba1c90fbd8340c552>:0 
  at GLib.Timeout+TimeoutProxy.Handler () [0x00000] in <a258e64b0da5425ba1c90fbd8340c552>:0 
  at GLib.Application.g_application_run (System.IntPtr , System.Int32 , System.IntPtr ) [0x00000] in <e1952ea3d78443b1899b381375313cb2>:0 
  at GLib.Application.Run (System.String program_name, System.String[] args) [0x00000] in <e1952ea3d78443b1899b381375313cb2>:0 
  at System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod , System.Object , System.Object[] , System.Exception& ) [0x00000] in <a3c4aef09b90421281b772cc05a43e75>:0 
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <a3c4aef09b90421281b772cc05a43e75>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <a3c4aef09b90421281b772cc05a43e75>:0 
  at SparkleShare.UserInterface.Run (System.String[] args) [0x00000] in <cc5d93e6b2c7414faa51c74d720c34aa>:0 
  at SparkleShare.SparkleShare.Main (System.String[] args) [0x00000] in <cc5d93e6b2c7414faa51c74d720c34aa>:0 
22:03:18 Cmd | myproject | git --no-pager log --since=1.month --name-status --date=iso --find-renames --no-merges --no-color
22:03:18 Cmd | myproject | git rev-parse HEAD
22:03:18 SyncDown | myproject | Done
22:03:18 Cmd | myproject | git add --all
22:03:18 Cmd | myproject | git status --porcelain
22:03:18 Cmd | chmod 700 /root/SparkleShare/myhost/myproject/.git/hooks/pre-push
22:03:18 Cmd | myproject | git push --all --progress origin

System: Linux 5.2.0-0.bpo.2-amd64 (also tested with 4.19 - same issue) Gnome 3.30.2 64Bit latest stable Debian Sparkleshare 3.28.0 installled through flatpak

Maybe this could happen when another application tries to write a file blocked by SparkleShare? In other cases Sparkleshare crashes at system startup, but I cannot provide logs atm. When the startup issue happens again I will post them here.

rob-hills commented 3 years ago

I have also been experiencing the same exception as far as I can tell. It seems to occur after an update to a shared repository by another computer. I am running SparkleShare 3.28.0 (Flatpak) on Ubuntu 20.04.2 LTS.

My SparkleShare app crashes most times I run my computer. I now always open a Terminal to restart it with the command: flatpak run org.sparkleshare.SparkleShare

Sometimes I will have to restart it numerous times in a session, sometimes it seems to run without any trouble. Unfortunately I've not yet been able to pin down exactly what causes this issue, but it's very annoying!