应用程序立即关闭

时间:2021-04-06 21:27:04

标签: android xamarin.forms

当我尝试调试时,应用程序没有启动。我所做的最后更改是对图表进行的更改,如果有疑问,我将其从 xaml 代码和 c# 中删除,但错误仍然存​​在,因此问题出在其他地方。

我在尝试调试应用程序时对“DiaryPage”页面进行了一些更改,但立即在 MainPage 中停止,因此甚至没有到达上述页面。 mainPage 中没有例外。据我了解,它在必须访问 ftp 空间时崩溃。

WebClient clientw = new WebClient();
clientw.Credentials = new NetworkCredential("xxx", "xxxx");
string Frasi = "ftp://epiz_27@ftpupload.net/htdocs/word1.json";

当它读取最后一行代码时,它崩溃并关闭。

string contents = await clientw.DownloadStringTaskAsync(Frasi);

这是日志:

<块引用> <块引用>

本机崩溃报告 ================================================== ================ 在执行本机代码时得到了一个 SEGV。这通常表示致命的 单声道运行时或您使用的本机库之一中的错误 申请。

没有原生 Android 堆栈跟踪(请参阅 debuggerd 输出)。

================================================ ================== 基本故障地址报告 ================================================== ============== 本机指令指针周围的内存(0x78535d4414):0x78535d4404 30 00 a0 f2 f1 03 00 91 31 02 10 cb 3f 02 00 91 0.......1...?... 0x78535d4414 fd 7b 00 a9 fd 03 00 91 a0 0b 00 f9 10 35 9b d2 .{.........5.. 0x78535d4424 90 1a a9 f2 10 0f c0 f2 b0 0f 00 f9 10 00 84 d2 ...... 0x78535d4434 50 f7 b2 f2 10 0f c0 f2 b0 13 00 f9 1e 9d 8d d2 P......

================================================ ====04-06 23:12:25.794 F/libc (17288):致命信号 11 (SIGSEGV),代码 2 (SEGV_ACCERR), tid 17288 (mpanyname.myapp) 中的故障地址 0x7ff13dad50,pid 17288 (mpanyname.myapp)

============== 托管堆栈跟踪: ================================================== ============== 在 MyApp.Pagine.DiaryPage:InitializeComponent <0x00014> 在 MyApp.Pagine.DiaryPage:.ctor <0x008f3> at MyApp.Pagine.DiaryPage:InitializeComponent <0x01e97> 在 MyApp.Pagine.DiaryPage:.ctor <0x008f3> at MyApp.Pagine.DiaryPage:InitializeComponent <0x01e97> 在 MyApp.Pagine.DiaryPage:.ctor <0x008f3> at MyApp.Pagine.DiaryPage:InitializeComponent <0x01e97> 在 MyApp.Pagine.DiaryPage:.ctor <0x008f3> at MyApp.Pagine.DiaryPage:InitializeComponent <0x01e97> 在 MyApp.Pagine.DiaryPage:.ctor <0x008f3> at MyApp.Pagine.DiaryPage:InitializeComponent <0x01e97> 在 MyApp.Pagine.DiaryPage:.ctor <0x008f3> at MyApp.Pagine.DiaryPage:InitializeComponent <0x01e97> 在 MyApp.Pagine.DiaryPage:.ctor <0x008f3> at MyApp.Pagine.DiaryPage:InitializeComponent <0x01e97> 在 MyApp.Pagine.DiaryPage:.ctor <0x008f3> at MyApp.Pagine.DiaryPage:InitializeComponent <0x01e97> 在 MyApp.Pagine.DiaryPage:.c to <0x008f3> at MyApp.TabPage:.ctor <0x00077> at MyApp.App:.ctor <0x0057f> at MyApp.Droid.MainActivity:OnCreate <0x0018b> 在 Android.App.Activity:n_OnCreate_Landroid_os_Bundle_ <0x000d3> 在 Android.Runtime.DynamicMethodNameCounter:8 <0x000cf> at Android.Runtime.DynamicMethodNameCounter:8 <0x000eb>

04-06 23:37:20.639 D/Mono    (19321): Requesting loading reference 1 (of 2) of Java.Interop.dll
04-06 23:37:20.639 D/Mono    (19321): Loading reference 1 of Java.Interop.dll asmctx DEFAULT, looking for System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
04-06 23:37:20.639 D/Mono    (19321): Assembly Ref addref Java.Interop[0x78a523dc00] -> System.Core[0x78a5410900]: 7

错误似乎表明 DiaryPage 但实际上应用程序在 MainPage 中崩溃

更新: 我试图完全删除包含该代码的方法,但应用程序不断崩溃

0 个答案:

没有答案
相关问题