-
Notifications
You must be signed in to change notification settings - Fork 146
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
StreamJsonRpc.1.4.46-beta cannot run from Xamarin.Mac application #99
Comments
Can you share the crash info, or the syntax that the mono runtime doesn't support? |
thanks I updated in my original post |
Thanks. I'm afraid I can't tell from the failure what went wrong. There is no exception message or type. I don't see any reference to unsupported "syntax" either. Where do you see that? Any more clues you know how to get from this? |
Thanks, @yingfangdu. C# syntax is irrelevant at runtime. And I don't see any exotic syntax in your diff anyway. If mono doesn't support specific APIs in the encoder/decoder we use (based on the content of your diff), then that's something we might be able to workaround. Can you share the compile errors you were seeing? |
I paste another syntax error in JsonRpc.cs AddLocalRpcTarget. /Volumes/Yvonne/GitHub/vs-streamjsonrpc/src/StreamJsonRpcXamarin/StreamJsonRpcXamarin/../../StreamJsonRpc/JsonRpc.cs(90,90): Error CS1644: Feature `declaration expression' cannot be used because it is not part of the C# 6.0 language specification (CS1644) (StreamJsonRpcXamarin) |
../../StreamJsonRpc/Reflection/MethodSignatureAndTarget.cs(33,52): error CS1644: Feature
Time Elapsed 00:00:04.0223710 |
I see, thanks. The syntax errors you're seeing are because you're using an old compiler. I do not expect they have any bearing to why the prebuilt nuget package fails for you at runtime. If you want to compile it locally, can you use We'll still need to understand why you're getting runtime failures. Is there any way to get mono to produce a better runtime error message? |
I cannot get other crash logs while usually an unknown address 0xffffffff crash is caused by that it cannot find the function. |
I believe you mentioned this ended up being a mono JIT bug. |
Add support for windowsdesktop runtimes to Install-DotNetSdk.ps1 script
I verified that when use StreamJsonRpc.1.4.46-beta from Xamarin.Mac application, it crashes WebSocketMessageHandler calling in mono.
My application is running on Mono .Net 4.5
I see that this project uses some syntax that mono runtime does not support.
The text was updated successfully, but these errors were encountered: