Skip to content
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

Not Working In Mac #47

Closed
donchakkappan opened this issue Feb 26, 2019 · 7 comments
Closed

Not Working In Mac #47

donchakkappan opened this issue Feb 26, 2019 · 7 comments

Comments

@donchakkappan
Copy link

donchakkappan commented Feb 26, 2019

XAMLator is not working for me. I am using VS2017 Community edition for Mac.

These are the logs I am getting.

Loaded assembly: XAMLator.Server.dll [External]
[Mono] Image addref XAMLator.Server[0x7c337cdb80] -> XAMLator.Server.dll[0x7c337dd000]: 2
[Mono] Prepared to set up assembly 'XAMLator.Server' (XAMLator.Server.dll)
[Mono] Assembly XAMLator.Server[0x7c337cdb80] added to domain RootDomain, ref_count=1
[Mono] AOT: image 'XAMLator.Server.dll.so' not found: dlopen failed: library "/data/app/-1/lib/arm64/libaot-XAMLator.Server.dll.so" not found
[Mono] AOT: image '/Users/builder/jenkins/workspace/xamarin-android-d15-9/xamarin-android/external/mono/sdks/out/android-arm64-v8a-release/lib/mono/aot-cache/arm64/XAMLator.Server.dll.so' not found: dlopen failed: library "/data/app/-1/lib/arm64/libaot-XAMLator.Server.dll.so" not found

[Mono] Config attempting to parse: 'XAMLator.Server.dll.config'.
[Mono] Config attempting to parse: '/Users/builder/jenkins/workspace/xamarin-android-d15-9/xamarin-android/external/mono/sdks/out/android-arm64-v8a-release/etc/mono/assemblies/XAMLator.Server/XAMLator.Server.config'.

[Mono] Assembly Ref addref XAMLator.Server[0x7c337cdb80] -> mscorlib[0x7c473a2480]: 105
[Mono] Assembly Ref addref XAMLator.Server[0x7c337cdb80] -> Xamarin.Forms.Core[0x7c3374ea80]: 25

@ylatuya
Copy link
Owner

ylatuya commented Feb 28, 2019

The current version was using System.Diagnostics.Debug to print logs, that are removed for Release builds. I will fix it an publish a new version so we can have at least some logs.

@donchakkappan
Copy link
Author

@ylatuya Thank you so much for your quick reply.I am eagerly waiting to get this working.

@ylatuya
Copy link
Owner

ylatuya commented Feb 28, 2019

I have published a new version, it will take a bit to be public in nuget.org with debug logs fixed.
Before anything check that:

  • The XAMLator visual studio addin is at version 1.0.6
  • You have only one instance of visual studio running

The app should print something like:
[1 Info 11:52:05.757] Connecting to IDE at tcp://172.16.15.24:8488

@donchakkappan
Copy link
Author

@ylatuya I tried it.Still I am getting only the below logs.

AOT: image '/Users/builder/jenkins/workspace/xamarin-android-d15-9/xamarin-android/external/mono/sdks/out/android-armeabi-v7a-release/lib/mono/aot-cache/arm/XAMLator.Server.dll.so' not found: dlopen failed: library "/data/app/com.dev-1/lib/arm/libaot-XAMLator.Server.dll.so" not found

I am using the latest XAMLator builds
screen shot 2019-03-01 at 9 25 20 am
screen shot 2019-03-01 at 9 26 21 am

@donchakkappan
Copy link
Author

Now I tried using master.Now I am getting

[Error 14:44:24.515] Couldn't register device at 192.168.43.36
[Warn 14:44:24.538] Caught an exception System.Net.Sockets.SocketException: Connection refused (in mscorlib') at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00014] in <3e9b3e26c4694baab3f689687ad40612>:0 at System.Net.Sockets.Socket.EndConnect (System.IAsyncResult asyncResult) [0x0002c] in <3e9b3e26c4694baab3f689687ad40612>:0 at System.Net.Sockets.TcpClient.EndConnect (System.IAsyncResult asyncResult) [0x0000c] in <3e9b3e26c4694baab3f689687ad40612>:0 at System.Threading.Tasks.TaskFactory1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func2[T,TResult] endFunction, System.Action1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x00019] in :0
--- End of stack trace from previous location where exception was thrown ---
at XAMLator.TcpCommunicatorClient+d__1.MoveNext () [0x000a1] in <1733197bd6f941628dab7d25fd6fab01>:0
--- End of stack trace from previous location where exception was thrown ---
at XAMLator.Server.PreviewServer+d__13.MoveNext () [0x000cd] in <1733197bd6f941628dab7d25fd6fab01>:0

@ylatuya
Copy link
Owner

ylatuya commented Mar 1, 2019

AOT: image '/Users/builder/jenkins/workspace/xamarin-android-d15-9/xamarin-android/external/mono/sdks/out/android-armeabi-v7a-release/lib/mono/aot-cache/arm/XAMLator.Server.dll.so' not found: dlopen failed: library "/data/app/com.dev-1/lib/arm/libaot-XAMLator.Server.dll.so" not found

This is not an error, those are just debug prints from mono trying different extensions. After updating the nuget make sure you do a clean rebuild, as sometimes incremental builds don't update correctly dependencies.

With master make sure you build in release mode, otherwise the connection port is different, this is why you have a connection error.

@donchakkappan
Copy link
Author

@ylatuya It works like charm...Thanks a lot brother.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants