Fuse preview crashes after build. I have tried uno clean, restarting my computer but the problem persists. I am unable to decipher the problem from the log (see below)
Fuse 1.2.1
macOS 10.13
Thanks,
fuse: unhandled exception: One or more errors occurred.
at System.Threading.Tasks.Task.ThrowIfExceptional (Boolean includeTaskCanceledExceptions) <0x7442120 + 0x00043> in <filename unknown>:0
at System.Threading.Tasks.Task.Wait (Int32 millisecondsTimeout, CancellationToken cancellationToken) <0x6beb108 + 0x000bb> in <filename unknown>:0
at System.Threading.Tasks.Task.Wait () <0x6beb0c8 + 0x00027> in <filename unknown>:0
at Outracks.Fuse.Preview.PreviewMain.Preview (Outracks.Fuse.Preview.PreviewArguments args) <0x4fe4b10 + 0x0010f> in <filename unknown>:0
at Outracks.Fuse.Preview.PreviewCliCommand.RunInternal (System.String[] args) <0x4fe0138 + 0x005df> in <filename unknown>:0
at Outracks.Fuse.Preview.PreviewCliCommand.Run (System.String[] args, CancellationToken ct) <0x4fe0000 + 0x00027> in <filename unknown>:0
Inner exception: Sequence contains no matching element.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7441030 + 0x0002b> in <filename unknown>:0
at System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow (System.Exception exception) <0x7440cb8 + 0x0001f> in <filename unknown>:0
at System.Reactive.ExceptionHelpers.ThrowIfNotNull (System.Exception exception) <0x7440be0 + 0x0002f> in <filename unknown>:0
at System.Reactive.Subjects.AsyncSubject`1[T].GetResult () <0x7440960 + 0x00153> in <filename unknown>:0
at Outracks.Fuse.Preview.PreviewMain+<SubscribeForProjectClosed>c__async1.MoveNext () <0x741fb98 + 0x0023b> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7441030 + 0x0002b> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7441ce0 + 0x000bb> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7441b98 + 0x0007f> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x74065f0 + 0x00033> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () <0x7441b80 + 0x00013> in <filename unknown>:0
at Outracks.Fuse.Preview.PreviewMain+<LaunchDesignerAndSubscribe>c__async0.MoveNext () <0x4fec950 + 0x005af> in <filename unknown>:0
Unhandled exception: One or more errors occurred.
[ERROR] FATAL UNHANDLED EXCEPTION: System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Sequence contains no matching element.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7441030 + 0x0002b> in <filename unknown>:0
at System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow (System.Exception exception) <0x7440cb8 + 0x0001f> in <filename unknown>:0
at System.Reactive.ExceptionHelpers.ThrowIfNotNull (System.Exception exception) <0x7440be0 + 0x0002f> in <filename unknown>:0
at System.Reactive.Subjects.AsyncSubject`1[T].GetResult () <0x7440960 + 0x00153> in <filename unknown>:0
at Outracks.Fuse.Preview.PreviewMain+<SubscribeForProjectClosed>c__async1.MoveNext () <0x741fb98 + 0x0023b> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7441030 + 0x0002b> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7441ce0 + 0x000bb> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7441b98 + 0x0007f> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x74065f0 + 0x00033> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () <0x7441b80 + 0x00013> in <filename unknown>:0
at Outracks.Fuse.Preview.PreviewMain+<LaunchDesignerAndSubscribe>c__async0.MoveNext () <0x4fec950 + 0x005af> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional (Boolean includeTaskCanceledExceptions) <0x7442120 + 0x00043> in <filename unknown>:0
at System.Threading.Tasks.Task.Wait (Int32 millisecondsTimeout, CancellationToken cancellationToken) <0x6beb108 + 0x000bb> in <filename unknown>:0
at System.Threading.Tasks.Task.Wait () <0x6beb0c8 + 0x00027> in <filename unknown>:0
at Outracks.Fuse.Preview.PreviewMain.Preview (Outracks.Fuse.Preview.PreviewArguments args) <0x4fe4b10 + 0x0010f> in <filename unknown>:0
at Outracks.Fuse.Preview.PreviewCliCommand.RunInternal (System.String[] args) <0x4fe0138 + 0x005df> in <filename unknown>:0
at Outracks.Fuse.Preview.PreviewCliCommand.Run (System.String[] args, CancellationToken ct) <0x4fe0000 + 0x00027> in <filename unknown>:0
---> (Inner Exception #0) System.InvalidOperationException: Sequence contains no matching element.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7441030 + 0x0002b> in <filename unknown>:0
at System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow (System.Exception exception) <0x7440cb8 + 0x0001f> in <filename unknown>:0
at System.Reactive.ExceptionHelpers.ThrowIfNotNull (System.Exception exception) <0x7440be0 + 0x0002f> in <filename unknown>:0
at System.Reactive.Subjects.AsyncSubject`1[T].GetResult () <0x7440960 + 0x00153> in <filename unknown>:0
at Outracks.Fuse.Preview.PreviewMain+<SubscribeForProjectClosed>c__async1.MoveNext () <0x741fb98 + 0x0023b> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7441030 + 0x0002b> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7441ce0 + 0x000bb> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7441b98 + 0x0007f> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x74065f0 + 0x00033> in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () <0x7441b80 + 0x00013> in <filename unknown>:0
at Outracks.Fuse.Preview.PreviewMain+<LaunchDesignerAndSubscribe>c__async0.MoveNext () <0x4fec950 + 0x005af> in <filename unknown>:0 <---
2017-09-29 13:16:58,002 [4722:1] INFO Fuse - Initializing with arguments 'preview'
2017-09-29 13:16:58,074 [4722:1] INFO Fuse - Version 1.2.1.13974
2017-09-29 13:16:58,839 [4724:1] INFO Fuse - Initializing with arguments 'daemon -b'
2017-09-29 13:16:58,894 [4724:1] INFO Fuse - Version 1.2.1.13974
2017-09-29 13:16:59,013 [4724:1] INFO Daemon - Starting daemon with arguments '-b'
2017-09-29 13:16:59,034 [4724:1] INFO Daemon - Trying to start the daemon as a background process.
2017-09-29 13:16:59,822 [4724:1] INFO Daemon - A daemon background process was successfully started.
,579 [4726:1] INFO Fuse - Version 1.2.1.13974
2017-09-29 13:16:59,697 [4726:1] INFO Daemon - Starting daemon with arguments ''
2017-09-29 13:16:59,782 [4726:1] INFO Daemon - Successfully locked
2017-09-29 13:16:59,820 [4726:1] INFO Daemon - Running at 127.0.0.1 port 12122
2017-09-29 13:17:02,790 [4726:Threadpool worker] INFO Daemon - Client connected: Proxy
2017-09-29 13:17:02,812 [4726:Threadpool worker] INFO Daemon - Client connected: Preview /Users/myapp/myapp.unoproj
2017-09-29 13:17:02,822 [4726:Threadpool worker] INFO Daemon - Client connected: Code Assistance Service
2017-09-29 13:17:03,998 [4726:Threadpool worker] INFO Daemon - Client connected: Fuse Tray
2017-09-29 13:17:10,942 [4726:Threadpool worker] INFO Daemon - Client connected: Designer
2017-09-29 13:17:59,875 [4726:Threadpool worker] INFO Daemon - Daemon is still running
2017-09-29 13:18:22,047 [4726:Threadpool worker] INFO Daemon - Client disconnected: Designer
2017-09-29 13:18:59,875 [4726:Threadpool worker] INFO Daemon - Daemon is still running
2017-09-29 13:19:59,875 [4726:Threadpool worker] INFO Daemon - Daemon is still running
2017-09-29 13:20:59,877 [4726:Threadpool worker] INFO Daemon - Daemon is still running
17-09-29 13:18:22,052 [4782:1] ERROR UnoHost - CommunicationProtocol failed
2017-09-29 13:18:22,091 [4782:1] ERROR UnoHost - CommunicationProtocol failed
Object.ConformsToProtocol (IntPtr protocol) <0x101f16d8 + 0x000db> in <filename unknown>:0
at MonoMac.Foundation.NSObject.InvokeConformsToProtocol (IntPtr protocol) <0x101f1598 + 0x0001a> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging:bool_objc_msgSend_IntPtr (intptr,intptr,intptr)
at MonoMac.Foundation.NSObject.ConformsToProtocol (IntPtr protocol) <0x101f16d8 + 0x000db> in <filename unknown>:0
at MonoMac.Foundation.NSObject.InvokeConformsToProtocol (IntPtr protocol) <0x101f1598 + 0x0001a> in <filename unknown>:0
Did some searching, but couldn’t find a solution. The important bit from the logs seems to be Sequence contains no matching element, but where that comes from remains to be found.
I suggest you comment out most of the UX code you have in that project, and see if the app then builds fine. Then slowly start adding parts of the code back and see where it breaks.
That should at least give us an indication on where the root cause of the problem is.
I was able to fix the problem. After I ran into the problem, I opened XCode to work on a different project and saw that some components needed to be installed before I could use XCode. After those components were installed I noticed that Fuse stopped crashing. Very odd.
Hey Uldis sorry for the late reply.
The problem has reappeared. I did a full reinstall of Fuse (using the uninstall script). I’ve tried to create a new blank project and Fuse preview still crashes upon start, this is what shows up in my log file.
2017-10-11 14:47:25,351 [14441:1] INFO Fuse - Initializing with arguments 'daemon-client Atom Plugin'
2017-10-11 14:47:25,442 [14441:1] INFO Fuse - Version 1.2.1.13974
2017-10-11 14:49:22,006 [14441:1] ERROR Fuse - Unable to read beyond the end of the stream.
-11 14:48:04,083 [14464:1] INFO Fuse - Version 1.2.1.13974
2017-10-11 14:48:05,235 [14466:1] INFO Fuse - Initializing with arguments 'open //Users/sharararzukrahman/Fuse/App1/App1.unoproj'
2017-10-11 14:48:05,300 [14466:1] INFO Fuse - Version 1.2.1.13974
2017-10-11 14:48:05,983 [14469:1] INFO Designer - Initializing with arguments ''
2017-10-11 14:48:10,715 [14469:1] INFO Updates - Checking for Fuse updates
2017-10-11 14:48:12,201 [14469:1] INFO Updates - No updates available
2017-10-11 14:48:46,740 [14483:1] ERROR UnoHost - CommunicationProtocol failed
2017-10-11 14:48:46,773 [14483:1] ERROR UnoHost - CommunicationProtocol failed
belongs to a different domain
at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging:bool_objc_msgSend_IntPtr (intptr,intptr,intptr)
at MonoMac.Foundation.NSObject.ConformsToProtocol (IntPtr protocol) <0xe3c1100 + 0x000db> in <filename unknown>:0
at MonoMac.Foundation.NSObject.InvokeConformsToProtocol (IntPtr protocol) <0xe3c0fc0 + 0x0001a> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging:bool_objc_msgSend_IntPtr (intptr,intptr,intptr)
at MonoMac.Foundation.NSObject.ConformsToProtocol (IntPtr protocol) <0xe3c1100 + 0x000db> in <filename unknown>:0
at MonoMac.Foundation.NSObject.InvokeConformsToProtocol (IntPtr protocol) <0xe3c0fc0 + 0x0001a> in <filename unknown>:0
Anders - the preview app crashes. Upon inspecting activity monitor ‘Fuse’ and ‘Fuse Tray’ are still running.
I was able to fix the issue temporarily by running the uninstall shell script -> restarting -> re-installing Fuse. It looks like adding the restart step fixed things. Let’s see how things go. I’ll create a new thread if the problem reappears.
Once again this is what happens to be the issue:
--- End of stack trace from previous location where exception was thrown ---
at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging:bool_objc_msgSend_IntPtr (intptr,intptr,intptr)
at MonoMac.Foundation.NSObject.ConformsToProtocol (IntPtr protocol) <0xe090838 + 0x000db> in <filename unknown>:0
About /Applications/Fuse.app/Contents/Fuse.App/Contents/MacOS/Fuse do I run it and post whatever shows up in my terminal?
Here is some more info, this is what I get as soon as the Fuse Preview App crashes, there are a bunch of things that are logged before this, but this is what I get exactly when it crashes:
Stack overflow in unmanaged: IP: 0xa769f7e3, fault addr: 0xbf808ffc
Unhandled exception: GCHandle value belongs to a different domain
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: GCHandle value belongs to a different domain
at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging:bool_objc_msgSend_IntPtr (intptr,intptr,intptr)
at MonoMac.Foundation.NSObject.ConformsToProtocol (IntPtr protocol) <0x1048cf48 + 0x000db> in <filename unknown>:0
at MonoMac.Foundation.NSObject.InvokeConformsToProtocol (IntPtr protocol) <0x1048ce08 + 0x0001a> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging:bool_objc_msgSend_IntPtr (intptr,intptr,intptr)
at MonoMac.Foundation.NSObject.ConformsToProtocol (IntPtr protocol) <0x1048cf48 + 0x000db> in <filename unknown>:0
at MonoMac.Foundation.NSObject.InvokeConformsToProtocol (IntPtr protocol) <0x1048ce08 + 0x0001a> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
The 3-4 lines that happen between the “End of stack track from previous location where exception was thrown” is repeated a few hundred times. After that, this is what is logged:
at MonoMac.AppKit.NSApplication.Run () <0x10fabd58 + 0x0002f> in <filename unknown>:0
at Outracks.Fusion.OSX.Application.Run () <0x10fabd38 + 0x00016> in <filename unknown>:0
at Outracks.Fusion.Application.Run () <0x10fabd18 + 0x00018> in <filename unknown>:0
at Outracks.Fuse.Designer.Program.Main (System.String[] argsArray) <0xa2f70 + 0x0043f> in <filename unknown>:0
(py33)Sharars-MacBook-Pro:logs sharararzukrahman$ Read Error
UnoHost failed to write message to designer: System.InvalidOperationException: Couldn't send data: System.Net.Sockets.SocketException: The socket has been shut down
at System.Net.Sockets.Socket.Send (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) <0x13fc1a40 + 0x000bf> in <filename unknown>:0
at Outracks.IPC.UnixSocketStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) <0x13fef798 + 0x0004f> in <filename unknown>:0
at Outracks.IPC.UnixSocketStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) <0x13fef798 + 0x000ab> in <filename unknown>:0
at System.IO.Stream.WriteByte (Byte value) <0x13fc1500 + 0x0004d> in <filename unknown>:0
at System.IO.BinaryWriter.Write (Byte value) <0x13fc0670 + 0x0001b> in <filename unknown>:0
at System.IO.BinaryWriter.Write7BitEncodedInt (Int32 value) <0x13fc0620 + 0x00041> in <filename unknown>:0
at System.IO.BinaryWriter.Write (System.String value) <0x13fc0360 + 0x0003b> in <filename unknown>:0
at Outracks.BinaryMessage.WriteTo (IBinaryMessage message, System.IO.BinaryWriter writer) <0x13fbfc48 + 0x0009e> in <filename unknown>:0
at Outracks.BinaryMessageStreams+<BeginWritingMessages>c__AnonStorey0+<BeginWritingMessages>c__AnonStorey1.<>m__0 (IBinaryMessage message) <0x13fef700 + 0x0001b> in <filename unknown>:0
at Outracks.DispatcherQueue`1[T].DispatchCurrent (System.Action`1 action, Optional`1 timeout) <0x13866158 + 0x000a4> in <filename unknown>:0
at Outracks.DispatcherQueue`1[T].Dispatch (System.Action`1 action, CancellationToken ct) <0x13865a78 + 0x00123> in <filename unknown>:0
at Outracks.BinaryMessageStreams+<BeginWritingMessages>c__AnonStorey0.<>m__0 () <0x13866b00 + 0x001e3> in <filename unknown>:0
Sorry for taking so long, we’ve started investigating the issue, but we don’t have a solution yet. However running uno build -t=cmake -r as long as you have cmake installed (brew install cmake), should work fine, but you’ll not get preview support in that case.
2017-10-19 13:28:55,317 [5205:1] INFO Fuse - Initializing with arguments 'daemon-client Atom Plugin'
2017-10-19 13:28:55,355 [5205:1] INFO Fuse - Version 1.3.0.14520
2017-10-19 13:28:55,358 [5205:1] INFO Dashboard - Initializing with arguments ''
2017-10-19 13:28:55,363 [5205:1] INFO Fuse - Initializing with arguments ''
2017-10-19 13:28:55,399 [5205:1] INFO daemon-client - Initializing with arguments ''
2017-10-19 13:35:48,134 [5349:1] INFO Fuse - Initializing with arguments ''
2017-10-19 13:35:48,178 [5349:1] INFO Fuse - Version 1.3.0.14520
2017-10-19 13:35:48,180 [5349:1] INFO Dashboard - Initializing with arguments ''
2017-10-19 13:35:48,183 [5349:1] INFO Fuse - Initializing with arguments ''
2017-10-19 13:35:48,534 [5351:1] INFO Fuse - Initializing with arguments 'open'
2017-10-19 13:35:48,565 [5351:1] INFO Fuse - Version 1.3.0.14520
2017-10-19 13:35:48,567 [5351:1] INFO Dashboard - Initializing with arguments ''
2017-10-19 13:35:48,571 [5351:1] INFO Fuse - Initializing with arguments ''
2017-10-19 13:35:49,036 [5354:1] INFO Designer - Initializing with arguments ''
2017-10-19 13:35:56,344 [5354:1] INFO Updates - Checking for Fuse updates
2017-10-19 13:35:57,852 [5354:1] INFO Updates - No updates available
2017-10-19 13:36:12,078 [5354:1] FATAL Designer - Unhandled exception: GCHandle value belongs to a different domain
System.ArgumentException: GCHandle value belongs to a different domain
at (wrapper managed-to-native) ObjCRuntime.Messaging:bool_objc_msgSend_IntPtr (intptr,intptr,intptr)
at Foundation.NSObject.ConformsToProtocol (IntPtr protocol) <0x117f05050 + 0x00146> in <filename unknown>:0
at Foundation.NSObject.InvokeConformsToProtocol (IntPtr protocol) <0x117f04e80 + 0x00018> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at (wrapper managed-to-native) ObjCRuntime.Messaging:bool_objc_msgSend_IntPtr (intptr,intptr,intptr)
at Foundation.NSObject.ConformsToProtocol (IntPtr protocol) <0x117f05050 + 0x00146> in <filename unknown>:0
at Foundation.NSObject.InvokeConformsToProtocol (IntPtr protocol) <0x117f04e80 + 0x00018> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at (wrapper managed-to-native) ObjCRuntime.Messaging:bool_objc_msgSend_IntPtr (intptr,intptr,intptr)
at Foundation.NSObject.ConformsToProtocol (IntPtr protocol) <0x117f05050 + 0x00146> in <filename unknown>:0
at Foundation.NSObject.InvokeConformsToProtocol (IntPtr protocol) <0x117f04e80 + 0x00018> in <filename unknown>:0
at (wrapper managed-to-native) ObjCRuntime.Messaging:void_objc_msgSend (intptr,intptr)
at AppKit.NSApplication.Run () <0x11852d720 + 0x00049> in <filename unknown>:0
at Outracks.Fusion.OSX.Application.Run () <0x11852d6f0 + 0x0001c> in <filename unknown>:0
at Outracks.Fusion.Application.Run () <0x11852d6c0 + 0x00023> in <filename unknown>:0
at Outracks.Fuse.Designer.Program.Main (System.String[] argsArray) <0x10cae4e70 + 0x006e0> in <filename unknown>:0
I’ve now prepared a custom build that might provide some extra information about this crash. It can be found along with instructions here (just ignore the “This is an older version of Fuse” warning).
We’d appreciate anyone experiencing this problem trying this version out and sending us their logs afterwards.
EDIT: Unfortunately it turns out this custom version did not log what it was supposed to, so there’s little point in trying custom build all.
The forum user Raju has now been very helpful in figuring out a solution to (what looks like) the same or similar problem. It turns out the custom window manager Moom is not compatible with Fuse, and this is likely to be the case with various similar software.
I can’t say for sure that this is the same bugs as the one you’re experiencing, but if you have any software like that installed you could try disabling that and see if that fixes the crashes.
I use the window manager called spectacle, which another user states doesn’t cause problems for them. I have a few other apps on my mac that use access my computer through Security & Privacy -> Privacy -> Accessibility and all of them ran in conjunction with Fuse in the past.
So to be clear, Fuse is still crashing for you after disabling spectacle and other software in “Security & Privacy -> Privacy -> Accessibility”? Or am I not understanding you correctly here?