alternetsoft / AlternetUI

MIT License
22 stars 2 forks source link

UiXml previewer problems #37

Open generalloki opened 1 year ago

generalloki commented 1 year ago

UiXml previewer has some problems:

I collected them from the #15:

generalloki commented 1 year ago

Also preview of Menu or Toolbar shows Windows desktop

neoxeo commented 1 year ago

Samples/ControlsTest : WebBrowserTestPage.uixml have error (de4a2816ad871122cc606ee0dfed220a7c465b0e)

13:58:04.886 [Verbose] 10540 Started PreviewerProcess.OnMessageAsync()
13:58:04.886 [Debug] 10540 <= UpdateXamlResultMessage { Error: "Error while updating UIXML prev…", Handle: null, Exception: ExceptionDetails { ExceptionType: "TypeInitializationException", Message: "The type initializer for 'Contr…", StackTrace: "   at System.RuntimeMethodHandl…", UixmlLineNumber: null, UixmlLinePosition: null } }
13:58:04.886 [Error] 10540 UpdateXamlResult error
System.Xaml.XamlException: The type initializer for 'ControlsTest.WebBrowserTestPage' threw an exception.
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
13:58:04.886 [Verbose] 10540 Finished PreviewerProcess.OnMessageAsync()
neoxeo commented 1 year ago

Samples/PaintSample : MainWindow.uixml have error (https://github.com/alternetsoft/AlternetUI/commit/de4a2816ad871122cc606ee0dfed220a7c465b0e)

14:21:58.873 [Verbose]  Finished PreviewerProcess.Stop()
14:21:58.858 [Error]  Connection error
System.IO.IOException: Impossible de lire les données de la connexion de transport : Une connexion existante a dû être fermée par l’hôte distant. ---> System.Net.Sockets.SocketException: Une connexion existante a dû être fermée par l’hôte distant
   à System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
   à System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
   --- Fin de la trace de la pile d'exception interne ---
   à System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
   à System.Threading.Tasks.TaskFactory`1.FromAsyncTrimPromise`1.Complete(TInstance thisRef, Func`3 endMethod, IAsyncResult asyncResult, Boolean requiresSynchronization)
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à Alternet.UI.Integration.Remoting.BsonStreamTransportConnection.<ReadExact>d__16.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à Alternet.UI.Integration.Remoting.BsonStreamTransportConnection.<Reader>d__17.MoveNext()
generalloki commented 2 weeks ago

I have uploaded 0.9.620-beta and it has an updated uixml preview which works ok. https://github.com/alternetsoft/AlternetUI/releases

There are still some problems: