Ios Xamarin表单Webview意外崩溃

Ios Xamarin表单Webview意外崩溃,ios,xamarin,xamarin.forms,webview,xamarin.ios,Ios,Xamarin,Xamarin.forms,Webview,Xamarin.ios,我有一个Xamarin Forms移动应用程序,其中包含一个Webview。网络视图的内容是动态生成的HTML。这实际上是我们为每个客户生成的问卷,因此问题会有所不同。这就是我们使用网络视图的原因,因为它允许我们为每个客户生成动态HTML 以下是Webview的XAML(为清晰起见,进行了简化) 以下是生成的HTML片段,并显示在网络视图中 <html> <head> <link rel=stylesheet href=https://mya

我有一个Xamarin Forms移动应用程序,其中包含一个Webview网络视图的内容是动态生成的HTML。这实际上是我们为每个客户生成的问卷,因此问题会有所不同。这就是我们使用网络视图的原因,因为它允许我们为每个客户生成动态HTML

以下是Webview的XAML(为清晰起见,进行了简化)

以下是生成的HTML片段,并显示在网络视图中

<html>
    <head>
        <link rel=stylesheet href=https://myazurestorage.blob.core.windows.net/myblobname/styles.css\>
    </head>
        <body>
            <div>
                <h2>Internal</h2>
                <h3>Is the interior clean?</h3>
                <input id=radio30216 type=radio name=radiobuttons100068 value=30216</input>
                <label for=radio30216>Clean</label><input id=radio30217 type=radio name=radiobuttons100068 value=30217</input>
                <label for=radio30217>Ok</label><input id=radio30218 type=radio name=radiobuttons100068 value=30218</input>
                <label for=radio30218>Unclean</label>

                <hr>
                <h3>Are seat belts working?</h3>
                <input id=radio30219 type=radio name=radiobuttons100069 value=30219</input>
                <label for=radio30219>Yes</label><input id=radio30220 type=radio name=radiobuttons100069 value=30220</input>
                <label for=radio30220>No</label><hr>

                <h3>Are there any warning lights on the dashboard?</h3>
                <input id=radio30221 type=radio name=radiobuttons100070 value=30221</input>
                <label for=radio30221>Yes</label>
                <input id=radio30222 type=radio name=radiobuttons100070 value=30222</input>
                <label for=radio30222>No</label>

                <hr>
                <h3>If yes please provide information</h3>
                <input type=text id=text100071></input>

                <hr>
                <h2>External</h2>
                <h3>Are there and dents or scratches on the bodywork?</h3>
                <input id=radio30232 type=radio name=radiobuttons100075 value=30232</input>
                <label for=radio30232>Yes</label><input id=radio30233 type=radio name=radiobuttons100075 value=30233</input>
                <label for=radio30233>No</label>

            </div>
        </body>
</html>

内部的
室内干净吗?

这可能是一个bug,但我有一种感觉,当应用程序崩溃时,可能会丢失一些东西。输出窗口中到底记录了什么?是否抛出了某种异常?我们主要看到的是测试设备上的问题,而不是我们用于开发的设备上的问题。尽管如此,我们看到了发展中的问题。我将检查并查看生成了什么异常或日志输出。执行此操作并将其作为文本而不是图像发布在此处。我发布的崩溃报告是文本。它引用了SkiaSharep库,这似乎表明问题与iOS上的图形处理有关。从我看来,这并不是所有的错误,也不是webview问题。您有什么版本的SkiaSharep库?
protected override async void OnAppearing()
{
    base.OnAppearing();
    WebView.IsVisible = false;

    var questionnaire = await InspectionView.GetVehicleInspection();
    this._vehicleInspection = questionnaire;
    StringBuilder htmlString = new StringBuilder();

    string generatedHtml = new VehicleInspectionServices().GenerateHtmlFromVehicleInspection(questionnaire);
    htmlString.Append(generatedHtml);

    var htmlWebView = new HtmlWebViewSource { Html = htmlString.ToString() };
    WebView.Source = htmlWebView;
    WebView.IsVisible = true;
}
<html>
    <head>
        <link rel=stylesheet href=https://myazurestorage.blob.core.windows.net/myblobname/styles.css\>
    </head>
        <body>
            <div>
                <h2>Internal</h2>
                <h3>Is the interior clean?</h3>
                <input id=radio30216 type=radio name=radiobuttons100068 value=30216</input>
                <label for=radio30216>Clean</label><input id=radio30217 type=radio name=radiobuttons100068 value=30217</input>
                <label for=radio30217>Ok</label><input id=radio30218 type=radio name=radiobuttons100068 value=30218</input>
                <label for=radio30218>Unclean</label>

                <hr>
                <h3>Are seat belts working?</h3>
                <input id=radio30219 type=radio name=radiobuttons100069 value=30219</input>
                <label for=radio30219>Yes</label><input id=radio30220 type=radio name=radiobuttons100069 value=30220</input>
                <label for=radio30220>No</label><hr>

                <h3>Are there any warning lights on the dashboard?</h3>
                <input id=radio30221 type=radio name=radiobuttons100070 value=30221</input>
                <label for=radio30221>Yes</label>
                <input id=radio30222 type=radio name=radiobuttons100070 value=30222</input>
                <label for=radio30222>No</label>

                <hr>
                <h3>If yes please provide information</h3>
                <input type=text id=text100071></input>

                <hr>
                <h2>External</h2>
                <h3>Are there and dents or scratches on the bodywork?</h3>
                <input id=radio30232 type=radio name=radiobuttons100075 value=30232</input>
                <label for=radio30232>Yes</label><input id=radio30233 type=radio name=radiobuttons100075 value=30233</input>
                <label for=radio30233>No</label>

            </div>
        </body>
</html>
2019-03-01 09:28:07.857 IFMDriverServicesiOS[274:5768] critical: Stacktrace:
2019-03-01 09:28:07.857 IFMDriverServicesiOS[274:5768] critical:   at <unknown> <0xffffffff>
2019-03-01 09:28:07.860 IFMDriverServicesiOS[274:5768] critical:   at (wrapper managed-to-native) SkiaSharp.SkiaApi.sk_canvas_draw_path (intptr,intptr,intptr) <0x00007>

2019-03-01 09:28:07.877 IFMDriverServicesiOS[274:5768] critical:   at UIKit.UIApplication.Main (string[],string,string) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.13/src/Xamarin.iOS/UIKit/UIApplication.cs:63
2019-03-01 09:28:07.923 IFMDriverServicesiOS[274:5768] critical:    0   IFMDriverServicesiOS                0x000000010356d564 GMSx_AbslInternalSpinLockWake + 800720
2019-03-01 09:28:07.923 IFMDriverServicesiOS[274:5768] critical:    1   IFMDriverServicesiOS                0x000000010357b234 mono_pmip + 16100
2019-03-01 09:28:07.923 IFMDriverServicesiOS[274:5768] critical:    2   libsystem_platform.dylib            0x00000001822cc9f0 <redacted> + 56
2019-03-01 09:28:07.924 IFMDriverServicesiOS[274:5768] critical:    3   libSkiaSharp                        0x00000001043b4bbc gr_glinterface_has_extension + 1348628
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
The app has been terminated.
Failed to Stop app:  An error occured on client IDB412377 while executing a reply for topic xvs/idb/4.12.3.77/stop-app
The app has been terminated.