System.NullReferenceException on last VS Code, before it work
mamcx opened this issue · 0 comments
mamcx commented
Everything was working for me, then suddlenly I upgrade to Visual Studio Community 2019 for Mac
Version 8.0 (build 3001), and when running on android (iOS work), I get:
Xamarin.Android
Version: 9.2.0.5 (Visual Studio Community)
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 28.0.1
SDK Build Tools Version: 28.0.3
Mono Framework MDK
Runtime:
Mono 5.18.1.3 (2018-08/fdb26b0a445) (64-bit)
Package version: 518010003
WebPath: file:/android_asset/App{bindings = Cons ({scheme = HTTP;
socketBinding = {ip = 127.0.0.1;
port = 8080us;};},Empty);
serverKey =
[|221uy; 59uy; 17uy; 150uy; 162uy; 213uy; 180uy; 88uy; 228uy; 14uy; 176uy;
243uy; 20uy; 214uy; 73uy; 0uy; 172uy; 151uy; 55uy; 231uy; 178uy; 119uy;
189uy; 248uy; 234uy; 187uy; 34uy; 202uy; 153uy; 133uy; 246uy; 206uy|];
errorHandler = <fun:serverConfig@819>;
listenTimeout = 00:00:02;
cancellationToken = System.Threading.CancellationToken;
bufferSize = 8192;
autoGrow = true;
maxOps = 100;
mimeTypesMap = <fun:mimeTypes@811-1>;
homeFolder = Some "file:/android_asset/App";
compressedFilesFolder =
Some "/data/user/0/com.ventasmoviles.Sales/files/suavetemp";
logger = Suave.Logging.CombiningTarget;
tcpServerFactory = Suave.DefaultTcpServerFactory;
cookieSerialiser = Suave.BinaryFormatterSerialiser;
tlsProvider = Suave.DefaultTlsProvider;
hideHeader = false;
maxContentLength = 10000000;}
[10:44:24 DBG] Initialising BufferManager with 827392
[10:44:25 FTL] TCP server failed
System.NullReferenceException: Object reference not set to an instance of an object
at Microsoft.FSharp.Core.OptionModule.Fold[T,TState] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] folder, TState state, Microsoft.FSharp.Core.FSharpOption`1[T] option) [0x00014] in <5c64a998dff9fae1a745038398a9645c>:0
at Suave.Tcp+StartedData.GetStartedListeningElapsedMilliseconds () [0x00005] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
at Suave.Tcp+runServer@179-6.Invoke (System.IDisposable _arg3) [0x0004d] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x00005] in <5c64a998dff9fae1a745038398a9645c>:0
at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615-1[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00018] in <5c64a998dff9fae1a745038398a9645c>:0
at Microsoft.FSharp.Control.AsyncPrimitives+Bind@495-1[TResult,T].Invoke (TResult result1) [0x00000] in <5c64a998dff9fae1a745038398a9645c>:0
at <StartupCode$FSharp-Core>.$Async+OnCancel@1662-5.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00000] in <5c64a998dff9fae1a745038398a9645c>:0
at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
at Microsoft.FSharp.Control.AsyncPrimitives.Bind[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, Microsoft.FSharp.Control.FSharpAsync`1[T] part1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x00040] in <5c64a998dff9fae1a745038398a9645c>:0
at Suave.Tcp+runServer@179-23.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00000] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615-1[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00018] in <5c64a998dff9fae1a745038398a9645c>:0
at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
at Suave.Tcp+runServer@166-26.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x0000c] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
at Microsoft.FSharp.Control.Trampoline.Execute (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] firstAction) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] UNHANDLED EXCEPTION:
[MonoDroid] System.NullReferenceException: Object reference not set to an instance of an object
[MonoDroid] at Microsoft.FSharp.Core.OptionModule.Fold[T,TState] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] folder, TState state, Microsoft.FSharp.Core.FSharpOption`1[T] option) [0x00014] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Suave.Tcp+StartedData.GetStartedListeningElapsedMilliseconds () [0x00005] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[MonoDroid] at Suave.Tcp+runServer@179-6.Invoke (System.IDisposable _arg3) [0x0004d] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[MonoDroid] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x00005] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615-1[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00018] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Microsoft.FSharp.Control.AsyncPrimitives+Bind@495-1[TResult,T].Invoke (TResult result1) [0x00000] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at <StartupCode$FSharp-Core>.$Async+OnCancel@1662-5.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00000] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Microsoft.FSharp.Control.AsyncPrimitives.Bind[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, Microsoft.FSharp.Control.FSharpAsync`1[T] part1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x00040] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Suave.Tcp+runServer@179-23.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00000] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[MonoDroid] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615-1[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00018] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Suave.Tcp+runServer@166-26.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x0000c] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[MonoDroid] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Microsoft.FSharp.Control.Trampoline.Execute (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] firstAction) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] --- End of stack trace from previous location where exception was thrown ---
[MonoDroid]
[MonoDroid] at Microsoft.FSharp.Control.AsyncResult`1[T].Commit () [0x0002c] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Microsoft.FSharp.Control.AsyncPrimitives.RunSynchronouslyInAnotherThread[a] (System.Threading.CancellationToken token, Microsoft.FSharp.Control.FSharpAsync`1[T] computation, Microsoft.FSharp.Core.FSharpOption`1[T] timeout) [0x000a3] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Microsoft.FSharp.Control.AsyncPrimitives.RunSynchronously[T] (System.Threading.CancellationToken cancellationToken, Microsoft.FSharp.Control.FSharpAsync`1[T] computation, Microsoft.FSharp.Core.FSharpOption`1[T] timeout) [0x00007] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T] (Microsoft.FSharp.Control.FSharpAsync`1[T] computation, Microsoft.FSharp.Core.FSharpOption`1[T] timeout, Microsoft.FSharp.Core.FSharpOption`1[T] cancellationToken) [0x0006e] in <5c64a998dff9fae1a745038398a9645c>:0
[MonoDroid] at Suave.Web.startWebServer (Suave.SuaveConfig config, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] webpart) [0x00018] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[MonoDroid] at UI.Forms.webServer () [0x00016] in <5ca62607ad9cbd5ea74503830726a65c>:0
[MonoDroid] at UI.Forms+App..ctor () [0x00015] in <5ca62607ad9cbd5ea74503830726a65c>:0
[MonoDroid] at Sales.Droid.MainActivity.OnCreate (Android.OS.Bundle bundle) [0x00023] in <5ca62607ad9cbd5ea74503830726a65c>:0
[MonoDroid] at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x00011] in <864704fcdb13429ea187befaa47f5110>:0
[MonoDroid] at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.7(intptr,intptr,intptr)
[art] JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable
[AndroidRuntime] Shutting down VM
[AndroidRuntime] FATAL EXCEPTION: main
[AndroidRuntime] Process: com.ventasmoviles.Sales, PID: 6388
[AndroidRuntime] android.runtime.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
[AndroidRuntime] at Microsoft.FSharp.Core.OptionModule.Fold[T,TState] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] folder, TState state, Microsoft.FSharp.Core.FSharpOption`1[T] option) [0x00014] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Suave.Tcp+StartedData.GetStartedListeningElapsedMilliseconds () [0x00005] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[AndroidRuntime] at Suave.Tcp+runServer@179-6.Invoke (System.IDisposable _arg3) [0x0004d] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x00005] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615-1[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00018] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncPrimitives+Bind@495-1[TResult,T].Invoke (TResult result1) [0x00000] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at <StartupCode$FSharp-Core>.$Async+OnCancel@1662-5.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00000] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncPrimitives.Bind[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, Microsoft.FSharp.Control.FSharpAsync`1[T] part1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x00040] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Suave.Tcp+runServer@179-23.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00000] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615-1[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00018] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Suave.Tcp+runServer@166-26.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x0000c] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Microsoft.FSharp.Control.Trampoline.Execute (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] firstAction) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] --- End of stack trace from previous location where exception was thrown ---
[AndroidRuntime]
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncResult`1[T].Commit () [0x0002c] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncPrimitives.RunSynchronouslyInAnotherThread[a] (System.Threading.CancellationToken token, Microsoft.FSharp.Control.FSharpAsync`1[T] computation, Microsoft.FSharp.Core.FSharpOption`1[T] timeout) [0x000a3] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Microsoft.FSharp.Control.AsyncPrimitives.RunSynchronously[T] (System.Threading.CancellationToken cancellationToken, Microsoft.FSharp.Control.FSharpAsync`1[T] computation, Microsoft.FSharp.Core.FSharpOption`1[T] timeout) [0x00007] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T] (Microsoft.FSharp.Control.FSharpAsync`1[T] computation, Microsoft.FSharp.Core.FSharpOption`1[T] timeout, Microsoft.FSharp.Core.FSharpOption`1[T] cancellationToken) [0x0006e] in <5c64a998dff9fae1a745038398a9645c>:0
[AndroidRuntime] at Suave.Web.startWebServer (Suave.SuaveConfig config, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] webpart) [0x00018] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[AndroidRuntime] at UI.Forms.webServer () [0x00016] in <5ca62607ad9cbd5ea74503830726a65c>:0
[AndroidRuntime] at UI.Forms+App..ctor () [0x00015] in <5ca62607ad9cbd5ea74503830726a65c>:0
[AndroidRuntime] at Sales.Droid.MainActivity.OnCreate (Android.OS.Bundle bundle) [0x00023] in <5ca62607ad9cbd5ea74503830726a65c>:0
[AndroidRuntime] at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x00011] in <864704fcdb13429ea187befaa47f5110>:0
[AndroidRuntime] at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.7(intptr,intptr,intptr)
[AndroidRuntime] at md537c0d4a6026eb296b9b34627c676feee.MainActivity.n_onCreate(Native Method)
[AndroidRuntime] at md537c0d4a6026eb296b9b34627c676feee.MainActivity.onCreate(MainActivity.java:29)
[AndroidRuntime] at android.app.Activity.performCreate(Activity.java:6666)
[AndroidRuntime] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
[AndroidRuntime] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677)
[AndroidRuntime] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789)
[AndroidRuntime] at android.app.ActivityThread.-wrap12(ActivityThread.java)
[AndroidRuntime] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527)
[AndroidRuntime] at android.os.Handler.dispatchMessage(Handler.java:110)
[AndroidRuntime] at android.os.Looper.loop(Looper.java:203)
[AndroidRuntime] at android.app.ActivityThread.main(ActivityThread.java:6251)
[AndroidRuntime] at java.lang.reflect.Method.invoke(Native Method)
[AndroidRuntime] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1075)
[AndroidRuntime] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
[Error] ERR: exClass=android.runtime.JavaProxyThrowable
[Error] ERR: exMsg=System.NullReferenceException: Object reference not set to an instance of an object
[Error] at Microsoft.FSharp.Core.OptionModule.Fold[T,TState] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] folder, TState state, Microsoft.FSharp.Core.FSharpOption`1[T] option) [0x00014] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Suave.Tcp+StartedData.GetStartedListeningElapsedMilliseconds () [0x00005] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[Error] at Suave.Tcp+runServer@179-6.Invoke (System.IDisposable _arg3) [0x0004d] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x00005] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615-1[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00018] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives+Bind@495-1[TResult,T].Invoke (TResult result1) [0x00000] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at <StartupCode$FSharp-Core>.$Async+OnCancel@1662-5.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00000] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives.Bind[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, Microsoft.FSharp.Control.FSharpAsync`1[T] part1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x00040] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Suave.Tcp+runServer@179-23.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00000] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615-1[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00018] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Suave.Tcp+runServer@166-26.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x0000c] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.Trampoline.Execute (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] firstAction) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] --- End of stack trace from
[Error] ERR: file=MainActivity.java
[Error] ERR: class=md537c0d4a6026eb296b9b34627c676feee.MainActivity
[Error] ERR: method=n_onCreate line=-2
[Error] ERR: stack=android.runtime.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
[Error] at Microsoft.FSharp.Core.OptionModule.Fold[T,TState] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] folder, TState state, Microsoft.FSharp.Core.FSharpOption`1[T] option) [0x00014] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Suave.Tcp+StartedData.GetStartedListeningElapsedMilliseconds () [0x00005] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[Error] at Suave.Tcp+runServer@179-6.Invoke (System.IDisposable _arg3) [0x0004d] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x00005] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615-1[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00018] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives+Bind@495-1[TResult,T].Invoke (TResult result1) [0x00000] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at <StartupCode$FSharp-Core>.$Async+OnCancel@1662-5.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00000] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives.Bind[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, Microsoft.FSharp.Control.FSharpAsync`1[T] part1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x00040] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Suave.Tcp+runServer@179-23.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00000] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives+CreateUsingAsync@615-1[a,T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00018] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Suave.Tcp+runServer@166-26.Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x0000c] in <5be6fbc8d1fcaf4fa7450383c8fbe65b>:0
[Error] at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult] (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt, TResult result1, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] part2) [0x0002a] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at <StartupCode$FSharp-Core>.$Async+Delay@1095[T].Invoke (Microsoft.FSharp.Control.AsyncActivation`1[T] ctxt) [0x00020] in <5c64a998dff9fae1a745038398a9645c>:0
[Error] at Microsoft.FSharp.Control.Trampoline.Execute (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] firstAction) [0x00020] in <5c64a998dff9fae1a745038398a96
[Error] ERR: TOTAL BYTES WRITTEN: 25328
[Process] Sending signal. PID: 6388 SIG: 9
I have lastest suave fron nuget. I haven't done anything to the code.
I start with
let startServerBlock(rootPath) =
let cf = serverConfig rootPath
printfn "%A" cf
startWebServer cf app